Class Display

All Implemented Interfaces:
CommandSource, EntityAccess, Nameable, ICapabilityProvider, ICapabilityProviderImpl<Entity>, ICapabilitySerializable<CompoundTag>, IForgeEntity, INBTSerializable<CompoundTag>
Direct Known Subclasses:
Display.BlockDisplay, Display.ItemDisplay, Display.TextDisplay

public abstract class Display extends Entity
  • Field Details

    • LOGGER

      static final org.slf4j.Logger LOGGER
    • NO_BRIGHTNESS_OVERRIDE

      public static final int NO_BRIGHTNESS_OVERRIDE
      See Also:
    • DATA_INTERPOLATION_START_DELTA_TICKS_ID

      private static final EntityDataAccessor<Integer> DATA_INTERPOLATION_START_DELTA_TICKS_ID
    • DATA_INTERPOLATION_DURATION_ID

      private static final EntityDataAccessor<Integer> DATA_INTERPOLATION_DURATION_ID
    • DATA_TRANSLATION_ID

      private static final EntityDataAccessor<org.joml.Vector3f> DATA_TRANSLATION_ID
    • DATA_SCALE_ID

      private static final EntityDataAccessor<org.joml.Vector3f> DATA_SCALE_ID
    • DATA_LEFT_ROTATION_ID

      private static final EntityDataAccessor<org.joml.Quaternionf> DATA_LEFT_ROTATION_ID
    • DATA_RIGHT_ROTATION_ID

      private static final EntityDataAccessor<org.joml.Quaternionf> DATA_RIGHT_ROTATION_ID
    • DATA_BILLBOARD_RENDER_CONSTRAINTS_ID

      private static final EntityDataAccessor<Byte> DATA_BILLBOARD_RENDER_CONSTRAINTS_ID
    • DATA_BRIGHTNESS_OVERRIDE_ID

      private static final EntityDataAccessor<Integer> DATA_BRIGHTNESS_OVERRIDE_ID
    • DATA_VIEW_RANGE_ID

      private static final EntityDataAccessor<Float> DATA_VIEW_RANGE_ID
    • DATA_SHADOW_RADIUS_ID

      private static final EntityDataAccessor<Float> DATA_SHADOW_RADIUS_ID
    • DATA_SHADOW_STRENGTH_ID

      private static final EntityDataAccessor<Float> DATA_SHADOW_STRENGTH_ID
    • DATA_WIDTH_ID

      private static final EntityDataAccessor<Float> DATA_WIDTH_ID
    • DATA_HEIGHT_ID

      private static final EntityDataAccessor<Float> DATA_HEIGHT_ID
    • DATA_GLOW_COLOR_OVERRIDE_ID

      private static final EntityDataAccessor<Integer> DATA_GLOW_COLOR_OVERRIDE_ID
    • RENDER_STATE_IDS

      private static final it.unimi.dsi.fastutil.ints.IntSet RENDER_STATE_IDS
    • INITIAL_SHADOW_RADIUS

      private static final float INITIAL_SHADOW_RADIUS
      See Also:
    • INITIAL_SHADOW_STRENGTH

      private static final float INITIAL_SHADOW_STRENGTH
      See Also:
    • NO_GLOW_COLOR_OVERRIDE

      private static final int NO_GLOW_COLOR_OVERRIDE
      See Also:
    • TAG_INTERPOLATION_DURATION

      public static final String TAG_INTERPOLATION_DURATION
      See Also:
    • TAG_START_INTERPOLATION

      public static final String TAG_START_INTERPOLATION
      See Also:
    • TAG_TRANSFORMATION

      public static final String TAG_TRANSFORMATION
      See Also:
    • TAG_BILLBOARD

      public static final String TAG_BILLBOARD
      See Also:
    • TAG_BRIGHTNESS

      public static final String TAG_BRIGHTNESS
      See Also:
    • TAG_VIEW_RANGE

      public static final String TAG_VIEW_RANGE
      See Also:
    • TAG_SHADOW_RADIUS

      public static final String TAG_SHADOW_RADIUS
      See Also:
    • TAG_SHADOW_STRENGTH

      public static final String TAG_SHADOW_STRENGTH
      See Also:
    • TAG_WIDTH

      public static final String TAG_WIDTH
      See Also:
    • TAG_HEIGHT

      public static final String TAG_HEIGHT
      See Also:
    • TAG_GLOW_COLOR_OVERRIDE

      public static final String TAG_GLOW_COLOR_OVERRIDE
      See Also:
    • orientation

      private final org.joml.Quaternionf orientation
    • interpolationStartClientTick

      private long interpolationStartClientTick
    • interpolationDuration

      private int interpolationDuration
    • lastProgress

      private float lastProgress
    • cullingBoundingBox

      private AABB cullingBoundingBox
    • updateRenderState

      protected boolean updateRenderState
    • updateStartTick

      private boolean updateStartTick
    • updateInterpolationDuration

      private boolean updateInterpolationDuration
    • renderState

      @Nullable private Display.RenderState renderState
  • Constructor Details

  • Method Details

    • onSyncedDataUpdated

      public void onSyncedDataUpdated(EntityDataAccessor<?> p_270275_)
      Overrides:
      onSyncedDataUpdated in class Entity
    • createTransformation

      private static Transformation createTransformation(SynchedEntityData p_270278_)
    • tick

      public void tick()
      Overrides:
      tick in class Entity
    • updateRenderSubState

      protected abstract void updateRenderSubState(boolean p_277603_, float p_277810_)
    • defineSynchedData

      protected void defineSynchedData()
      Specified by:
      defineSynchedData in class Entity
    • readAdditionalSaveData

      protected void readAdditionalSaveData(CompoundTag p_270854_)
      Specified by:
      readAdditionalSaveData in class Entity
    • setTransformation

      private void setTransformation(Transformation p_270186_)
    • addAdditionalSaveData

      protected void addAdditionalSaveData(CompoundTag p_270779_)
      Specified by:
      addAdditionalSaveData in class Entity
    • getAddEntityPacket

      public Packet<ClientGamePacketListener> getAddEntityPacket()
      Overrides:
      getAddEntityPacket in class Entity
    • getBoundingBoxForCulling

      public AABB getBoundingBoxForCulling()
      Overrides:
      getBoundingBoxForCulling in class Entity
    • getPistonPushReaction

      public PushReaction getPistonPushReaction()
      Overrides:
      getPistonPushReaction in class Entity
    • isIgnoringBlockTriggers

      public boolean isIgnoringBlockTriggers()
      Overrides:
      isIgnoringBlockTriggers in class Entity
    • orientation

      public org.joml.Quaternionf orientation()
    • renderState

      @Nullable public Display.RenderState renderState()
    • setInterpolationDuration

      private void setInterpolationDuration(int p_270803_)
    • getInterpolationDuration

      private int getInterpolationDuration()
    • setInterpolationDelay

      private void setInterpolationDelay(int p_276366_)
    • getInterpolationDelay

      private int getInterpolationDelay()
    • setBillboardConstraints

      private void setBillboardConstraints(Display.BillboardConstraints p_270345_)
    • getBillboardConstraints

      private Display.BillboardConstraints getBillboardConstraints()
    • setBrightnessOverride

      private void setBrightnessOverride(@Nullable Brightness p_270461_)
    • getBrightnessOverride

      @Nullable private Brightness getBrightnessOverride()
    • getPackedBrightnessOverride

      private int getPackedBrightnessOverride()
    • setViewRange

      private void setViewRange(float p_270907_)
    • getViewRange

      private float getViewRange()
    • setShadowRadius

      private void setShadowRadius(float p_270122_)
    • getShadowRadius

      private float getShadowRadius()
    • setShadowStrength

      private void setShadowStrength(float p_270866_)
    • getShadowStrength

      private float getShadowStrength()
    • setWidth

      private void setWidth(float p_270741_)
    • getWidth

      private float getWidth()
    • setHeight

      private void setHeight(float p_270716_)
    • getGlowColorOverride

      private int getGlowColorOverride()
    • setGlowColorOverride

      private void setGlowColorOverride(int p_270784_)
    • calculateInterpolationProgress

      public float calculateInterpolationProgress(float p_272675_)
    • getHeight

      private float getHeight()
    • setPos

      public void setPos(double p_270091_, double p_270983_, double p_270419_)
      Overrides:
      setPos in class Entity
    • updateCulling

      private void updateCulling()
    • setXRot

      public void setXRot(float p_270257_)
      Overrides:
      setXRot in class Entity
    • setYRot

      public void setYRot(float p_270921_)
      Overrides:
      setYRot in class Entity
    • updateOrientation

      private void updateOrientation()
    • shouldRenderAtSqrDistance

      public boolean shouldRenderAtSqrDistance(double p_270991_)
      Overrides:
      shouldRenderAtSqrDistance in class Entity
    • getTeamColor

      public int getTeamColor()
      Overrides:
      getTeamColor in class Entity
    • createFreshRenderState

      private Display.RenderState createFreshRenderState()
    • createInterpolatedRenderState

      private Display.RenderState createInterpolatedRenderState(Display.RenderState p_277365_, float p_277948_)