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 final Supplier<BlockRenderDispatcher>
private final EntityModelSet
private final Supplier<EntityRenderDispatcher>
final Font
private final Supplier<ItemRenderer>
private Map<BlockEntityType<?>,
BlockEntityRenderer<?>> -
Constructor Summary
ConstructorDescriptionBlockEntityRenderDispatcher
(Font p_234432_, EntityModelSet p_234433_, Supplier<BlockRenderDispatcher> p_234434_, Supplier<ItemRenderer> p_234435_, Supplier<EntityRenderDispatcher> p_234436_) -
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
reload
-
Field Details
-
renderers
-
font
-
entityModelSet
-
level
-
camera
-
cameraHitResult
-
blockRenderDispatcher
-
itemRenderer
-
entityRenderer
-
-
Constructor Details
-
BlockEntityRenderDispatcher
public BlockEntityRenderDispatcher(Font p_234432_, EntityModelSet p_234433_, Supplier<BlockRenderDispatcher> p_234434_, Supplier<ItemRenderer> p_234435_, Supplier<EntityRenderDispatcher> p_234436_)
-
-
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
-