Class GuiEntityRenderer

All Implemented Interfaces:
BackgroundRender, ElementEvents, GuiParent<GuiEntityRenderer>, TooltipHandler<GuiEntityRenderer>

public class GuiEntityRenderer extends GuiElement<GuiEntityRenderer> implements BackgroundRender
Created by brandon3055 on 15/11/2023
  • Field Details

    • LOGGER

      public static final org.apache.logging.log4j.Logger LOGGER
    • force2dSize

      public boolean force2dSize
  • Constructor Details

    • GuiEntityRenderer

      public GuiEntityRenderer(GuiParent<?> parent)
  • Method Details

    • setEntity

      public GuiEntityRenderer setEntity(net.minecraft.world.entity.Entity entity)
    • setEntity

      public GuiEntityRenderer setEntity(net.minecraft.resources.Identifier entity)
    • setRotationSpeed

      public GuiEntityRenderer setRotationSpeed(float rotationSpeed)
    • setRotationSpeed

      public GuiEntityRenderer setRotationSpeed(Supplier<Float> rotationSpeed)
    • getRotationSpeed

      public float getRotationSpeed()
    • setLockedRotation

      public GuiEntityRenderer setLockedRotation(float lockedRotation)
    • setLockedRotation

      public GuiEntityRenderer setLockedRotation(Supplier<Float> lockedRotation)
    • getLockedRotation

      public float getLockedRotation()
    • setRotationLocked

      public GuiEntityRenderer setRotationLocked(boolean rotationLocked)
    • setRotationLocked

      public GuiEntityRenderer setRotationLocked(Supplier<Boolean> rotationLocked)
    • isRotationLocked

      public boolean isRotationLocked()
    • setTrackMouse

      public GuiEntityRenderer setTrackMouse(boolean trackMouse)
    • setTrackMouse

      public GuiEntityRenderer setTrackMouse(Supplier<Boolean> trackMouse)
    • isTrackMouse

      public boolean isTrackMouse()
    • setDrawName

      public GuiEntityRenderer setDrawName(boolean drawName)
    • setDrawName

      public GuiEntityRenderer setDrawName(Supplier<Boolean> drawName)
    • isDrawName

      public boolean isDrawName()
    • setForce2dSize

      public GuiEntityRenderer setForce2dSize(boolean force2dSize)
    • renderBehind

      public void renderBehind(net.minecraft.client.gui.GuiGraphics graphics, double mouseX, double mouseY, float partialTicks)
      Description copied from interface: BackgroundRender
      Used to render content behind this elements child elements. When rendering element content, always use the PoseStack available via the provided
      invalid reference
      GuiRender
      Where applicable, always use push/pop to ensure the stack is returned to its original state after your rendering is complete.
      Specified by:
      renderBehind in interface BackgroundRender
      Parameters:
      graphics - Contains gui context information as well as essential render methods/utils including the PoseStack.