net.minecraft.world.entity.monster

public abstract class PatrollingMonster

extends Monster

All mapped superinterfaces:

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

cmy
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
B()
registerGoals()
method_5959()
initGoals()
public void
b(ux arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(ux arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public boolean
go()
canBeLeader()
method_16485()
canLead()
public SpawnGroupData
a(dhz arg0, bth arg1, bvq arg2, bwz 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(bvr<? extends cmy> arg0, dhj arg1, bvq arg2, jh arg3, bam 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(jh arg0)
setPatrolTarget(BlockPos arg0)
method_16216(class_2338 arg0)
setPatrolTarget(BlockPos targetPos)
public BlockPos
gp()
getPatrolTarget()
method_16215()
getPatrolTarget()
public boolean
gq()
hasPatrolTarget()
method_16220()
hasPatrolTarget()
public void
x(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
y(boolean arg0)
setPatrolling(boolean arg0)
method_22332(boolean arg0)
setPatrolling(boolean patrolling)