Class BlockAttachedEntity

All Implemented Interfaces:
CommandSource, SyncedDataHolder, EntityAccess, Nameable, ScoreHolder, IAttachmentHolder, IEntityExtension, INBTSerializable<CompoundTag>
Direct Known Subclasses:
HangingEntity, LeashFenceKnotEntity

public abstract class BlockAttachedEntity extends Entity
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • checkInterval

      private int checkInterval
    • pos

      protected BlockPos pos
  • Constructor Details

  • Method Details

    • recalculateBoundingBox

      protected abstract void recalculateBoundingBox()
    • tick

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

      public abstract boolean survives()
    • isPickable

      public boolean isPickable()
      Overrides:
      isPickable in class Entity
    • skipAttackInteraction

      public boolean skipAttackInteraction(Entity p_346423_)
      Overrides:
      skipAttackInteraction in class Entity
    • hurt

      public boolean hurt(DamageSource p_345749_, float p_345893_)
      Overrides:
      hurt in class Entity
    • move

      public void move(MoverType p_345778_, Vec3 p_345301_)
      Overrides:
      move in class Entity
    • push

      public void push(double p_345288_, double p_346171_, double p_345389_)
      Overrides:
      push in class Entity
    • addAdditionalSaveData

      public void addAdditionalSaveData(CompoundTag p_344925_)
      Specified by:
      addAdditionalSaveData in class Entity
    • readAdditionalSaveData

      public void readAdditionalSaveData(CompoundTag p_346402_)
      Specified by:
      readAdditionalSaveData in class Entity
    • dropItem

      public abstract void dropItem(@Nullable Entity p_345676_)
    • repositionEntityAfterLoad

      protected boolean repositionEntityAfterLoad()
      Overrides:
      repositionEntityAfterLoad in class Entity
    • setPos

      public void setPos(double p_346360_, double p_344743_, double p_345636_)
      Overrides:
      setPos in class Entity
    • getPos

      public BlockPos getPos()
    • thunderHit

      public void thunderHit(ServerLevel p_345825_, LightningBolt p_346288_)
      Overrides:
      thunderHit in class Entity
    • refreshDimensions

      public void refreshDimensions()
      Overrides:
      refreshDimensions in class Entity