Class EntityRenderDispatcher

java.lang.Object
net.minecraft.client.render.entity.EntityRenderDispatcher

@Environment(CLIENT)
public class EntityRenderDispatcher
extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getLight

      public <E extends Entity> int getLight​(E entity, float tickDelta)
    • register

      private <T extends Entity> void register​(EntityType<T> entityType, EntityRenderer<? super T> entityRenderer)
    • registerRenderers

      private void registerRenderers​(ItemRenderer itemRenderer, ReloadableResourceManager reloadableResourceManager)
    • getRenderer

      public <T extends Entity> EntityRenderer<? super T> getRenderer​(T entity)
    • configure

      public void configure​(World world, Camera camera, Entity target)
    • setRotation

      public void setRotation​(Quaternion rotation)
    • setRenderShadows

      public void setRenderShadows​(boolean value)
    • setRenderHitboxes

      public void setRenderHitboxes​(boolean value)
    • shouldRenderHitboxes

      public boolean shouldRenderHitboxes()
    • shouldRender

      public <E extends Entity> boolean shouldRender​(E entity, Frustum frustum, double x, double y, double z)
    • render

      public <E extends Entity> void render​(E entity, double x, double y, double z, float yaw, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)
    • renderHitbox

      private void renderHitbox​(MatrixStack matrices, VertexConsumer vertices, Entity entity, float tickDelta)
    • drawBox

      private void drawBox​(MatrixStack matrix, VertexConsumer vertices, Entity entity, float red, float green, float blue)
    • renderFire

      private void renderFire​(MatrixStack matrices, VertexConsumerProvider vertexConsumers, Entity entity)
    • drawFireVertex

      private static void drawFireVertex​(MatrixStack.Entry entry, VertexConsumer vertices, float x, float y, float z, float u, float v)
    • renderShadow

      private static void renderShadow​(MatrixStack matrices, VertexConsumerProvider vertexConsumers, Entity entity, float opacity, float tickDelta, WorldView world, float radius)
    • renderShadowPart

      private static void renderShadowPart​(MatrixStack.Entry entry, VertexConsumer vertices, WorldView world, BlockPos pos, double x, double y, double z, float radius, float opacity)
    • drawShadowVertex

      private static void drawShadowVertex​(MatrixStack.Entry entry, VertexConsumer vertices, float alpha, float x, float y, float z, float u, float v)
    • setWorld

      public void setWorld​(@Nullable World world)
    • getSquaredDistanceToCamera

      public double getSquaredDistanceToCamera​(Entity entity)
    • getSquaredDistanceToCamera

      public double getSquaredDistanceToCamera​(double x, double y, double z)
    • getRotation

      public Quaternion getRotation()
    • getTextRenderer

      public TextRenderer getTextRenderer()