diff --git a/build.properties b/build.properties index d48b8987..39ad26bb 100644 --- a/build.properties +++ b/build.properties @@ -3,7 +3,7 @@ minecraft_version=1.15.2 forge_version=31.1.37 mcp_mappings_channel=snapshot mcp_mappings_version=20200225-1.15.1 -cyclopscore_version=1.6.1-1063 +cyclopscore_version=1.6.1-1067 release_type=release fingerprint=bd0353b3e8a2810d60dd584e256e364bc3bedd44 diff --git a/src/main/java/org/cyclops/colossalchests/client/render/tileentity/ItemStackTileEntityUncolossalChestRender.java b/src/main/java/org/cyclops/colossalchests/client/render/tileentity/ItemStackTileEntityUncolossalChestRender.java index 92ae2efa..c1d16997 100644 --- a/src/main/java/org/cyclops/colossalchests/client/render/tileentity/ItemStackTileEntityUncolossalChestRender.java +++ b/src/main/java/org/cyclops/colossalchests/client/render/tileentity/ItemStackTileEntityUncolossalChestRender.java @@ -1,31 +1,18 @@ package org.cyclops.colossalchests.client.render.tileentity; -import com.mojang.blaze3d.matrix.MatrixStack; -import net.minecraft.client.renderer.IRenderTypeBuffer; -import net.minecraft.client.renderer.tileentity.ItemStackTileEntityRenderer; -import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher; -import net.minecraft.item.ItemStack; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; import org.cyclops.colossalchests.tileentity.TileUncolossalChest; - -import java.util.function.Supplier; +import org.cyclops.cyclopscore.client.render.tileentity.ItemStackTileEntityRendererBase; /** * @author rubensworks */ @OnlyIn(Dist.CLIENT) -public class ItemStackTileEntityUncolossalChestRender extends ItemStackTileEntityRenderer { - - private final TileUncolossalChest tile; +public class ItemStackTileEntityUncolossalChestRender extends ItemStackTileEntityRendererBase { public ItemStackTileEntityUncolossalChestRender() { - this.tile = new TileUncolossalChest(); - } - - @Override - public void render(ItemStack itemStackIn, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int combinedLightIn, int combinedOverlayIn) { - TileEntityRendererDispatcher.instance.renderItem(this.tile, matrixStackIn, bufferIn, combinedLightIn, combinedOverlayIn); + super(TileUncolossalChest::new); } }