net.minecraft.entity.boss

public class WitherEntity

extends HostileEntity implements RangedAttackMob

All mapped superinterfaces:

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

net.minecraft.world.entity.boss.wither.WitherBoss
net.minecraft.class_1528
net.minecraft.entity.boss.WitherEntity

Field summary

Modifier and TypeField
private static final TrackedData<Integer>
DATA_TARGET_A
field_7088
TRACKED_ENTITY_ID_1
private static final TrackedData<Integer>
DATA_TARGET_B
field_7090
TRACKED_ENTITY_ID_2
private static final TrackedData<Integer>
DATA_TARGET_C
field_7089
TRACKED_ENTITY_ID_3
private static final List<TrackedData<Integer>>
DATA_TARGETS
field_7087
TRACKED_ENTITY_IDS
private static final TrackedData<Integer>
DATA_ID_INV
field_7085
INVUL_TIMER
private static final int
INVULNERABLE_TICKS
field_30441
ON_SUMMONED_INVUL_TIMER
private static final int
DEFAULT_INVULNERABLE_TICKS
field_57643
DEFAULT_INVUL_TIMER
private final float[]
xRotHeads
field_7084
sideHeadPitches
private final float[]
yRotHeads
field_7083
sideHeadYaws
private final float[]
xRotOHeads
field_7095
lastSideHeadPitches
private final float[]
yRotOHeads
field_7094
lastSideHeadYaws
private final int[]
nextHeadUpdate
field_7091
skullCooldowns
private final int[]
idleHeadUpdates
field_7092
chargedSkullCooldowns
private int
destroyBlocksTick
field_7082
blockBreakingCooldown
private final ServerBossBar
bossEvent
field_7093
bossBar
private static final TargetPredicate$EntityPredicate
LIVING_ENTITY_SELECTOR
field_7086
CAN_ATTACK_PREDICATE
private static final TargetPredicate
TARGETING_CONDITIONS
field_18125
HEAD_TARGET_PREDICATE

Constructor summary

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

Method summary

Modifier and TypeMethod
protected EntityNavigation
createNavigation(Level level)
method_5965(class_1937 arg0)
createNavigation(World arg0)
protected void
registerGoals()
method_5959()
initGoals()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public void
setCustomName(Component name)
method_5665(class_2561 arg0)
setCustomName(Text arg0)
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()
public void
aiStep()
method_6007()
tickMovement()
protected void
customServerAiStep(ServerLevel level)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public static boolean
canDestroy(BlockState state)
method_6883(class_2680 arg0)
canDestroy(BlockState block)
public void
makeInvulnerable()
method_6885()
onSummoned()
public void
makeStuckInBlock(BlockState blockState, Vec3 speedMultiplier)
method_5844(class_2680 arg0, class_243 arg1)
slowMovement(BlockState arg0, Vec3d arg1)
public void
startSeenByPlayer(ServerPlayer player)
method_5837(class_3222 arg0)
onStartedTrackingBy(ServerPlayerEntity arg0)
public void
stopSeenByPlayer(ServerPlayer player)
method_5742(class_3222 arg0)
onStoppedTrackingBy(ServerPlayerEntity arg0)
private double
getHeadX(int index)
method_6874(int arg0)
getHeadX(int headIndex)
private double
getHeadY(int index)
method_6880(int arg0)
getHeadY(int headIndex)
private double
getHeadZ(int index)
method_6881(int arg0)
getHeadZ(int headIndex)
private float
rotlerp(float a, float b, float max)
method_6886(float arg0, float arg1, float arg2)
getNextAngle(float lastAngle, float desiredAngle, float maxDifference)
private void
performRangedAttack(int head, LivingEntity target)
method_6878(int arg0, class_1309 arg1)
shootSkullAt(int headIndex, LivingEntity target)
private void
performRangedAttack(int head, double tx, double ty, double tz, boolean dangerous)
method_6877(int arg0, double arg1, double arg2, double arg3, boolean arg4)
shootSkullAt(int headIndex, double targetX, double targetY, double targetZ, boolean charged)
public void
performRangedAttack(LivingEntity target, float power)
method_7105(class_1309 arg0, float arg1)
shootAt(LivingEntity arg0, float arg1)
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)
protected void
dropCustomDeathLoot(ServerLevel level, DamageSource source, boolean killedByPlayer)
method_6099(class_3218 arg0, class_1282 arg1, boolean arg2)
dropEquipment(ServerWorld arg0, DamageSource arg1, boolean arg2)
public void
checkDespawn()
method_5982()
checkDespawn()
public boolean
addEffect(MobEffectInstance newEffect, Entity source)
method_37222(class_1293 arg0, class_1297 arg1)
addStatusEffect(StatusEffectInstance arg0, Entity arg1)
public static DefaultAttributeContainer$Builder
createAttributes()
method_26904()
createWitherAttributes()
public float[]
getHeadYRots()
method_61488()
getSideHeadYaws()
public float[]
getHeadXRots()
method_61487()
getSideHeadPitches()
public int
getInvulnerableTicks()
method_6884()
getInvulnerableTimer()
public void
setInvulnerableTicks(int invulnerableTicks)
method_6875(int arg0)
setInvulTimer(int ticks)
public int
getAlternativeTarget(int headIndex)
method_6882(int arg0)
getTrackedEntityId(int headIndex)
public void
setAlternativeTarget(int headIndex, int entityId)
method_6876(int arg0, int arg1)
setTrackedEntityId(int headIndex, int id)
public boolean
isPowered()
method_6872()
isArmored()
protected boolean
canRide(Entity vehicle)
method_5860(class_1297 arg0)
canStartRiding(Entity arg0)
public boolean
canUsePortal(boolean ignorePassenger)
method_5822(boolean arg0)
canUsePortals(boolean arg0)
public boolean
canBeAffected(MobEffectInstance newEffect)
method_6049(class_1293 arg0)
canHaveStatusEffect(StatusEffectInstance arg0)
private static boolean
lambda$static$0(LivingEntity arg0, ServerLevel arg1)
method_6873(class_1309 arg0, class_3218 arg1)
method_6873(LivingEntity entity, ServerWorld world)