Class BlockEntityRenderDispatcher
java.lang.Object
net.minecraft.client.renderer.blockentity.BlockEntityRenderDispatcher
- All Implemented Interfaces:
PreparableReloadListener
,ResourceManagerReloadListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
Field Summary
Modifier and TypeFieldDescriptionprivate Supplier<BlockRenderDispatcher>
private EntityModelSet
private Map<BlockEntityType<?>,BlockEntityRenderer<?>>
-
Constructor Summary
ConstructorDescriptionBlockEntityRenderDispatcher(Font p_173559_, EntityModelSet p_173560_, Supplier<BlockRenderDispatcher> p_173561_)
-
Method Summary
Modifier and TypeMethodDescription<E extends BlockEntity>
BlockEntityRenderer<E>getRenderer(E p_112266_)
void
onResourceManagerReload(ResourceManager p_173563_)
void
<E extends BlockEntity>
voidrender(E p_112268_, float p_112269_, PoseStack p_112270_, MultiBufferSource p_112271_)
<E extends BlockEntity>
booleanrenderItem(E p_112273_, PoseStack p_112274_, MultiBufferSource p_112275_, int p_112276_, int p_112277_)
void
private static <T extends BlockEntity>
voidsetupAndRender(BlockEntityRenderer<T> p_112285_, T p_112286_, float p_112287_, PoseStack p_112288_, MultiBufferSource p_112289_)
private static void
tryRender(BlockEntity p_112279_, Runnable p_112280_)
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
getResourceType, reload
-
Field Details
-
renderers
-
font
-
entityModelSet
-
level
-
camera
-
cameraHitResult
-
blockRenderDispatcher
-
-
Constructor Details
-
BlockEntityRenderDispatcher
public BlockEntityRenderDispatcher(Font p_173559_, EntityModelSet p_173560_, Supplier<BlockRenderDispatcher> p_173561_)
-
-
Method Details
-
getRenderer
-
prepare
-
render
public <E extends BlockEntity> void render(E p_112268_, float p_112269_, PoseStack p_112270_, MultiBufferSource p_112271_) -
setupAndRender
private static <T extends BlockEntity> void setupAndRender(BlockEntityRenderer<T> p_112285_, T p_112286_, float p_112287_, PoseStack p_112288_, MultiBufferSource p_112289_) -
renderItem
public <E extends BlockEntity> boolean renderItem(E p_112273_, PoseStack p_112274_, MultiBufferSource p_112275_, int p_112276_, int p_112277_) -
tryRender
-
setLevel
-
onResourceManagerReload
- Specified by:
onResourceManagerReload
in interfaceResourceManagerReloadListener
-