Javastyle array
This commit is contained in:
parent
8b3a954f73
commit
2f65d41cd1
|
@ -386,8 +386,17 @@ public class ModelGenerator
|
||||||
{
|
{
|
||||||
return MinecraftForgeClient.getRenderLayer() == EnumWorldBlockLayer.TRANSLUCENT;
|
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 EnumSet<EnumFacing> renderFaces = EnumSet.allOf(EnumFacing.class);
|
||||||
public boolean flipTexture=false;
|
public boolean flipTexture=false;
|
||||||
private List<SMFace> faces = new ArrayList();
|
private List<SMFace> faces = new ArrayList();
|
||||||
|
|
|
@ -19,6 +19,9 @@
|
||||||
package appeng.client.render.blocks;
|
package appeng.client.render.blocks;
|
||||||
|
|
||||||
|
|
||||||
|
import org.lwjgl.opengl.GL11;
|
||||||
|
import org.lwjgl.opengl.GL12;
|
||||||
|
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.model.ModelChest;
|
import net.minecraft.client.model.ModelChest;
|
||||||
|
@ -29,9 +32,6 @@ import net.minecraft.util.ResourceLocation;
|
||||||
import net.minecraft.world.IBlockAccess;
|
import net.minecraft.world.IBlockAccess;
|
||||||
import net.minecraftforge.client.IItemRenderer.ItemRenderType;
|
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;
|
||||||
import appeng.block.storage.BlockSkyChest.SkyChestType;
|
import appeng.block.storage.BlockSkyChest.SkyChestType;
|
||||||
import appeng.client.render.BaseBlockRender;
|
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_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 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();
|
private final ModelChest model = new ModelChest();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue