Class WitherEntity
- All Implemented Interfaces:
- SkinOverlayOwner,- RangedAttackMob,- Attackable,- Monster,- Targeter,- CommandOutput,- Nameable,- EntityLike
- Mappings:
- Namespace - Name - official - buv- intermediary - net/minecraft/class_1528- named - net/minecraft/entity/boss/WitherEntity
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.entity.LivingEntityLivingEntity.FallSoundsNested classes/interfaces inherited from class net.minecraft.entity.EntityEntity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate intprivate final ServerBossBarprivate static final Predicate<LivingEntity>private final int[]private static final intprivate static final TargetPredicateprivate static final TrackedData<Integer>private final float[]private final float[]private final float[]private final float[]private final int[]private static final TrackedData<Integer>private static final TrackedData<Integer>private static final TrackedData<Integer>private static final List<TrackedData<Integer>>Fields inherited from class net.minecraft.entity.mob.PathAwareEntityDEFAULT_PATHFINDING_FAVORFields inherited from class net.minecraft.entity.mob.MobEntityambientSoundChance, armorDropChances, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, DEFAULT_CAN_PICKUP_LOOT_CHANCE, DEFAULT_DROP_CHANCE, experiencePoints, field_35039, field_38932, goalSelector, handDropChances, jumpControl, LEASH_KEY, lookControl, MINIMUM_DROPPED_XP_PER_EQUIPMENT, moveControl, navigation, targetSelectorFields inherited from class net.minecraft.entity.LivingEntityactiveItemStack, attackingPlayer, BABY_SCALE_FACTOR, bodyTrackingIncrements, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, EQUIPMENT_SLOT_ID, field_30063, field_30067, field_30069, field_30070, field_30072, field_30074, field_30075, field_6215, forwardSpeed, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, limbAnimator, LIVING_FLAGS, lookDirection, maxHurtTime, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideTicks, roll, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAGFields inherited from class net.minecraft.entity.Entityage, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_29991, field_44870, field_44871, field_44872, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inNetherPortal, inPowderSnow, intersectionChecked, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFireFields inherited from interface net.minecraft.server.command.CommandOutputDUMMYFields inherited from interface net.minecraft.entity.mob.MonsterNORMAL_MONSTER_XP, SMALL_MONSTER_XP, STRONG_MONSTER_XP, STRONGER_MONSTER_XP, WITHER_XP, ZERO_XP
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanaddStatusEffect(StatusEffectInstance effect, @Nullable Entity source) Adds a status effect to this entity.voidattack(LivingEntity target, float pullProgress) static booleancanDestroy(BlockState block) booleanprotected booleancanStartRiding(Entity entity) Returns whether this entity can rideentity.booleanReturns whether the entity can use nether portals and end portals.voidChecks whether the entity should be despawned.protected EntityNavigationcreateNavigation(World world) booleandamage(DamageSource source, float amount) Applies a damage to this entity.protected voiddropEquipment(DamageSource source, int lootingMultiplier, boolean allowDrops) protected SoundEventprotected SoundEventgetGroup()floatgetHeadPitch(int headIndex) private doublegetHeadX(int headIndex) private doublegetHeadY(int headIndex) floatgetHeadYaw(int headIndex) private doublegetHeadZ(int headIndex) protected SoundEventgetHurtSound(DamageSource source) intprivate floatgetNextAngle(float prevAngle, float desiredAngle, float maxDifference) intgetTrackedEntityId(int headIndex) protected voidInitializes data tracker.protected voidprotected voidmobTick()voidCalled whenplayerstarts tracking this entity.voidCalled whenplayerstops tracking this entity.voidvoidReads custom data fromnbt.voidsetCustomName(@Nullable Text name) Sets the custom name of the entity toname(ornullto remove the custom name).voidsetInvulTimer(int ticks) voidsetTrackedEntityId(int headIndex, int id) private voidshootSkullAt(int headIndex, double targetX, double targetY, double targetZ, boolean charged) private voidshootSkullAt(int headIndex, LivingEntity target) booleanvoidslowMovement(BlockState state, Vec3d multiplier) CallsEntity.onLanding()and slows this entity.voidvoidWrites custom data tonbt.Methods inherited from class net.minecraft.entity.mob.HostileEntitycanSpawnIgnoreLightLevel, canSpawnInDark, createHostileAttributes, getFallSounds, getPathfindingFavor, getProjectileType, getSoundCategory, getSplashSound, getSwimSound, isAngryAt, isDisallowedInPeaceful, isSpawnDark, shouldDropLoot, shouldDropXp, updateDespawnCounterMethods inherited from class net.minecraft.entity.mob.PathAwareEntitycanSpawn, getFollowLeashSpeed, getPathfindingFavor, isNavigating, shouldFollowLeash, updateForLeashLength, updateLeashMethods inherited from class net.minecraft.entity.mob.MobEntityattachLeash, baseTick, canBeLeashedBy, canEquip, canGather, canImmediatelyDespawn, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canTarget, canUseRangedWeapon, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, createBodyControl, createMobAttributes, detachLeash, dropLoot, enchantEquipment, enchantMainHandItem, equipLootStack, equipStack, getArmorItems, getControllingPassenger, getDropChance, getEquipmentForSlot, getEquippedStack, getHandItems, getHoldingEntity, getItemPickUpRangeExpander, getJumpControl, getLimitPerChunk, getLookControl, getLootTable, getLootTableId, getLootTableSeed, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMinAmbientSoundDelay, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getSafeFallDistance, getSquaredDistanceToAttackPosOf, getTarget, getVisibilityCache, getXpToDrop, handleStatus, hasPositionTarget, initEquipment, initialize, interact, interactMob, isAffectedByDaylight, isAiDisabled, isAttacking, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeashed, isLeftHanded, isPersistent, lookAtEntity, loot, movesIndependently, onEatingGrass, onFinishPathfinding, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, sendAiDebugData, setAiDisabled, setAttacking, setBaby, setCanPickUpLoot, setEquipmentDropChance, setForwardSpeed, setHoldingEntityId, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, squaredAttackRange, startRiding, swimUpward, tick, tickNewAi, tryAttack, tryEquip, turnHead, updateDropChances, updateEnchantments, updateGoalControlsMethods inherited from class net.minecraft.entity.LivingEntityaddPowderSnowSlowIfNeeded, addSoulSpeedBoostIfNeeded, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyFluidMovingSpeed, applyMovementEffects, applyMovementInput, areItemsDifferent, attackLivingEntity, blockedByShield, canBreatheInWater, canFreeze, canHit, canSee, canTakeDamage, canTarget, canWalkOnFluid, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, damageArmor, damageHelmet, damageShield, deserializeBrain, disableExperienceDropping, disablesShield, displaySoulSpeedEffects, drop, dropInventory, dropXp, eatFood, endCombat, enterCombat, fall, getAbsorptionAmount, getActiveEyeHeight, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttackPos, getAttributeBaseValue, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getAttributeValue, getBaseMovementSpeedMultiplier, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageTiltYaw, getDamageTracker, getDespawnCounter, getDimensions, getDrinkSound, getEatSound, getEyeHeight, getHandSwingProgress, getHeadYaw, getHealth, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getMainHandStack, getMaxHealth, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getRandom, getRecentDamageSource, getRoll, getSaddledSpeed, getScaleFactor, getSleepingDirection, getSleepingPosition, getSoundPitch, getSoundVolume, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getVisibilityBoundingBox, getYaw, handleFallDamage, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBaby, isBlocking, isClimbing, isDead, isExperienceDroppingDisabled, isFallFlying, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInsideWall, isInSwimmingPose, isMobOrPlayer, isOnSoulSpeedBlock, isPartOfGame, isPushable, isSleeping, isTarget, isUndead, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onSpawnPacket, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, onTrackedDataSet, playBlockFallSound, positionInPortal, positionInPortal, processEquippedStack, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeSoulSpeedBoost, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, sendToolBreakStatus, setAbsorptionAmount, setAttacker, setAttacking, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropXp, shouldDisplaySoulSpeedEffects, shouldRemoveSoulSpeedBoost, shouldRenderName, shouldSwimInFluids, sleep, spawnConsumptionEffects, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickHandSwing, tickInVoid, tickItemStackUsage, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, travel, triggerItemPickedUpByEntityCriteria, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUpMethods inherited from class net.minecraft.entity.EntityaddAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyDamageEffects, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canSprintAsVehicle, changeLookDirection, checkBlockCollision, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, extinguishWithSound, getAir, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMoveEffect, getMovementDirection, getName, getNameLabelHeight, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPortalCooldown, getPortalRect, getPos, getPose, getPosWithYOffset, getRandomBodyY, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getServer, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSyncedPos, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getX, getY, getYaw, getZ, handleAttack, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasVehicle, interactAt, isAttackable, isCollidable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowingLocal, isImmuneToExplosion, isInLava, isInPose, isInRange, isInRange, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, limitFallDistance, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removePassenger, removeScoreboardTag, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setBoundingBox, setChangeListener, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setStepHeight, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldDismountUnderwater, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleport, tickPortal, tickPortalCooldown, toNbtList, toNbtList, toString, tryCheckBlockCollision, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide, writeNbtMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutputcannotBeSilenced
- 
Field Details- 
TRACKED_ENTITY_ID_1- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbuv;b:Laby;- intermediary - field_7088- Lnet/minecraft/class_1528;field_7088:Lnet/minecraft/class_2940;- named - TRACKED_ENTITY_ID_1- Lnet/minecraft/entity/boss/WitherEntity;TRACKED_ENTITY_ID_1:Lnet/minecraft/entity/data/TrackedData;
 
- 
TRACKED_ENTITY_ID_2- Mappings:
- Namespace - Name - Mixin selector - official - c- Lbuv;c:Laby;- intermediary - field_7090- Lnet/minecraft/class_1528;field_7090:Lnet/minecraft/class_2940;- named - TRACKED_ENTITY_ID_2- Lnet/minecraft/entity/boss/WitherEntity;TRACKED_ENTITY_ID_2:Lnet/minecraft/entity/data/TrackedData;
 
- 
TRACKED_ENTITY_ID_3- Mappings:
- Namespace - Name - Mixin selector - official - d- Lbuv;d:Laby;- intermediary - field_7089- Lnet/minecraft/class_1528;field_7089:Lnet/minecraft/class_2940;- named - TRACKED_ENTITY_ID_3- Lnet/minecraft/entity/boss/WitherEntity;TRACKED_ENTITY_ID_3:Lnet/minecraft/entity/data/TrackedData;
 
- 
TRACKED_ENTITY_IDS- Mappings:
- Namespace - Name - Mixin selector - official - e- Lbuv;e:Ljava/util/List;- intermediary - field_7087- Lnet/minecraft/class_1528;field_7087:Ljava/util/List;- named - TRACKED_ENTITY_IDS- Lnet/minecraft/entity/boss/WitherEntity;TRACKED_ENTITY_IDS:Ljava/util/List;
 
