net.minecraft.world.entity.monster

public class Guardian

extends Monster

All mapped superinterfaces:

Nameable, EntityAccess, CommandSource, Enemy

blz
net.minecraft.world.entity.monster.Guardian
net.minecraft.class_1577
net.minecraft.entity.mob.GuardianEntity
net.minecraft.src.C_1017_
net.minecraft.world.entity.monster.EntityGuardian

Field summary

Modifier and TypeField
protected static final int
c
ATTACK_TIME
field_30470
WARMUP_TIME
f_149711_
private static final EntityDataAccessor<Boolean>
b
DATA_ID_MOVING
field_7280
SPIKES_RETRACTED
f_32797_
private static final EntityDataAccessor<Integer>
e
DATA_ID_ATTACK_TARGET
field_7290
BEAM_TARGET_ID
f_32807_
private float
bV
clientSideTailAnimation
field_7286
tailAngle
f_32798_
private float
bW
clientSideTailAnimationO
field_7284
prevTailAngle
f_32799_
private float
bX
clientSideTailAnimationSpeed
field_7281
spikesExtensionRate
f_32800_
private float
bY
clientSideSpikesAnimation
field_7285
spikesExtension
f_32801_
private float
bZ
clientSideSpikesAnimationO
field_7287
prevSpikesExtension
f_32802_
private LivingEntity
ca
clientSideCachedAttackTarget
field_7288
cachedBeamTarget
f_32803_
private int
cb
clientSideAttackTime
field_7282
beamTicks
f_32804_
private boolean
cc
clientSideTouchedGround
field_7283
flopping
f_32805_
protected RandomStrollGoal
d
randomStrollGoal
field_7289
wanderGoal
f_32806_

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
u()
registerGoals()
method_5959()
initGoals()
m_8099_()
public static AttributeSupplier$Builder
fz()
createAttributes()
method_26915()
createGuardianAttributes()
m_32853_()
protected PathNavigation
a(cav arg0)
createNavigation(Level arg0)
method_5965(class_1937 arg0)
createNavigation(World arg0)
m_6037_(C_1596_ arg0)
protected void
a_()
defineSynchedData()
method_5693()
initDataTracker()
m_8097_()
public boolean
dx()
canBreatheUnderwater()
method_6094()
canBreatheInWater()
m_6040_()
public MobType
er()
getMobType()
method_6046()
getGroup()
m_6336_()
public boolean
fA()
isMoving()
method_7058()
areSpikesRetracted()
m_32854_()
void
v(boolean arg0)
setMoving(boolean arg0)
method_7054(boolean arg0)
setSpikesRetracted(boolean retracted)
m_32861_(boolean arg0)
public int
q()
getAttackDuration()
method_7055()
getWarmupTime()
m_7552_()
void
a(int arg0)
setActiveAttackTarget(int arg0)
method_7060(int arg0)
setBeamTarget(int entityId)
m_32817_(int arg0)
public boolean
fB()
hasActiveAttackTarget()
method_7063()
hasBeamTarget()
m_32855_()
public LivingEntity
fC()
getActiveAttackTarget()
method_7052()
getBeamTarget()
m_32856_()
public void
a(yb<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
m_7350_(C_5225_<?> arg0)
public int
J()
getAmbientSoundInterval()
method_5970()
getMinAmbientSoundDelay()
m_8100_()
protected SoundEvent
r()
getAmbientSound()
method_5994()
getAmbientSound()
m_7515_()
protected SoundEvent
c(awu arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
protected SoundEvent
x_()
getDeathSound()
method_6002()
getDeathSound()
m_5592_()
protected Entity$MovementEmission
aN()
getMovementEmission()
method_33570()
getMoveEffect()
m_142319_()
protected float
b(ayk arg0, axl arg1)
getStandingEyeHeight(Pose arg0, EntityDimensions arg1)
method_18394(class_4050 arg0, class_4048 arg1)
getActiveEyeHeight(EntityPose arg0, EntityDimensions arg1)
m_6431_(C_535_ p_32844_, C_510_ arg1)
public float
a(gj arg0, cay arg1)
getWalkTargetValue(BlockPos arg0, LevelReader arg1)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
m_5610_(C_4675_ p_32832_, C_1599_ arg1)
public void
w_()
aiStep()
method_6007()
tickMovement()
m_8107_()
protected SoundEvent
t()
getFlopSound()
method_7062()
getFlopSound()
m_7868_()
public float
z(float arg0)
getTailAnimation(float arg0)
method_7057(float arg0)
getTailAngle(float tickDelta)
m_32863_(float arg0)
public float
A(float arg0)
getSpikesAnimation(float arg0)
method_7053(float arg0)
getSpikesExtension(float tickDelta)
m_32865_(float arg0)
public float
B(float arg0)
getAttackAnimationScale(float arg0)
method_7061(float arg0)
getBeamProgress(float tickDelta)
m_32812_(float arg0)
public boolean
a(cay arg0)
checkSpawnObstruction(LevelReader arg0)
method_5957(class_4538 arg0)
canSpawn(WorldView arg0)
m_6914_(C_1599_ arg0)
public static boolean
b(axo<? extends blz> arg0, caw arg1, ayc arg2, gj arg3, Random arg4)
checkGuardianSpawnRules(EntityType<? extends Guardian> arg0, LevelAccessor arg1, MobSpawnType arg2, BlockPos arg3, Random arg4)
method_20676(class_1299<? extends class_1577> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, Random arg4)
canSpawn(EntityType<? extends GuardianEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
m_32836_(C_513_<? extends C_1017_> p_32837_, C_1598_ p_32838_, C_529_ p_32839_, C_4675_ p_32840_, Random p_32841_)
public boolean
a(awu arg0, float arg1)
hurt(DamageSource arg0, float arg1)
method_5643(class_1282 arg0, float arg1)
damage(DamageSource arg0, float arg1)
m_6469_(C_489_ p_32821_, float arg1)
public int
T()
getMaxHeadXRot()
method_5978()
getMaxLookPitchChange()
m_8132_()
public void
h(dpo arg0)
travel(Vec3 arg0)
method_6091(class_243 arg0)
travel(Vec3d arg0)
m_7023_(C_3046_ arg0)