Class Display

All Implemented Interfaces:
DataComponentGetter, SyncedDataHolder, DebugValueSource, ItemOwner, EntityAccess, UniquelyIdentifyable, Nameable, ScoreHolder, IAttachmentHolder, IEntityExtension
Direct Known Subclasses:
Display.BlockDisplay, Display.ItemDisplay, Display.TextDisplay

public abstract class Display extends Entity
  • Field Details

  • Constructor Details

  • Method Details

    • onSyncedDataUpdated

      public void onSyncedDataUpdated(EntityDataAccessor<?> p_270275_)
      Specified by:
      onSyncedDataUpdated in interface SyncedDataHolder
      Overrides:
      onSyncedDataUpdated in class Entity
    • hurtServer

      public final boolean hurtServer(ServerLevel p_376368_, DamageSource p_376135_, float p_376332_)
      Specified by:
      hurtServer in class Entity
    • createTransformation

      private static Transformation createTransformation(SynchedEntityData pSynchedEntityData)
    • tick

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

      public InterpolationHandler getInterpolation()
      Overrides:
      getInterpolation in class Entity
    • updateRenderSubState

      protected abstract void updateRenderSubState(boolean pInterpolate, float pPartialTick)
    • defineSynchedData

      protected void defineSynchedData(SynchedEntityData.Builder p_325924_)
      Specified by:
      defineSynchedData in class Entity
    • readAdditionalSaveData

      protected void readAdditionalSaveData(ValueInput p_421584_)
      Specified by:
      readAdditionalSaveData in class Entity
    • setTransformation

      private void setTransformation(Transformation pTransformation)
    • addAdditionalSaveData

      protected void addAdditionalSaveData(ValueOutput p_422542_)
      Specified by:
      addAdditionalSaveData in class Entity
    • getBoundingBoxForCulling

      public AABB getBoundingBoxForCulling()
    • affectedByCulling

      public boolean affectedByCulling()
    • 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 pTransformationInterpolationDuration)
    • getTransformationInterpolationDuration

      private int getTransformationInterpolationDuration()
    • setTransformationInterpolationDelay

      private void setTransformationInterpolationDelay(int pTransformationInterpolationDelay)
    • getTransformationInterpolationDelay

      private int getTransformationInterpolationDelay()
    • setPosRotInterpolationDuration

      private void setPosRotInterpolationDuration(int pPosRotInterpolationDuration)
    • getPosRotInterpolationDuration

      private int getPosRotInterpolationDuration()
    • setBillboardConstraints

      private void setBillboardConstraints(Display.BillboardConstraints pBillboardConstraints)
    • getBillboardConstraints

      private Display.BillboardConstraints getBillboardConstraints()
    • setBrightnessOverride

      private void setBrightnessOverride(@Nullable Brightness pBrightnessOverride)
    • getBrightnessOverride

      @Nullable private Brightness getBrightnessOverride()
    • getPackedBrightnessOverride

      private int getPackedBrightnessOverride()
    • setViewRange

      private void setViewRange(float pViewRange)
    • getViewRange

      private float getViewRange()
    • setShadowRadius

      private void setShadowRadius(float pShadowRadius)
    • getShadowRadius

      private float getShadowRadius()
    • setShadowStrength

      private void setShadowStrength(float pShadowStrength)
    • getShadowStrength

      private float getShadowStrength()
    • setWidth

      private void setWidth(float pWidth)
    • getWidth

      private float getWidth()
    • setHeight

      private void setHeight(float pHeight)
    • getGlowColorOverride

      private int getGlowColorOverride()
    • setGlowColorOverride

      private void setGlowColorOverride(int pGlowColorOverride)
    • calculateInterpolationProgress

      public float calculateInterpolationProgress(float pPartialTick)
    • getHeight

      private float getHeight()
    • setPos

      public void setPos(double p_270091_, double p_270983_, double p_270419_)
      Description copied from class: Entity
      Sets the x,y,z of the entity from the given parameters. Also seems to set up a bounding box.
      Overrides:
      setPos in class Entity
    • updateCulling

      private void updateCulling()
    • shouldRenderAtSqrDistance

      public boolean shouldRenderAtSqrDistance(double p_270991_)
      Description copied from class: Entity
      Checks if the entity is in range to render.
      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 pRenderState, float pPartialTick)