- 
INVUL_TIMER- Mappings:
- Namespace - Name - Mixin selector - official - bT- Lbuv;bT:Laby;- intermediary - field_7085- Lnet/minecraft/class_1528;field_7085:Lnet/minecraft/class_2940;- named - INVUL_TIMER- Lnet/minecraft/entity/boss/WitherEntity;INVUL_TIMER:Lnet/minecraft/entity/data/TrackedData;
 
- 
DEFAULT_INVUL_TIMERprivate static final int DEFAULT_INVUL_TIMER- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - bU- Lbuv;bU:I- intermediary - field_30441- Lnet/minecraft/class_1528;field_30441:I- named - DEFAULT_INVUL_TIMER- Lnet/minecraft/entity/boss/WitherEntity;DEFAULT_INVUL_TIMER:I
 
- 
CAN_ATTACK_PREDICATE- Mappings:
- Namespace - Name - Mixin selector - official - cd- Lbuv;cd:Ljava/util/function/Predicate;- intermediary - field_7086- Lnet/minecraft/class_1528;field_7086:Ljava/util/function/Predicate;- named - CAN_ATTACK_PREDICATE- Lnet/minecraft/entity/boss/WitherEntity;CAN_ATTACK_PREDICATE:Ljava/util/function/Predicate;
 
- 
HEAD_TARGET_PREDICATE- Mappings:
- Namespace - Name - Mixin selector - official - ce- Lbuv;ce:Lbqm;- intermediary - field_18125- Lnet/minecraft/class_1528;field_18125:Lnet/minecraft/class_4051;- named - HEAD_TARGET_PREDICATE- Lnet/minecraft/entity/boss/WitherEntity;HEAD_TARGET_PREDICATE:Lnet/minecraft/entity/ai/TargetPredicate;
 
