Class EndPortalBlockEntityRenderer<T extends EndPortalBlockEntity>
java.lang.Object
net.minecraft.client.render.block.entity.EndPortalBlockEntityRenderer<T>
- All Implemented Interfaces:
BlockEntityRenderer<T>
- Direct Known Subclasses:
EndGatewayBlockEntityRenderer
@Environment(CLIENT) public class EndPortalBlockEntityRenderer<T extends EndPortalBlockEntity> extends Object implements BlockEntityRenderer<T>
-
Field Summary
Fields Modifier and Type Field Description private BlockEntityRenderDispatcherdispatcherprivate static List<RenderLayer>PORTAL_RENDER_LAYERSstatic IdentifierPORTAL_TEXTUREprivate static RandomRANDOMstatic IdentifierSKY_TEXTURE -
Constructor Summary
Constructors Constructor Description EndPortalBlockEntityRenderer(BlockEntityRendererFactory.Context ctx) -
Method Summary
Modifier and Type Method Description protected intgetDetailLevel(double distance)Decides how many layers of texture to show on a portal block based on its distance from the camera.protected floatgetTopYOffset()voidrender(T t, float float2, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2, int int3)private voidrenderSide(T entity, Matrix4f model, VertexConsumer vertices, float x1, float x2, float y1, float y2, float z1, float z2, float z3, float z4, float red, float green, float blue, Direction direction)private voidrenderSides(T entity, float topYOffset, float brightness, Matrix4f model, VertexConsumer vertices)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.render.block.entity.BlockEntityRenderer
rendersOutsideBoundingBox
-
Field Details
-
SKY_TEXTURE
-
PORTAL_TEXTURE
-
RANDOM
-
PORTAL_RENDER_LAYERS
-
dispatcher
-
-
Constructor Details
-
EndPortalBlockEntityRenderer
-
-
Method Details
-
render
public void render(T t, float float2, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2, int int3)- Specified by:
renderin interfaceBlockEntityRenderer<T extends EndPortalBlockEntity>
-
renderSides
private void renderSides(T entity, float topYOffset, float brightness, Matrix4f model, VertexConsumer vertices) -
renderSide
private void renderSide(T entity, Matrix4f model, VertexConsumer vertices, float x1, float x2, float y1, float y2, float z1, float z2, float z3, float z4, float red, float green, float blue, Direction direction) -
getDetailLevel
protected int getDetailLevel(double distance)Decides how many layers of texture to show on a portal block based on its distance from the camera. -
getTopYOffset
protected float getTopYOffset()
-