类 AbstractSchoolingFish

所有已实现的接口:
SyncedDataHolder, Bucketable, Attackable, EquipmentUser, Leashable, Targeting, EntityAccess, Nameable, ScoreHolder, ICapabilityProvider, ICapabilityProviderImpl<Entity>, ICapabilitySerializable<CompoundTag>, IForgeEntity, IForgeLivingEntity, INBTSerializable<CompoundTag>
直接已知子类:
Cod, Salmon, TropicalFish

public abstract class AbstractSchoolingFish extends AbstractFish
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • registerGoals

      protected void registerGoals()
      覆盖:
      registerGoals 在类中 AbstractFish
    • getMaxSpawnClusterSize

      public int getMaxSpawnClusterSize()
      覆盖:
      getMaxSpawnClusterSize 在类中 AbstractFish
    • getMaxSchoolSize

      public int getMaxSchoolSize()
    • canRandomSwim

      protected boolean canRandomSwim()
      覆盖:
      canRandomSwim 在类中 AbstractFish
    • isFollower

      public boolean isFollower()
    • startFollowing

      public AbstractSchoolingFish startFollowing(AbstractSchoolingFish p_27526_)
    • stopFollowing

      public void stopFollowing()
    • addFollower

      private void addFollower()
    • removeFollower

      private void removeFollower()
    • canBeFollowed

      public boolean canBeFollowed()
    • tick

      public void tick()
      覆盖:
      tick 在类中 Mob
    • hasFollowers

      public boolean hasFollowers()
    • inRangeOfLeader

      public boolean inRangeOfLeader()
    • pathToLeader

      public void pathToLeader()
    • addFollowers

      public void addFollowers(Stream<? extends AbstractSchoolingFish> p_27534_)
    • finalizeSpawn

      @Nullable public SpawnGroupData finalizeSpawn(ServerLevelAccessor p_27528_, DifficultyInstance p_27529_, EntitySpawnReason p_367765_, @Nullable SpawnGroupData p_27531_)
      从类复制的说明: Mob
      Forge: Override-Only, call via ForgeEventFactory.onFinalizeSpawn.
      Overrides are allowed. Do not wrap super calls within override (as that will cause stack overflows).
      Vanilla calls are replaced with a transformer, and are not visible in source.

      Be certain to either call super.finalizeSpawn or set the Mob.spawnReason field from within your override.

      覆盖:
      finalizeSpawn 在类中 Mob