Class EntityRendererManager


  • public class EntityRendererManager
    extends java.lang.Object
    • Field Detail

      • SHADOW_RENDER_TYPE

        private static final RenderType SHADOW_RENDER_TYPE
      • playerRenderers

        private final java.util.Map<java.lang.String,​PlayerRenderer> playerRenderers
      • defaultPlayerRenderer

        private final PlayerRenderer defaultPlayerRenderer
      • level

        private World level
      • cameraOrientation

        private Quaternion cameraOrientation
      • crosshairPickEntity

        public Entity crosshairPickEntity
      • shouldRenderShadow

        private boolean shouldRenderShadow
      • renderHitBoxes

        private boolean renderHitBoxes
    • Method Detail

      • getPackedLightCoords

        public <E extends Entity> int getPackedLightCoords​(E p_229085_1_,
                                                           float p_229085_2_)
      • validateRendererExistence

        public void validateRendererExistence()
      • overrideCameraOrientation

        public void overrideCameraOrientation​(Quaternion p_229089_1_)
      • setRenderShadow

        public void setRenderShadow​(boolean p_178633_1_)
      • setRenderHitBoxes

        public void setRenderHitBoxes​(boolean p_178629_1_)
      • shouldRenderHitBoxes

        public boolean shouldRenderHitBoxes()
      • shouldRender

        public <E extends Entity> boolean shouldRender​(E p_229086_1_,
                                                       ClippingHelper p_229086_2_,
                                                       double p_229086_3_,
                                                       double p_229086_5_,
                                                       double p_229086_7_)
      • render

        public <E extends Entity> void render​(E p_229084_1_,
                                              double p_229084_2_,
                                              double p_229084_4_,
                                              double p_229084_6_,
                                              float p_229084_8_,
                                              float p_229084_9_,
                                              MatrixStack p_229084_10_,
                                              IRenderTypeBuffer p_229084_11_,
                                              int p_229084_12_)
      • renderBox

        private void renderBox​(MatrixStack p_229094_1_,
                               IVertexBuilder p_229094_2_,
                               Entity p_229094_3_,
                               float p_229094_4_,
                               float p_229094_5_,
                               float p_229094_6_)
      • fireVertex

        private static void fireVertex​(MatrixStack.Entry p_229090_0_,
                                       IVertexBuilder p_229090_1_,
                                       float p_229090_2_,
                                       float p_229090_3_,
                                       float p_229090_4_,
                                       float p_229090_5_,
                                       float p_229090_6_)
      • renderBlockShadow

        private static void renderBlockShadow​(MatrixStack.Entry p_229092_0_,
                                              IVertexBuilder p_229092_1_,
                                              IWorldReader p_229092_2_,
                                              BlockPos p_229092_3_,
                                              double p_229092_4_,
                                              double p_229092_6_,
                                              double p_229092_8_,
                                              float p_229092_10_,
                                              float p_229092_11_)
      • shadowVertex

        private static void shadowVertex​(MatrixStack.Entry p_229091_0_,
                                         IVertexBuilder p_229091_1_,
                                         float p_229091_2_,
                                         float p_229091_3_,
                                         float p_229091_4_,
                                         float p_229091_5_,
                                         float p_229091_6_,
                                         float p_229091_7_)
      • setLevel

        public void setLevel​(@Nullable
                             World p_78717_1_)
      • distanceToSqr

        public double distanceToSqr​(Entity p_229099_1_)
      • distanceToSqr

        public double distanceToSqr​(double p_78714_1_,
                                    double p_78714_3_,
                                    double p_78714_5_)
      • cameraOrientation

        public Quaternion cameraOrientation()
      • getSkinMap

        public java.util.Map<java.lang.String,​PlayerRenderer> getSkinMap()