Class BlockAttachedEntity

All Implemented Interfaces:
CommandSource, SyncedDataHolder, EntityAccess, Nameable, ScoreHolder, ICapabilityProvider, ICapabilityProviderImpl<Entity>, ICapabilitySerializable<CompoundTag>, IForgeEntity, 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_342897_)
      Overrides:
      skipAttackInteraction in class Entity
    • hurt

      public boolean hurt(DamageSource p_342515_, float p_343956_)
      Overrides:
      hurt in class Entity
    • move

      public void move(MoverType p_344908_, Vec3 p_344746_)
      Overrides:
      move in class Entity
    • push

      public void push(double p_342878_, double p_342443_, double p_343763_)
      Overrides:
      push in class Entity
    • addAdditionalSaveData

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

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

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

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

      public void setPos(double p_342922_, double p_342992_, double p_343897_)
      Overrides:
      setPos in class Entity
    • getPos

      public BlockPos getPos()
    • thunderHit

      public void thunderHit(ServerLevel p_343731_, LightningBolt p_343666_)
      Overrides:
      thunderHit in class Entity
    • refreshDimensions

      public void refreshDimensions()
      Overrides:
      refreshDimensions in class Entity