Class TileEntityRendererDispatcher
java.lang.Object
net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TileEntityRendererDispatcher
private final Map<TileEntityType<?>,
TileEntityRenderer<?>> private final BufferBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetFont()
<E extends TileEntity>
TileEntityRenderer<E>getRenderer
(E p_147547_1_) void
prepare
(World p_217665_1_, TextureManager p_217665_2_, FontRenderer p_217665_3_, ActiveRenderInfo p_217665_4_, RayTraceResult p_217665_5_) private <E extends TileEntity>
voidregister
(TileEntityType<E> p_228854_1_, TileEntityRenderer<E> p_228854_2_) <E extends TileEntity>
voidrender
(E p_228850_1_, float p_228850_2_, MatrixStack p_228850_3_, IRenderTypeBuffer p_228850_4_) <E extends TileEntity>
booleanrenderItem
(E p_228852_1_, MatrixStack p_228852_2_, IRenderTypeBuffer p_228852_3_, int p_228852_4_, int p_228852_5_) void
<T extends TileEntity>
voidsetSpecialRendererInternal
(TileEntityType<T> tileEntityType, TileEntityRenderer<? super T> specialRenderer) private static <T extends TileEntity>
voidsetupAndRender
(TileEntityRenderer<T> p_228855_0_, T p_228855_1_, float p_228855_2_, MatrixStack p_228855_3_, IRenderTypeBuffer p_228855_4_) private static void
tryRender
(TileEntity p_228853_0_, Runnable p_228853_1_)
-
Field Details
-
renderers
-
instance
-
singleRenderBuffer
-
font
-
textureManager
-
level
-
camera
-
cameraHitResult
-
-
Constructor Details
-
TileEntityRendererDispatcher
private TileEntityRendererDispatcher()
-
-
Method Details
-
register
private <E extends TileEntity> void register(TileEntityType<E> p_228854_1_, TileEntityRenderer<E> p_228854_2_) -
getRenderer
-
prepare
public void prepare(World p_217665_1_, TextureManager p_217665_2_, FontRenderer p_217665_3_, ActiveRenderInfo p_217665_4_, RayTraceResult p_217665_5_) -
render
public <E extends TileEntity> void render(E p_228850_1_, float p_228850_2_, MatrixStack p_228850_3_, IRenderTypeBuffer p_228850_4_) -
setupAndRender
private static <T extends TileEntity> void setupAndRender(TileEntityRenderer<T> p_228855_0_, T p_228855_1_, float p_228855_2_, MatrixStack p_228855_3_, IRenderTypeBuffer p_228855_4_) -
renderItem
public <E extends TileEntity> boolean renderItem(E p_228852_1_, MatrixStack p_228852_2_, IRenderTypeBuffer p_228852_3_, int p_228852_4_, int p_228852_5_) -
tryRender
-
setLevel
-
getFont
-
setSpecialRendererInternal
public <T extends TileEntity> void setSpecialRendererInternal(TileEntityType<T> tileEntityType, TileEntityRenderer<? super T> specialRenderer)
-