Class Display

All Implemented Interfaces:
SyncedDataHolder, EntityAccess, Nameable, ScoreHolder, IAttachmentHolder, IEntityExtension, INBTSerializable<CompoundTag>
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
    • 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(CompoundTag p_270854_)
      Description copied from class: Entity
      (abstract) Protected helper method to read subclass entity data from NBT.
      Specified by:
      readAdditionalSaveData in class Entity
    • setTransformation

      private void setTransformation(Transformation pTransformation)
    • addAdditionalSaveData

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

      public void cancelLerp()
      Overrides:
      cancelLerp 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()
    • 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)