net.minecraft.entity.passive

public abstract class SchoolingFishEntity

extends FishEntity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, Attackable, ServerWaypoint, Waypoint, Targeter, EquipmentHolder, Leashable, Bucketable

net.minecraft.world.entity.animal.fish.AbstractSchoolingFish
net.minecraft.class_1425
net.minecraft.entity.passive.SchoolingFishEntity

Field summary

Modifier and TypeField
private SchoolingFishEntity
leader
field_6734
leader
private int
schoolSize
field_6733
groupSize

Constructor summary

ModifierConstructor
public (EntityType<? extends SchoolingFishEntity> type, World level)

Method summary

Modifier and TypeMethod
protected void
registerGoals()
method_5959()
initGoals()
public int
getMaxSpawnClusterSize()
method_5945()
getLimitPerChunk()
public int
getMaxSchoolSize()
method_6465()
getMaxGroupSize()
protected boolean
canRandomSwim()
method_6456()
hasSelfControl()
public boolean
isFollower()
method_6470()
hasLeader()
public SchoolingFishEntity
startFollowing(AbstractSchoolingFish leader)
method_6461(class_1425 arg0)
joinGroupOf(SchoolingFishEntity groupLeader)
public void
stopFollowing()
method_6466()
leaveGroup()
private void
addFollower()
method_6462()
increaseGroupSize()
private void
removeFollower()
method_6459()
decreaseGroupSize()
public boolean
canBeFollowed()
method_6469()
canHaveMoreFishInGroup()
public void
tick()
method_5773()
tick()
public boolean
hasFollowers()
method_6467()
hasOtherFishInGroup()
public boolean
inRangeOfLeader()
method_6464()
isCloseEnoughToLeader()
public void
pathToLeader()
method_6463()
moveTowardLeader()
public void
addFollowers(Stream<? extends AbstractSchoolingFish> abstractSchoolingFishStream)
method_6468(Stream<? extends class_1425> arg0)
pullInOtherFish(Stream<? extends SchoolingFishEntity> fish)
public EntityData
finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, SpawnGroupData groupData)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
private void
lambda$addFollowers$1(AbstractSchoolingFish arg0)
method_6458(class_1425 arg0)
method_6458(SchoolingFishEntity fishx)
private boolean
lambda$addFollowers$0(AbstractSchoolingFish arg0)
method_6460(class_1425 arg0)
method_6460(SchoolingFishEntity fishx)