@Environment(value=CLIENT) public class BlockEntityRenderDispatcher extends Object
Modifier and Type | Field and Description |
---|---|
private BufferBuilder |
bufferBuilder |
Camera |
camera |
HitResult |
crosshairTarget |
static BlockEntityRenderDispatcher |
INSTANCE |
private Map<BlockEntityType<?>,BlockEntityRenderer<?>> |
renderers |
private TextRenderer |
textRenderer |
TextureManager |
textureManager |
World |
world |
Modifier | Constructor and Description |
---|---|
private |
BlockEntityRenderDispatcher() |
Modifier and Type | Method and Description |
---|---|
void |
configure(World world,
TextureManager textureManager,
TextRenderer textRenderer,
Camera camera,
HitResult crosshairTarget) |
<E extends BlockEntity> |
get(E e) |
TextRenderer |
getTextRenderer() |
private <E extends BlockEntity> |
register(BlockEntityType<E> blockEntityType,
BlockEntityRenderer<E> blockEntityRenderer) |
private static <T extends BlockEntity> |
render(BlockEntityRenderer<T> renderer,
T blockEntity,
float tickDelta,
MatrixStack matrices,
VertexConsumerProvider vertexConsumers) |
<E extends BlockEntity> |
render(E blockEntity,
float tickDelta,
MatrixStack matrix,
VertexConsumerProvider vertexConsumerProvider) |
<E extends BlockEntity> |
renderEntity(E entity,
MatrixStack matrix,
VertexConsumerProvider vertexConsumerProvider,
int light,
int overlay) |
private static void |
runReported(BlockEntity blockEntity,
Runnable runnable) |
void |
setWorld(World world) |
public static final BlockEntityRenderDispatcher INSTANCE
private final Map<BlockEntityType<?>,BlockEntityRenderer<?>> renderers
private final BufferBuilder bufferBuilder
private TextRenderer textRenderer
public TextureManager textureManager
public World world
public Camera camera
public HitResult crosshairTarget
private <E extends BlockEntity> void register(BlockEntityType<E> blockEntityType, BlockEntityRenderer<E> blockEntityRenderer)
@Nullable public <E extends BlockEntity> BlockEntityRenderer<E> get(E e)
public void configure(World world, TextureManager textureManager, TextRenderer textRenderer, Camera camera, HitResult crosshairTarget)
public <E extends BlockEntity> void render(E blockEntity, float tickDelta, MatrixStack matrix, VertexConsumerProvider vertexConsumerProvider)
private static <T extends BlockEntity> void render(BlockEntityRenderer<T> renderer, T blockEntity, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers)
public <E extends BlockEntity> boolean renderEntity(E entity, MatrixStack matrix, VertexConsumerProvider vertexConsumerProvider, int light, int overlay)
private static void runReported(BlockEntity blockEntity, Runnable runnable)
public TextRenderer getTextRenderer()