Javastyle array

This commit is contained in:
thatsIch 2015-09-30 14:25:28 +02:00
parent 8b3a954f73
commit 2f65d41cd1
2 changed files with 18 additions and 6 deletions

View File

@ -386,8 +386,17 @@ public class ModelGenerator
{
return MinecraftForgeClient.getRenderLayer() == EnumWorldBlockLayer.TRANSLUCENT;
}
final float quadsUV[] = new float[] { 0,0,1,1,0,0,1,1};
final float[] quadsUV = new float[] {
0,
0,
1,
1,
0,
0,
1,
1
};
public EnumSet<EnumFacing> renderFaces = EnumSet.allOf(EnumFacing.class);
public boolean flipTexture=false;
private List<SMFace> faces = new ArrayList();

View File

@ -19,6 +19,9 @@
package appeng.client.render.blocks;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.client.model.ModelChest;
@ -29,9 +32,6 @@ import net.minecraft.util.ResourceLocation;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.client.IItemRenderer.ItemRenderType;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;
import appeng.block.storage.BlockSkyChest;
import appeng.block.storage.BlockSkyChest.SkyChestType;
import appeng.client.render.BaseBlockRender;
@ -44,7 +44,10 @@ public class RenderBlockSkyChest extends BaseBlockRender<BlockSkyChest, TileSkyC
private final static ResourceLocation SKY_STONE_CHEST = new ResourceLocation( "appliedenergistics2", "textures/models/skychest.png" );
private final static ResourceLocation SKY_BLOCK_CHEST = new ResourceLocation( "appliedenergistics2", "textures/models/skyblockchest.png" );
private final static ResourceLocation METADATA_TO_TEXTURE[] = { SKY_STONE_CHEST, SKY_BLOCK_CHEST };
private final static ResourceLocation[] METADATA_TO_TEXTURE = {
SKY_STONE_CHEST,
SKY_BLOCK_CHEST
};
private final ModelChest model = new ModelChest();