Class Display

All Implemented Interfaces:
CommandSource, EntityAccess, Nameable, ICapabilityProvider, ICapabilityProviderImpl<Entity>, ICapabilitySerializable<CompoundTag>, IEntityExtension, 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_TRANSFORMATION_INTERPOLATION_START_DELTA_TICKS_ID

      private static final EntityDataAccessor<Integer> DATA_TRANSFORMATION_INTERPOLATION_START_DELTA_TICKS_ID
    • DATA_TRANSFORMATION_INTERPOLATION_DURATION_ID

      private static final EntityDataAccessor<Integer> DATA_TRANSFORMATION_INTERPOLATION_DURATION_ID
    • DATA_POS_ROT_INTERPOLATION_DURATION_ID

      private static final EntityDataAccessor<Integer> DATA_POS_ROT_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_POS_ROT_INTERPOLATION_DURATION

      public static final String TAG_POS_ROT_INTERPOLATION_DURATION
      See Also:
    • TAG_TRANSFORMATION_INTERPOLATION_DURATION

      public static final String TAG_TRANSFORMATION_INTERPOLATION_DURATION
      See Also:
    • TAG_TRANSFORMATION_START_INTERPOLATION

      public static final String TAG_TRANSFORMATION_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:
    • 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
    • posRotInterpolationTarget

      @Nullable private Display.PosRotInterpolationTarget posRotInterpolationTarget
  • 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
    • lerpTo

      public void lerpTo(double p_296267_, double p_295427_, double p_295172_, float p_294570_, float p_295085_, int p_295553_)
      Overrides:
      lerpTo in class Entity
    • lerpTargetX

      public double lerpTargetX()
      Overrides:
      lerpTargetX in class Entity
    • lerpTargetY

      public double lerpTargetY()
      Overrides:
      lerpTargetY in class Entity
    • lerpTargetZ

      public double lerpTargetZ()
      Overrides:
      lerpTargetZ in class Entity
    • lerpTargetXRot

      public float lerpTargetXRot()
      Overrides:
      lerpTargetXRot in class Entity
    • lerpTargetYRot

      public float lerpTargetYRot()
      Overrides:
      lerpTargetYRot 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
    • renderState

      @Nullable public Display.RenderState renderState()
    • setTransformationInterpolationDuration

      private void setTransformationInterpolationDuration(int p_295945_)
    • getTransformationInterpolationDuration

      private int getTransformationInterpolationDuration()
    • setTransformationInterpolationDelay

      private void setTransformationInterpolationDelay(int p_296116_)
    • getTransformationInterpolationDelay

      private int getTransformationInterpolationDelay()
    • setPosRotInterpolationDuration

      private void setPosRotInterpolationDuration(int p_295015_)
    • getPosRotInterpolationDuration

      private int getPosRotInterpolationDuration()
    • 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()
    • 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_)