Incense plate converted to json

This commit is contained in:
Vincent Lee committed 2016-01-07 21:19:39 -06:00
1 parent 20b5743221
commit cd77b41d31
6 files changed
+62 -7

No files matched your search

@@ -420,6 +420,7 @@ public final class ModelHandler {
registerItemModel(ModBlocks.spawnerClaw);
registerItemModel(ModBlocks.turntable);
registerItemModel(ModBlocks.manaFlame);
registerItemModel(ModBlocks.incensePlate);
// Register all metas to variant inventory, so the smartmodel can take over from there. See RenderEventHandler
registerItemModelAllMeta(Item.getItemFromBlock(ModBlocks.pylon), PylonVariant.values().length);
@@ -51,11 +51,11 @@ public class RenderTileIncensePlate extends TileEntitySpecialRenderer<TileIncens
GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
GlStateManager.color(1F, 1F, 1F, 1F);
GlStateManager.translate(d0, d1, d2);
Minecraft.getMinecraft().renderEngine.bindTexture(texture);
// Minecraft.getMinecraft().renderEngine.bindTexture(texture);
GlStateManager.translate(0.5F, 1.5F, 0.5F);
GlStateManager.scale(1F, -1F, -1F);
GlStateManager.rotate(ROTATIONS[Math.max(Math.min(ROTATIONS.length, facing.getIndex() - 2), 0)], 0F, 1F, 0F);
model.render();
// model.render();
GlStateManager.scale(1F, -1F, -1F);
ItemStack stack = plate.getStackInSlot(0);
@@ -136,11 +136,6 @@ public class BlockIncensePlate extends BlockModContainer implements ILexiconable
return false;
}
@Override
public int getRenderType() {
return 2;
}
@Override
public TileEntity createNewTileEntity(World world, int meta) {
return new TileIncensePlate();