Class TameableEntity

All Implemented Interfaces:
ICommandSource, INameable, ICapabilityProvider, ICapabilitySerializable<CompoundNBT>, IForgeEntity, INBTSerializable<CompoundNBT>
Direct Known Subclasses:
CatEntity, ShoulderRidingEntity, WolfEntity

public abstract class TameableEntity extends AnimalEntity
  • Field Details

  • Constructor Details

  • Method Details

    • defineSynchedData

      protected void defineSynchedData()
      Overrides:
      defineSynchedData in class AgeableEntity
    • addAdditionalSaveData

      public void addAdditionalSaveData(CompoundNBT p_213281_1_)
      Overrides:
      addAdditionalSaveData in class AnimalEntity
    • readAdditionalSaveData

      public void readAdditionalSaveData(CompoundNBT p_70037_1_)
      Overrides:
      readAdditionalSaveData in class AnimalEntity
    • canBeLeashed

      public boolean canBeLeashed(PlayerEntity p_184652_1_)
      Overrides:
      canBeLeashed in class MobEntity
    • spawnTamingParticles

      protected void spawnTamingParticles(boolean p_70908_1_)
    • handleEntityEvent

      public void handleEntityEvent(byte p_70103_1_)
      Overrides:
      handleEntityEvent in class AnimalEntity
    • isTame

      public boolean isTame()
    • setTame

      public void setTame(boolean p_70903_1_)
    • reassessTameGoals

      protected void reassessTameGoals()
    • isInSittingPose

      public boolean isInSittingPose()
    • setInSittingPose

      public void setInSittingPose(boolean p_233686_1_)
    • getOwnerUUID

      @Nullable public UUID getOwnerUUID()
    • setOwnerUUID

      public void setOwnerUUID(@Nullable UUID p_184754_1_)
    • tame

      public void tame(PlayerEntity p_193101_1_)
    • getOwner

      @Nullable public LivingEntity getOwner()
    • canAttack

      public boolean canAttack(LivingEntity p_213336_1_)
      Overrides:
      canAttack in class MobEntity
    • isOwnedBy

      public boolean isOwnedBy(LivingEntity p_152114_1_)
    • wantsToAttack

      public boolean wantsToAttack(LivingEntity p_142018_1_, LivingEntity p_142018_2_)
    • getTeam

      public Team getTeam()
      Overrides:
      getTeam in class Entity
    • isAlliedTo

      public boolean isAlliedTo(Entity p_184191_1_)
      Overrides:
      isAlliedTo in class Entity
    • die

      public void die(DamageSource p_70645_1_)
      Overrides:
      die in class LivingEntity
    • isOrderedToSit

      public boolean isOrderedToSit()
    • setOrderedToSit

      public void setOrderedToSit(boolean p_233687_1_)