net.minecraft.world.entity.monster

public abstract class PatrollingMonster

extends Monster

All mapped superinterfaces:

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

cnu
net.minecraft.world.entity.monster.PatrollingMonster
net.minecraft.class_3732
net.minecraft.entity.mob.PatrolEntity

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
D()
registerGoals()
method_5959()
initGoals()
public void
b(tx arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tx arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public boolean
t()
canBeLeader()
method_16485()
canLead()
public SpawnGroupData
a(djg arg0, btw arg1, bwi arg2, bxr 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(bwj<? extends cnu> arg0, diq arg1, bwi arg2, iu arg3, azt 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(iu arg0)
setPatrolTarget(BlockPos arg0)
method_16216(class_2338 arg0)
setPatrolTarget(BlockPos targetPos)
public BlockPos
x()
getPatrolTarget()
method_16215()
getPatrolTarget()
public boolean
gq()
hasPatrolTarget()
method_16220()
hasPatrolTarget()
public void
w(boolean arg0)
setPatrolLeader(boolean arg0)
method_16217(boolean arg0)
setPatrolLeader(boolean patrolLeader)
public boolean
gr()
isPatrolLeader()
method_16219()
isPatrolLeader()
public boolean
gu()
canJoinPatrol()
method_16472()
hasNoRaid()
public void
gv()
findPatrolTarget()
method_16218()
setRandomPatrolTarget()
protected boolean
gw()
isPatrolling()
method_16915()
isRaidCenterSet()
protected void
x(boolean arg0)
setPatrolling(boolean arg0)
method_22332(boolean arg0)
setPatrolling(boolean patrolling)