Class DisplayRenderer<T extends Display,S>

java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
net.minecraft.client.renderer.entity.DisplayRenderer<T,S>
Direct Known Subclasses:
DisplayRenderer.BlockDisplayRenderer, DisplayRenderer.ItemDisplayRenderer, DisplayRenderer.TextDisplayRenderer

public abstract class DisplayRenderer<T extends Display,S> extends EntityRenderer<T>
  • Field Details

  • Constructor Details

  • Method Details

    • getTextureLocation

      public ResourceLocation getTextureLocation(T p_270675_)
      Specified by:
      getTextureLocation in class EntityRenderer<T extends Display>
    • render

      public void render(T p_270405_, float p_270225_, float p_270279_, PoseStack p_270728_, MultiBufferSource p_270209_, int p_270298_)
      Overrides:
      render in class EntityRenderer<T extends Display>
    • calculateOrientation

      private org.joml.Quaternionf calculateOrientation(Display.RenderState p_277846_, T p_271013_, float p_298568_, org.joml.Quaternionf p_298476_)
    • cameraYrot

      private static float cameraYrot(Camera p_299213_)
    • cameraXRot

      private static float cameraXRot(Camera p_297923_)
    • entityYRot

      private static <T extends Display> float entityYRot(T p_297849_, float p_297686_)
    • entityXRot

      private static <T extends Display> float entityXRot(T p_298651_, float p_297691_)
    • getSubState

      @Nullable protected abstract S getSubState(T p_270246_)
    • renderInner

      protected abstract void renderInner(T p_277862_, S p_277363_, PoseStack p_277686_, MultiBufferSource p_277429_, int p_278023_, float p_277453_)