net.minecraft.entity.mob

public class GuardianEntity

extends HostileEntity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible, Attackable, ServerWaypoint, Waypoint, Targeter, EquipmentHolder, Leashable, Monster

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

Field summary

Modifier and TypeField
protected static final int
ATTACK_TIME
field_30470
WARMUP_TIME
private static final TrackedData<Boolean>
DATA_ID_MOVING
field_7280
SPIKES_RETRACTED
private static final TrackedData<Integer>
DATA_ID_ATTACK_TARGET
field_7290
BEAM_TARGET_ID
private float
clientSideTailAnimation
field_7286
tailAngle
private float
clientSideTailAnimationO
field_7284
lastTailAngle
private float
clientSideTailAnimationSpeed
field_7281
spikesExtensionRate
private float
clientSideSpikesAnimation
field_7285
spikesExtension
private float
clientSideSpikesAnimationO
field_7287
lastSpikesExtension
private LivingEntity
clientSideCachedAttackTarget
field_7288
cachedBeamTarget
private int
clientSideAttackTime
field_7282
beamTicks
private boolean
clientSideTouchedGround
field_7283
flopping
protected WanderAroundGoal
randomStrollGoal
field_7289
wanderGoal

Constructor summary

ModifierConstructor
public (EntityType<? extends GuardianEntity> type, World level)

Method summary

Modifier and TypeMethod
protected void
registerGoals()
method_5959()
initGoals()
public static DefaultAttributeContainer$Builder
createAttributes()
method_26915()
createGuardianAttributes()
protected EntityNavigation
createNavigation(Level level)
method_5965(class_1937 arg0)
createNavigation(World arg0)
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public boolean
isMoving()
method_7058()
areSpikesRetracted()
public void
setMoving(boolean value)
method_7054(boolean arg0)
setSpikesRetracted(boolean retracted)
public int
getAttackDuration()
method_7055()
getWarmupTime()
private void
setActiveAttackTarget(int entityId)
method_7060(int arg0)
setBeamTarget(int entityId)
public boolean
hasActiveAttackTarget()
method_7063()
hasBeamTarget()
public LivingEntity
getActiveAttackTarget()
method_7052()
getBeamTarget()
public void
onSyncedDataUpdated(EntityDataAccessor<?> accessor)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public int
getAmbientSoundInterval()
method_5970()
getMinAmbientSoundDelay()
protected SoundEvent
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
protected Entity$MoveEffect
getMovementEmission()
method_33570()
getMoveEffect()
public float
getWalkTargetValue(BlockPos pos, LevelReader level)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
public void
aiStep()
method_6007()
tickMovement()
protected SoundEvent
getFlopSound()
method_7062()
getFlopSound()
public float
getTailAnimation(float a)
method_7057(float arg0)
getTailAngle(float tickProgress)
public float
getSpikesAnimation(float a)
method_7053(float arg0)
getSpikesExtension(float tickProgress)
public float
getAttackAnimationScale(float a)
method_7061(float arg0)
getBeamProgress(float tickProgress)
public float
getClientSideAttackTime()
method_48161()
getBeamTicks()
public boolean
checkSpawnObstruction(LevelReader level)
method_5957(class_4538 arg0)
canSpawn(WorldView arg0)
public static boolean
checkGuardianSpawnRules(EntityType<? extends Guardian> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random)
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
hurtServer(ServerLevel level, DamageSource source, float damage)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
public int
getMaxHeadXRot()
method_5978()
getMaxLookPitchChange()
protected void
travelInWater(Vec3 input, double baseGravity, boolean isFalling, double oldY)
method_76087(class_243 arg0, double arg1, boolean arg2, double arg3)
travelInWater(Vec3d arg0, double arg1, boolean arg2, double arg3)