Class TamableAnimal

All Implemented Interfaces:
CommandSource, OwnableEntity, EntityAccess, Nameable, ICapabilityProvider, ICapabilityProviderImpl<Entity>, ICapabilitySerializable<CompoundTag>, IForgeEntity, IForgeLivingEntity, INBTSerializable<CompoundTag>
Direct Known Subclasses:
Cat, ShoulderRidingEntity, Wolf

public abstract class TamableAnimal extends Animal implements OwnableEntity
  • Field Details

  • Constructor Details

  • Method Details

    • defineSynchedData

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

      public void addAdditionalSaveData(CompoundTag p_21819_)
      Overrides:
      addAdditionalSaveData in class Animal
    • readAdditionalSaveData

      public void readAdditionalSaveData(CompoundTag p_21815_)
      Overrides:
      readAdditionalSaveData in class Animal
    • canBeLeashed

      public boolean canBeLeashed(Player p_21813_)
      Overrides:
      canBeLeashed in class Mob
    • spawnTamingParticles

      protected void spawnTamingParticles(boolean p_21835_)
    • handleEntityEvent

      public void handleEntityEvent(byte p_21807_)
      Overrides:
      handleEntityEvent in class Animal
    • isTame

      public boolean isTame()
    • setTame

      public void setTame(boolean p_21836_)
    • reassessTameGoals

      protected void reassessTameGoals()
    • isInSittingPose

      public boolean isInSittingPose()
    • setInSittingPose

      public void setInSittingPose(boolean p_21838_)
    • getOwnerUUID

      @Nullable public UUID getOwnerUUID()
      Specified by:
      getOwnerUUID in interface OwnableEntity
    • setOwnerUUID

      public void setOwnerUUID(@Nullable UUID p_21817_)
    • tame

      public void tame(Player p_21829_)
    • getOwner

      @Nullable public LivingEntity getOwner()
      Specified by:
      getOwner in interface OwnableEntity
    • canAttack

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

      public boolean isOwnedBy(LivingEntity p_21831_)
    • wantsToAttack

      public boolean wantsToAttack(LivingEntity p_21810_, LivingEntity p_21811_)
    • getTeam

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

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

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

      public boolean isOrderedToSit()
    • setOrderedToSit

      public void setOrderedToSit(boolean p_21840_)