Class TileEntityRendererDispatcher
- java.lang.Object
-
- net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher
-
public class TileEntityRendererDispatcher extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description ActiveRenderInfo
camera
RayTraceResult
cameraHitResult
FontRenderer
font
static TileEntityRendererDispatcher
instance
World
level
private java.util.Map<TileEntityType<?>,TileEntityRenderer<?>>
renderers
private BufferBuilder
singleRenderBuffer
TextureManager
textureManager
-
Constructor Summary
Constructors Modifier Constructor Description private
TileEntityRendererDispatcher()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FontRenderer
getFont()
<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
setLevel(World p_147543_1_)
<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_, java.lang.Runnable p_228853_1_)
-
-
-
Field Detail
-
renderers
private final java.util.Map<TileEntityType<?>,TileEntityRenderer<?>> renderers
-
instance
public static final TileEntityRendererDispatcher instance
-
singleRenderBuffer
private final BufferBuilder singleRenderBuffer
-
font
public FontRenderer font
-
textureManager
public TextureManager textureManager
-
level
public World level
-
camera
public ActiveRenderInfo camera
-
cameraHitResult
public RayTraceResult cameraHitResult
-
-
Method Detail
-
register
private <E extends TileEntity> void register(TileEntityType<E> p_228854_1_, TileEntityRenderer<E> p_228854_2_)
-
getRenderer
@Nullable public <E extends TileEntity> TileEntityRenderer<E> getRenderer(E p_147547_1_)
-
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
private static void tryRender(TileEntity p_228853_0_, java.lang.Runnable p_228853_1_)
-
setLevel
public void setLevel(@Nullable World p_147543_1_)
-
getFont
public FontRenderer getFont()
-
setSpecialRendererInternal
public <T extends TileEntity> void setSpecialRendererInternal(TileEntityType<T> tileEntityType, TileEntityRenderer<? super T> specialRenderer)
-
-