- 
sideHeadPitchesprivate final float[] sideHeadPitches- Mappings:
- Namespace - Name - Mixin selector - official - bV- Lbuv;bV:[F- intermediary - field_7084- Lnet/minecraft/class_1528;field_7084:[F- named - sideHeadPitches- Lnet/minecraft/entity/boss/WitherEntity;sideHeadPitches:[F
 
- 
sideHeadYawsprivate final float[] sideHeadYaws- Mappings:
- Namespace - Name - Mixin selector - official - bW- Lbuv;bW:[F- intermediary - field_7083- Lnet/minecraft/class_1528;field_7083:[F- named - sideHeadYaws- Lnet/minecraft/entity/boss/WitherEntity;sideHeadYaws:[F
 
- 
prevSideHeadPitchesprivate final float[] prevSideHeadPitches- Mappings:
- Namespace - Name - Mixin selector - official - bX- Lbuv;bX:[F- intermediary - field_7095- Lnet/minecraft/class_1528;field_7095:[F- named - prevSideHeadPitches- Lnet/minecraft/entity/boss/WitherEntity;prevSideHeadPitches:[F
 
- 
prevSideHeadYawsprivate final float[] prevSideHeadYaws- Mappings:
- Namespace - Name - Mixin selector - official - bY- Lbuv;bY:[F- intermediary - field_7094- Lnet/minecraft/class_1528;field_7094:[F- named - prevSideHeadYaws- Lnet/minecraft/entity/boss/WitherEntity;prevSideHeadYaws:[F
 
- 
skullCooldownsprivate final int[] skullCooldowns- Mappings:
- Namespace - Name - Mixin selector - official - bZ- Lbuv;bZ:[I- intermediary - field_7091- Lnet/minecraft/class_1528;field_7091:[I- named - skullCooldowns- Lnet/minecraft/entity/boss/WitherEntity;skullCooldowns:[I
 
- 
chargedSkullCooldownsprivate final int[] chargedSkullCooldowns- Mappings:
- Namespace - Name - Mixin selector - official - ca- Lbuv;ca:[I- intermediary - field_7092- Lnet/minecraft/class_1528;field_7092:[I- named - chargedSkullCooldowns- Lnet/minecraft/entity/boss/WitherEntity;chargedSkullCooldowns:[I
 
- 
blockBreakingCooldownprivate int blockBreakingCooldown- Mappings:
- Namespace - Name - Mixin selector - official - cb- Lbuv;cb:I- intermediary - field_7082- Lnet/minecraft/class_1528;field_7082:I- named - blockBreakingCooldown- Lnet/minecraft/entity/boss/WitherEntity;blockBreakingCooldown:I
 
- 
bossBar- Mappings:
- Namespace - Name - Mixin selector - official - cc- Lbuv;cc:Laic;- intermediary - field_7093- Lnet/minecraft/class_1528;field_7093:Lnet/minecraft/class_3213;- named - bossBar- Lnet/minecraft/entity/boss/WitherEntity;bossBar:Lnet/minecraft/entity/boss/ServerBossBar;
 
 
- 
- 
Constructor Details- 
WitherEntity- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lbfj;<init>(Lbfn;Lcmm;)V- intermediary - <init>- Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V- named - <init>- Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
 
 
- 
- 
Method Details
- 
initGoalsprotected void initGoals()
- 
initDataTrackerprotected void initDataTracker()Initializes data tracker.- Overrides:
- initDataTrackerin class- MobEntity
- Mappings:
- Namespace - Name - Mixin selector - official - a_- Lbfj;a_()V- intermediary - method_5693- Lnet/minecraft/class_1297;method_5693()V- named - initDataTracker- Lnet/minecraft/entity/Entity;initDataTracker()V
 
- 
writeCustomDataToNbtWrites custom data tonbt. Subclasses has to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity. - Overrides:
- writeCustomDataToNbtin class- MobEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbfj;b(Lqr;)V- intermediary - method_5652- Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V- named - writeCustomDataToNbt- Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
 
- 
readCustomDataFromNbtReads custom data fromnbt. Subclasses has to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity. nbtmight not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
- readCustomDataFromNbtin class- MobEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(Lqr;)V- intermediary - method_5749- Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V- named - readCustomDataFromNbt- Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
 
- 
setCustomNameSets the custom name of the entity toname(ornullto remove the custom name).- Overrides:
- setCustomNamein class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbfj;b(Lsw;)V- intermediary - method_5665- Lnet/minecraft/class_1297;method_5665(Lnet/minecraft/class_2561;)V- named - setCustomName- Lnet/minecraft/entity/Entity;setCustomName(Lnet/minecraft/text/Text;)V
 
- 
getAmbientSound- Overrides:
- getAmbientSoundin class- MobEntity
- Mappings:
- Namespace - Name - Mixin selector - official - s- Lbgb;s()Lamg;- intermediary - method_5994- Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;- named - getAmbientSound- Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
 
- 
getHurtSound- Overrides:
- getHurtSoundin class- HostileEntity
- Mappings:
- Namespace - Name - Mixin selector - official - d- Lbfz;d(Lben;)Lamg;- intermediary - method_6011- Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;- named - getHurtSound- Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
 
- 
getDeathSound- Overrides:
- getDeathSoundin class- HostileEntity
- Mappings:
- Namespace - Name - Mixin selector - official - g_- Lbfz;g_()Lamg;- intermediary - method_6002- Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;- named - getDeathSound- Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
 
- 
tickMovementpublic void tickMovement()- Overrides:
- tickMovementin class- HostileEntity
- Mappings:
- Namespace - Name - Mixin selector - official - b_- Lbfz;b_()V- intermediary - method_6007- Lnet/minecraft/class_1309;method_6007()V- named - tickMovement- Lnet/minecraft/entity/LivingEntity;tickMovement()V
 
- 
mobTickprotected void mobTick()
- 
canDestroy- Mappings:
- Namespace - Name - Mixin selector - official - d- Lbuv;d(Ldcb;)Z- intermediary - method_6883- Lnet/minecraft/class_1528;method_6883(Lnet/minecraft/class_2680;)Z- named - canDestroy- Lnet/minecraft/entity/boss/WitherEntity;canDestroy(Lnet/minecraft/block/BlockState;)Z
 
- 
onSummonedpublic void onSummoned()- Mappings:
- Namespace - Name - Mixin selector - official - q- Lbuv;q()V- intermediary - method_6885- Lnet/minecraft/class_1528;method_6885()V- named - onSummoned- Lnet/minecraft/entity/boss/WitherEntity;onSummoned()V
 
- 
slowMovementCallsEntity.onLanding()and slows this entity.This means that the entity will avoid taking fall damage. - Overrides:
- slowMovementin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(Ldcb;Leei;)V- intermediary - method_5844- Lnet/minecraft/class_1297;method_5844(Lnet/minecraft/class_2680;Lnet/minecraft/class_243;)V- named - slowMovement- Lnet/minecraft/entity/Entity;slowMovement(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Vec3d;)V
 
- 
onStartedTrackingByCalled whenplayerstarts tracking this entity.Entities with boss bars like WitherEntityshould override this to add the player to the boss bar.- Overrides:
- onStartedTrackingByin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lbfj;c(Laig;)V- intermediary - method_5837- Lnet/minecraft/class_1297;method_5837(Lnet/minecraft/class_3222;)V- named - onStartedTrackingBy- Lnet/minecraft/entity/Entity;onStartedTrackingBy(Lnet/minecraft/server/network/ServerPlayerEntity;)V
 
- 
onStoppedTrackingByCalled whenplayerstops tracking this entity.Entities with boss bars like WitherEntityshould override this to remove the player from the boss bar.- Overrides:
- onStoppedTrackingByin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - d- Lbfj;d(Laig;)V- intermediary - method_5742- Lnet/minecraft/class_1297;method_5742(Lnet/minecraft/class_3222;)V- named - onStoppedTrackingBy- Lnet/minecraft/entity/Entity;onStoppedTrackingBy(Lnet/minecraft/server/network/ServerPlayerEntity;)V
 
- 
getHeadXprivate double getHeadX(int headIndex) - Mappings:
- Namespace - Name - Mixin selector - official - u- Lbuv;u(I)D- intermediary - method_6874- Lnet/minecraft/class_1528;method_6874(I)D- named - getHeadX- Lnet/minecraft/entity/boss/WitherEntity;getHeadX(I)D
 
- 
getHeadYprivate double getHeadY(int headIndex) - Mappings:
- Namespace - Name - Mixin selector - official - v- Lbuv;v(I)D- intermediary - method_6880- Lnet/minecraft/class_1528;method_6880(I)D- named - getHeadY- Lnet/minecraft/entity/boss/WitherEntity;getHeadY(I)D
 
- 
getHeadZprivate double getHeadZ(int headIndex) - Mappings:
- Namespace - Name - Mixin selector - official - w- Lbuv;w(I)D- intermediary - method_6881- Lnet/minecraft/class_1528;method_6881(I)D- named - getHeadZ- Lnet/minecraft/entity/boss/WitherEntity;getHeadZ(I)D
 
- 
getNextAngleprivate float getNextAngle(float prevAngle, float desiredAngle, float maxDifference) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lbuv;a(FFF)F- intermediary - method_6886- Lnet/minecraft/class_1528;method_6886(FFF)F- named - getNextAngle- Lnet/minecraft/entity/boss/WitherEntity;getNextAngle(FFF)F
 
- 
shootSkullAt- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbuv;a(ILbfz;)V- intermediary - method_6878- Lnet/minecraft/class_1528;method_6878(ILnet/minecraft/class_1309;)V- named - shootSkullAt- Lnet/minecraft/entity/boss/WitherEntity;shootSkullAt(ILnet/minecraft/entity/LivingEntity;)V
 
- 
shootSkullAtprivate void shootSkullAt(int headIndex, double targetX, double targetY, double targetZ, boolean charged) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lbuv;a(IDDDZ)V- intermediary - method_6877- Lnet/minecraft/class_1528;method_6877(IDDDZ)V- named - shootSkullAt- Lnet/minecraft/entity/boss/WitherEntity;shootSkullAt(IDDDZ)V
 
- 
attack- Specified by:
- attackin interface- RangedAttackMob
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbwg;a(Lbfz;F)V- intermediary - method_7105- Lnet/minecraft/class_1603;method_7105(Lnet/minecraft/class_1309;F)V- named - attack- Lnet/minecraft/entity/ai/RangedAttackMob;attack(Lnet/minecraft/entity/LivingEntity;F)V
 
- 
damageApplies a damage to this entity. The exact implementation differs between subclasses.LivingEntityhas health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.Some entities like ItemEntityalso have health value, which the overridden method decrements. There also exist several entities, likeEndCrystalEntity, where any damage discards the entity (perhaps with an explosion).If this is overridden, it must check the result of Entity.isInvulnerableTo(net.minecraft.entity.damage.DamageSource)and return early.- Overrides:
- damagein class- LivingEntity
- Returns:
- whether the entity was actually damaged
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(Lben;F)Z- intermediary - method_5643- Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z- named - damage- Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
 
- 
dropEquipment- Overrides:
- dropEquipmentin class- MobEntity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfz;a(Lben;IZ)V- intermediary - method_6099- Lnet/minecraft/class_1309;method_6099(Lnet/minecraft/class_1282;IZ)V- named - dropEquipment- Lnet/minecraft/entity/LivingEntity;dropEquipment(Lnet/minecraft/entity/damage/DamageSource;IZ)V
 
- 
checkDespawnpublic void checkDespawn()Checks whether the entity should be despawned.To despawn this entity, call Entity.discard().- Overrides:
- checkDespawnin class- MobEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - du- Lbfj;du()V- intermediary - method_5982- Lnet/minecraft/class_1297;method_5982()V- named - checkDespawn- Lnet/minecraft/entity/Entity;checkDespawn()V
 
- 
addStatusEffectAdds a status effect to this entity.- Overrides:
- addStatusEffectin class- LivingEntity
- Parameters:
- effect- the effect to add
- source- the source entity or- nullfor non-entity sources
- Returns:
- whether the active status effects of this entity has been modified
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbfz;b(Lbfa;Lbfj;)Z- intermediary - method_37222- Lnet/minecraft/class_1309;method_37222(Lnet/minecraft/class_1293;Lnet/minecraft/class_1297;)Z- named - addStatusEffect- Lnet/minecraft/entity/LivingEntity;addStatusEffect(Lnet/minecraft/entity/effect/StatusEffectInstance;Lnet/minecraft/entity/Entity;)Z
 
- 
createWitherAttributes- Mappings:
- Namespace - Name - Mixin selector - official - r- Lbuv;r()Lbhf$a;- intermediary - method_26904- Lnet/minecraft/class_1528;method_26904()Lnet/minecraft/class_5132$class_5133;- named - createWitherAttributes- Lnet/minecraft/entity/boss/WitherEntity;createWitherAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
 
- 
getHeadYawpublic float getHeadYaw(int headIndex) - Mappings:
- Namespace - Name - Mixin selector - official - b- Lbuv;b(I)F- intermediary - method_6879- Lnet/minecraft/class_1528;method_6879(I)F- named - getHeadYaw- Lnet/minecraft/entity/boss/WitherEntity;getHeadYaw(I)F
 
- 
getHeadPitchpublic float getHeadPitch(int headIndex) - Mappings:
- Namespace - Name - Mixin selector - official - c- Lbuv;c(I)F- intermediary - method_6887- Lnet/minecraft/class_1528;method_6887(I)F- named - getHeadPitch- Lnet/minecraft/entity/boss/WitherEntity;getHeadPitch(I)F
 
- 
getInvulnerableTimerpublic int getInvulnerableTimer()- Mappings:
- Namespace - Name - Mixin selector - official - w- Lbuv;w()I- intermediary - method_6884- Lnet/minecraft/class_1528;method_6884()I- named - getInvulnerableTimer- Lnet/minecraft/entity/boss/WitherEntity;getInvulnerableTimer()I
 
- 
setInvulTimerpublic void setInvulTimer(int ticks) - Mappings:
- Namespace - Name - Mixin selector - official - s- Lbuv;s(I)V- intermediary - method_6875- Lnet/minecraft/class_1528;method_6875(I)V- named - setInvulTimer- Lnet/minecraft/entity/boss/WitherEntity;setInvulTimer(I)V
 
- 
getTrackedEntityIdpublic int getTrackedEntityId(int headIndex) - Mappings:
- Namespace - Name - Mixin selector - official - t- Lbuv;t(I)I- intermediary - method_6882- Lnet/minecraft/class_1528;method_6882(I)I- named - getTrackedEntityId- Lnet/minecraft/entity/boss/WitherEntity;getTrackedEntityId(I)I
 
- 
setTrackedEntityIdpublic void setTrackedEntityId(int headIndex, int id) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lbuv;a(II)V- intermediary - method_6876- Lnet/minecraft/class_1528;method_6876(II)V- named - setTrackedEntityId- Lnet/minecraft/entity/boss/WitherEntity;setTrackedEntityId(II)V
 
- 
shouldRenderOverlaypublic boolean shouldRenderOverlay()- Specified by:
- shouldRenderOverlayin interface- SkinOverlayOwner
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgm;a()Z- intermediary - method_6872- Lnet/minecraft/class_4582;method_6872()Z- named - shouldRenderOverlay- Lnet/minecraft/client/render/entity/feature/SkinOverlayOwner;shouldRenderOverlay()Z
 
- 
getGroup- Overrides:
- getGroupin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - eN- Lbfz;eN()Lbge;- intermediary - method_6046- Lnet/minecraft/class_1309;method_6046()Lnet/minecraft/class_1310;- named - getGroup- Lnet/minecraft/entity/LivingEntity;getGroup()Lnet/minecraft/entity/EntityGroup;
 
- 
canStartRidingReturns whether this entity can rideentity.Returning falsecauses the entity to be unable to ride other entities. For example,WitherEntityoverrides this to returnfalse, so withers cannot ride boats or minecarts. Note that this check can be bypassed by passingtruetoEntity.startRiding(Entity, boolean).This is the opposite of Entity.canAddPassenger(net.minecraft.entity.Entity).- Overrides:
- canStartRidingin class- Entity
- Returns:
- whether this entity can ride entity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - l- Lbfj;l(Lbfj;)Z- intermediary - method_5860- Lnet/minecraft/class_1297;method_5860(Lnet/minecraft/class_1297;)Z- named - canStartRiding- Lnet/minecraft/entity/Entity;canStartRiding(Lnet/minecraft/entity/Entity;)Z
 
- 
canUsePortalspublic boolean canUsePortals()Returns whether the entity can use nether portals and end portals.EnderDragonEntity,WitherEntity, andFishingBobberEntitycannot use portals.- Overrides:
- canUsePortalsin class- LivingEntity
- Returns:
- whether the entity can use nether portals and end portals
- Mappings:
- Namespace - Name - Mixin selector - official - cq- Lbfj;cq()Z- intermediary - method_5822- Lnet/minecraft/class_1297;method_5822()Z- named - canUsePortals- Lnet/minecraft/entity/Entity;canUsePortals()Z
 
- 
canHaveStatusEffect- Overrides:
- canHaveStatusEffectin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lbfz;c(Lbfa;)Z- intermediary - method_6049- Lnet/minecraft/class_1309;method_6049(Lnet/minecraft/class_1293;)Z- named - canHaveStatusEffect- Lnet/minecraft/entity/LivingEntity;canHaveStatusEffect(Lnet/minecraft/entity/effect/StatusEffectInstance;)Z