net.minecraft.world.entity.monster

public abstract class PatrollingMonster

extends Monster

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder, Attackable, EquipmentUser, Leashable, Targeting, Enemy

cma
net.minecraft.world.entity.monster.PatrollingMonster
net.minecraft.class_3732
net.minecraft.entity.mob.PatrolEntity
net.minecraft.world.entity.monster.EntityMonsterPatrolling

Field summary

Modifier and TypeField
private BlockPos
a
patrolTarget
field_16478
patrolTarget
private boolean
b
patrolLeader
field_16479
patrolLeader
private boolean
c
patrolling
field_16477
patrolling

Constructor summary

ModifierConstructor
protected (EntityType<? extends PatrollingMonster> arg0, Level arg1)

Method summary

Modifier and TypeMethod
protected void
E()
registerGoals()
method_5959()
initGoals()
public void
b(tq arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tq arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public boolean
gs()
canBeLeader()
method_16485()
canLead()
public SpawnGroupData
a(dha arg0, bsj arg1, bus arg2, bwb arg3)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, EntitySpawnReason arg2, SpawnGroupData arg3)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
public static boolean
b(but<? extends cma> arg0, dgk arg1, bus arg2, ji arg3, azh arg4)
checkPatrollingMonsterSpawnRules(EntityType<? extends PatrollingMonster> arg0, LevelAccessor arg1, EntitySpawnReason arg2, BlockPos arg3, RandomSource arg4)
method_20739(class_1299<? extends class_3732> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawn(EntityType<? extends PatrolEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
public boolean
h(double arg0)
removeWhenFarAway(double arg0)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
public void
h(ji arg0)
setPatrolTarget(BlockPos arg0)
method_16216(class_2338 arg0)
setPatrolTarget(BlockPos targetPos)
public BlockPos
gt()
getPatrolTarget()
method_16215()
getPatrolTarget()
public boolean
gu()
hasPatrolTarget()
method_16220()
hasPatrolTarget()
public void
x(boolean arg0)
setPatrolLeader(boolean arg0)
method_16217(boolean arg0)
setPatrolLeader(boolean patrolLeader)
public boolean
gv()
isPatrolLeader()
method_16219()
isPatrolLeader()
public boolean
gy()
canJoinPatrol()
method_16472()
hasNoRaid()
public void
gz()
findPatrolTarget()
method_16218()
setRandomPatrolTarget()
protected boolean
gA()
isPatrolling()
method_16915()
isRaidCenterSet()
protected void
y(boolean arg0)
setPatrolling(boolean arg0)
method_22332(boolean arg0)
setPatrolling(boolean patrolling)