Class ItemStackBlockEntityRendererBase
java.lang.Object
net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer
org.cyclops.cyclopscore.client.render.blockentity.ItemStackBlockEntityRendererBase
- All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener
,net.minecraft.server.packs.resources.ResourceManagerReloadListener
public class ItemStackBlockEntityRendererBase
extends net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer
A supplier-based
BlockEntityWithoutLevelRenderer
that caches the internal block entity.
Don't use this if the block entity should be recreated at every render-tick.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier
-
Constructor Summary
ConstructorDescriptionItemStackBlockEntityRendererBase
(Supplier<net.minecraft.world.level.block.entity.BlockEntity> blockEntitySupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoid
renderByItem
(net.minecraft.world.item.ItemStack itemStackIn, net.minecraft.world.item.ItemDisplayContext itemDisplayContext, com.mojang.blaze3d.vertex.PoseStack matrixStackIn, net.minecraft.client.renderer.MultiBufferSource bufferIn, int combinedLightIn, int combinedOverlayIn) Methods inherited from class net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer
onResourceManagerReload
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName
Methods inherited from interface net.minecraft.server.packs.resources.ResourceManagerReloadListener
reload
-
Constructor Details
-
ItemStackBlockEntityRendererBase
public ItemStackBlockEntityRendererBase(Supplier<net.minecraft.world.level.block.entity.BlockEntity> blockEntitySupplier)
-
-
Method Details
-
renderByItem
public void renderByItem(net.minecraft.world.item.ItemStack itemStackIn, net.minecraft.world.item.ItemDisplayContext itemDisplayContext, com.mojang.blaze3d.vertex.PoseStack matrixStackIn, net.minecraft.client.renderer.MultiBufferSource bufferIn, int combinedLightIn, int combinedOverlayIn) - Overrides:
renderByItem
in classnet.minecraft.client.renderer.BlockEntityWithoutLevelRenderer
-