net.minecraft.world.entity.monster

public class Guardian

extends Monster

All mapped superinterfaces:

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

cnp
net.minecraft.world.entity.monster.Guardian
net.minecraft.class_1577
net.minecraft.entity.mob.GuardianEntity

Field summary

Modifier and TypeField
protected static final int
b
ATTACK_TIME
field_30470
WARMUP_TIME
private static final EntityDataAccessor<Boolean>
a
DATA_ID_MOVING
field_7280
SPIKES_RETRACTED
private static final EntityDataAccessor<Integer>
d
DATA_ID_ATTACK_TARGET
field_7290
BEAM_TARGET_ID
private float
bF
clientSideTailAnimation
field_7286
tailAngle
private float
bG
clientSideTailAnimationO
field_7284
lastTailAngle
private float
bH
clientSideTailAnimationSpeed
field_7281
spikesExtensionRate
private float
bI
clientSideSpikesAnimation
field_7285
spikesExtension
private float
bJ
clientSideSpikesAnimationO
field_7287
lastSpikesExtension
private LivingEntity
bK
clientSideCachedAttackTarget
field_7288
cachedBeamTarget
private int
bL
clientSideAttackTime
field_7282
beamTicks
private boolean
bM
clientSideTouchedGround
field_7283
flopping
protected RandomStrollGoal
c
randomStrollGoal
field_7289
wanderGoal

Constructor summary

ModifierConstructor
public (EntityType<? extends Guardian> arg0, Level arg1)

Method summary

Modifier and TypeMethod
protected void
D()
registerGoals()
method_5959()
initGoals()
public static AttributeSupplier$Builder
q()
createAttributes()
method_26915()
createGuardianAttributes()
protected PathNavigation
b(dip arg0)
createNavigation(Level arg0)
method_5965(class_1937 arg0)
createNavigation(World arg0)
protected void
a(akl$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public boolean
t()
isMoving()
method_7058()
areSpikesRetracted()
void
w(boolean arg0)
setMoving(boolean arg0)
method_7054(boolean arg0)
setSpikesRetracted(boolean retracted)
public int
m()
getAttackDuration()
method_7055()
getWarmupTime()
void
b(int arg0)
setActiveAttackTarget(int arg0)
method_7060(int arg0)
setBeamTarget(int entityId)
public boolean
x()
hasActiveAttackTarget()
method_7063()
hasBeamTarget()
public LivingEntity
gq()
getActiveAttackTarget()
method_7052()
getBeamTarget()
public void
a(akh<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public int
S()
getAmbientSoundInterval()
method_5970()
getMinAmbientSoundDelay()
protected SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
e(bup arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
l_()
getDeathSound()
method_6002()
getDeathSound()
protected Entity$MovementEmission
bg()
getMovementEmission()
method_33570()
getMoveEffect()
public float
a(iu arg0, dis arg1)
getWalkTargetValue(BlockPos arg0, LevelReader arg1)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
public void
k_()
aiStep()
method_6007()
tickMovement()
protected SoundEvent
n()
getFlopSound()
method_7062()
getFlopSound()
public float
J(float arg0)
getTailAnimation(float arg0)
method_7057(float arg0)
getTailAngle(float tickDelta)
public float
K(float arg0)
getSpikesAnimation(float arg0)
method_7053(float arg0)
getSpikesExtension(float tickDelta)
public float
L(float arg0)
getAttackAnimationScale(float arg0)
method_7061(float arg0)
getBeamProgress(float tickDelta)
public float
gr()
getClientSideAttackTime()
method_48161()
getBeamTicks()
public boolean
a(dis arg0)
checkSpawnObstruction(LevelReader arg0)
method_5957(class_4538 arg0)
canSpawn(WorldView arg0)
public static boolean
b(bwj<? extends cnp> arg0, diq arg1, bwi arg2, iu arg3, azt arg4)
checkGuardianSpawnRules(EntityType<? extends Guardian> arg0, LevelAccessor arg1, EntitySpawnReason arg2, BlockPos arg3, RandomSource arg4)
method_20676(class_1299<? extends class_1577> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawn(EntityType<? extends GuardianEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
public boolean
a(aro arg0, bup arg1, float arg2)
hurtServer(ServerLevel arg0, DamageSource arg1, float arg2)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
public int
ac()
getMaxHeadXRot()
method_5978()
getMaxLookPitchChange()
public void
a_(fdw arg0)
travel(Vec3 arg0)
method_6091(class_243 arg0)
travel(Vec3d arg0)