Class EntityRenderDispatcher

java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderDispatcher
All Implemented Interfaces:
PreparableReloadListener, ResourceManagerReloadListener

public class EntityRenderDispatcher extends Object implements ResourceManagerReloadListener
  • Field Details

    • SHADOW_RENDER_TYPE

      private static final RenderType SHADOW_RENDER_TYPE
    • renderers

      public Map<EntityType<?>,EntityRenderer<?>> renderers
    • playerRenderers

      private Map<String,EntityRenderer<? extends Player>> playerRenderers
    • textureManager

      public final TextureManager textureManager
    • level

      private Level level
    • camera

      public Camera camera
    • cameraOrientation

      private org.joml.Quaternionf cameraOrientation
    • crosshairPickEntity

      public Entity crosshairPickEntity
    • itemRenderer

      private final ItemRenderer itemRenderer
    • blockRenderDispatcher

      private final BlockRenderDispatcher blockRenderDispatcher
    • itemInHandRenderer

      private final ItemInHandRenderer itemInHandRenderer
    • font

      private final Font font
    • options

      public final Options options
    • entityModels

      private final EntityModelSet entityModels
    • shouldRenderShadow

      private boolean shouldRenderShadow
    • renderHitBoxes

      private boolean renderHitBoxes
  • Constructor Details

  • Method Details

    • getPackedLightCoords

      public <E extends Entity> int getPackedLightCoords(E p_114395_, float p_114396_)
    • getRenderer

      public <T extends Entity> EntityRenderer<? super T> getRenderer(T p_114383_)
    • prepare

      public void prepare(Level p_114409_, Camera p_114410_, Entity p_114411_)
    • overrideCameraOrientation

      public void overrideCameraOrientation(org.joml.Quaternionf p_254264_)
    • setRenderShadow

      public void setRenderShadow(boolean p_114469_)
    • setRenderHitBoxes

      public void setRenderHitBoxes(boolean p_114474_)
    • shouldRenderHitBoxes

      public boolean shouldRenderHitBoxes()
    • shouldRender

      public <E extends Entity> boolean shouldRender(E p_114398_, Frustum p_114399_, double p_114400_, double p_114401_, double p_114402_)
    • render

      public <E extends Entity> void render(E p_114385_, double p_114386_, double p_114387_, double p_114388_, float p_114389_, float p_114390_, PoseStack p_114391_, MultiBufferSource p_114392_, int p_114393_)
    • renderHitbox

      private static void renderHitbox(PoseStack p_114442_, VertexConsumer p_114443_, Entity p_114444_, float p_114445_)
    • renderFlame

      private void renderFlame(PoseStack p_114454_, MultiBufferSource p_114455_, Entity p_114456_)
    • fireVertex

      private static void fireVertex(PoseStack.Pose p_114415_, VertexConsumer p_114416_, float p_114417_, float p_114418_, float p_114419_, float p_114420_, float p_114421_)
    • renderShadow

      private static void renderShadow(PoseStack p_114458_, MultiBufferSource p_114459_, Entity p_114460_, float p_114461_, float p_114462_, LevelReader p_114463_, float p_114464_)
    • renderBlockShadow

      private static void renderBlockShadow(PoseStack.Pose p_114432_, VertexConsumer p_114433_, LevelReader p_114434_, BlockPos p_114435_, double p_114436_, double p_114437_, double p_114438_, float p_114439_, float p_114440_)
    • shadowVertex

      private static void shadowVertex(PoseStack.Pose p_114423_, VertexConsumer p_114424_, float p_114425_, float p_114426_, float p_114427_, float p_114428_, float p_114429_, float p_114430_)
    • setLevel

      public void setLevel(@Nullable Level p_114407_)
    • distanceToSqr

      public double distanceToSqr(Entity p_114472_)
    • distanceToSqr

      public double distanceToSqr(double p_114379_, double p_114380_, double p_114381_)
    • cameraOrientation

      public org.joml.Quaternionf cameraOrientation()
    • getItemInHandRenderer

      public ItemInHandRenderer getItemInHandRenderer()
    • getSkinMap

      public Map<String,EntityRenderer<? extends Player>> getSkinMap()
    • onResourceManagerReload

      public void onResourceManagerReload(ResourceManager p_174004_)
      Specified by:
      onResourceManagerReload in interface ResourceManagerReloadListener