Class WitherEntity
- All Implemented Interfaces:
SkinOverlayOwner
,RangedAttackMob
,Attackable
,DataTracked
,EquipmentHolder
,Monster
,Targeter
,ScoreHolder
,CommandOutput
,Nameable
,EntityLike
- Mappings:
Namespace Name named net/minecraft/entity/boss/WitherEntity
intermediary net/minecraft/class_1528
official cix
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSounds
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private final ServerBossBar
private static final Predicate
<LivingEntity> private final int[]
private static final int
private static final TargetPredicate
private 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.PathAwareEntity
DEFAULT_PATHFINDING_FAVOR
Fields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, bodyArmorDropChance, 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, targetSelector
Fields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, BABY_SCALE_FACTOR, bodyTrackingIncrements, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, EQUIPMENT_SLOT_ID, fallFlyingTicks, field_30063, field_30069, field_30070, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, 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, prevScale, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideTicks, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAG
Fields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, 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, wasOnFire
Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY
Fields inherited from interface net.minecraft.entity.mob.Monster
NORMAL_MONSTER_XP, SMALL_MONSTER_XP, STRONG_MONSTER_XP, STRONGER_MONSTER_XP, WITHER_XP, ZERO_XP
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addStatusEffect
(StatusEffectInstance effect, @Nullable Entity source) Adds a status effect to this entity.static boolean
canDestroy
(BlockState block) boolean
protected boolean
canStartRiding
(Entity entity) Returns whether this entity can rideentity
.boolean
Returns whether the entity can use nether portals and end portals.void
Checks whether the entity should be despawned.protected EntityNavigation
createNavigation
(World world) boolean
damage
(DamageSource source, float amount) Applies a damage to this entity.protected void
dropEquipment
(DamageSource source, int lootingMultiplier, boolean allowDrops) protected SoundEvent
protected SoundEvent
float
getHeadPitch
(int headIndex) private double
getHeadX
(int headIndex) private double
getHeadY
(int headIndex) float
getHeadYaw
(int headIndex) private double
getHeadZ
(int headIndex) protected SoundEvent
getHurtSound
(DamageSource source) int
private float
getNextAngle
(float prevAngle, float desiredAngle, float maxDifference) int
getTrackedEntityId
(int headIndex) protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.protected void
protected void
mobTick()
void
Called whenplayer
starts tracking this entity.void
Called whenplayer
stops tracking this entity.void
void
Reads custom data fromnbt
.void
setCustomName
(@Nullable Text name) Sets the custom name of the entity toname
(ornull
to remove the custom name).void
setInvulTimer
(int ticks) void
setTrackedEntityId
(int headIndex, int id) void
shootAt
(LivingEntity target, float pullProgress) private void
shootSkullAt
(int headIndex, double targetX, double targetY, double targetZ, boolean charged) private void
shootSkullAt
(int headIndex, LivingEntity target) boolean
void
slowMovement
(BlockState state, Vec3d multiplier) CallsEntity.onLanding()
and slows this entity.void
void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.mob.HostileEntity
canSpawnIgnoreLightLevel, canSpawnInDark, createHostileAttributes, getFallSounds, getPathfindingFavor, getProjectileType, getSoundCategory, getSplashSound, getSwimSound, isAngryAt, isDisallowedInPeaceful, isSpawnDark, shouldDropLoot, shouldDropXp, updateDespawnCounter
Methods inherited from class net.minecraft.entity.mob.PathAwareEntity
canSpawn, getFollowLeashSpeed, getPathfindingFavor, isNavigating, isPanicking, shouldFollowLeash, updateForLeashLength, updateLeash
Methods inherited from class net.minecraft.entity.mob.MobEntity
attachLeash, baseTick, canBeLeashedBy, canEquip, canGather, canImmediatelyDespawn, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canTarget, canUseRangedWeapon, canUseSlot, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, createBodyControl, createMobAttributes, detachLeash, dropLoot, enchantEquipment, enchantMainHandItem, equipBodyArmor, equipLootStack, equipStack, getAllArmorItems, getArmorItems, getAttackBox, getBodyArmor, 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, getTarget, getTargetInBrain, getVisibilityCache, getXpToDrop, handleStatus, hasArmorSlot, hasPositionTarget, initEquipment, initialize, interact, interactMob, isAffectedByDaylight, isAiDisabled, isAttacking, isHorseArmor, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeashed, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, loot, mightBeLeashed, movesIndependently, onEatingGrass, onFinishPathfinding, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, sendAiDebugData, setAiDisabled, setAttacking, setBaby, setCanPickUpLoot, setEquipmentDropChance, setEquipmentFromTable, setEquipmentFromTable, setForwardSpeed, setHoldingEntityId, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, startRiding, stopMovement, swimUpward, tick, tickNewAi, tryAttack, tryEquip, turnHead, updateDropChances, updateEnchantments, updateGoalControls
Methods inherited from class net.minecraft.entity.LivingEntity
addPowderSnowSlowIfNeeded, addSoulSpeedBoostIfNeeded, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyFluidMovingSpeed, applyMovementEffects, applyMovementInput, areItemsDifferent, attackLivingEntity, blockedByShield, canBreatheInWater, canFreeze, canHit, canSee, canTakeDamage, canTarget, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, damageArmor, damageEquipment, damageHelmet, damageShield, deserializeBrain, disableExperienceDropping, disablesShield, displaySoulSpeedEffects, drop, dropInventory, dropXp, eatFood, endCombat, enterCombat, fall, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseDimensions, getBaseMovementSpeedMultiplier, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageTiltYaw, getDamageTracker, getDespawnCounter, getDimensions, getDrinkSound, getEatSound, getEquippedItems, getFallFlyingTicks, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getJumpVelocity, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, getMainHandStack, getMaxAbsorption, getMaxHealth, getMaxRelativeHeadRotation, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPassengerRidingPos, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getRandom, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getSoundVolume, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getVisibilityBoundingBox, getYaw, handleFallDamage, hasInvertedHealingAndHarm, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBaby, isBlocking, isClimbing, isDead, isExperienceDroppingDisabled, isFallFlying, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInCreativeMode, isInsideWall, isInSwimmingPose, isMobOrPlayer, isOnSoulSpeedBlock, isPartOfGame, isPushable, isSleeping, isTarget, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lerpHeadYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onSpawnPacket, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, onTrackedDataSet, playBlockFallSound, playSound, positionInPortal, positionInPortal, processEquippedStack, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeSoulSpeedBoost, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAbsorptionAmountUnclamped, setAttacker, setAttacking, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setOnFireForTicks, 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, wakeUp, wouldNotSuffocateInPose
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyDamageEffects, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, 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, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMoveEffect, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerNearestTo, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPortalRect, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandomBodyY, getRegistryManager, 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, getVehicleAttachmentPos, 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, isInFluid, 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, lerpPosAndRotation, limitFallDistance, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, 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, removeCommandTag, removePassenger, 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, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldControlVehicles, 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, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilenced
Methods inherited from interface net.minecraft.entity.EquipmentHolder
getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTable
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
TRACKED_ENTITY_ID_1
- Mappings:
Namespace Name Mixin selector named TRACKED_ENTITY_ID_1
Lnet/minecraft/entity/boss/WitherEntity;TRACKED_ENTITY_ID_1:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7088
Lnet/minecraft/class_1528;field_7088:Lnet/minecraft/class_2940;
official b
Lcix;b:Lakk;
-
TRACKED_ENTITY_ID_2
- Mappings:
Namespace Name Mixin selector named TRACKED_ENTITY_ID_2
Lnet/minecraft/entity/boss/WitherEntity;TRACKED_ENTITY_ID_2:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7090
Lnet/minecraft/class_1528;field_7090:Lnet/minecraft/class_2940;
official c
Lcix;c:Lakk;
-
TRACKED_ENTITY_ID_3
- Mappings:
Namespace Name Mixin selector named TRACKED_ENTITY_ID_3
Lnet/minecraft/entity/boss/WitherEntity;TRACKED_ENTITY_ID_3:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7089
Lnet/minecraft/class_1528;field_7089:Lnet/minecraft/class_2940;
official d
Lcix;d:Lakk;
-
TRACKED_ENTITY_IDS
- Mappings:
Namespace Name Mixin selector named TRACKED_ENTITY_IDS
Lnet/minecraft/entity/boss/WitherEntity;TRACKED_ENTITY_IDS:Ljava/util/List;
intermediary field_7087
Lnet/minecraft/class_1528;field_7087:Ljava/util/List;
official e
Lcix;e:Ljava/util/List;
-
INVUL_TIMER
- Mappings:
Namespace Name Mixin selector named INVUL_TIMER
Lnet/minecraft/entity/boss/WitherEntity;INVUL_TIMER:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7085
Lnet/minecraft/class_1528;field_7085:Lnet/minecraft/class_2940;
official bY
Lcix;bY:Lakk;
-
DEFAULT_INVUL_TIMER
private static final int DEFAULT_INVUL_TIMER- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_INVUL_TIMER
Lnet/minecraft/entity/boss/WitherEntity;DEFAULT_INVUL_TIMER:I
intermediary field_30441
Lnet/minecraft/class_1528;field_30441:I
official bZ
Lcix;bZ:I
-
CAN_ATTACK_PREDICATE
- Mappings:
Namespace Name Mixin selector named CAN_ATTACK_PREDICATE
Lnet/minecraft/entity/boss/WitherEntity;CAN_ATTACK_PREDICATE:Ljava/util/function/Predicate;
intermediary field_7086
Lnet/minecraft/class_1528;field_7086:Ljava/util/function/Predicate;
official ci
Lcix;ci:Ljava/util/function/Predicate;
-
HEAD_TARGET_PREDICATE
- Mappings:
Namespace Name Mixin selector named HEAD_TARGET_PREDICATE
Lnet/minecraft/entity/boss/WitherEntity;HEAD_TARGET_PREDICATE:Lnet/minecraft/entity/ai/TargetPredicate;
intermediary field_18125
Lnet/minecraft/class_1528;field_18125:Lnet/minecraft/class_4051;
official cj
Lcix;cj:Lcei;
-
sideHeadPitches
private final float[] sideHeadPitches- Mappings:
Namespace Name Mixin selector named sideHeadPitches
Lnet/minecraft/entity/boss/WitherEntity;sideHeadPitches:[F
intermediary field_7084
Lnet/minecraft/class_1528;field_7084:[F
official ca
Lcix;ca:[F
-
sideHeadYaws
private final float[] sideHeadYaws- Mappings:
Namespace Name Mixin selector named sideHeadYaws
Lnet/minecraft/entity/boss/WitherEntity;sideHeadYaws:[F
intermediary field_7083
Lnet/minecraft/class_1528;field_7083:[F
official cb
Lcix;cb:[F
-
prevSideHeadPitches
private final float[] prevSideHeadPitches- Mappings:
Namespace Name Mixin selector named prevSideHeadPitches
Lnet/minecraft/entity/boss/WitherEntity;prevSideHeadPitches:[F
intermediary field_7095
Lnet/minecraft/class_1528;field_7095:[F
official cc
Lcix;cc:[F
-
prevSideHeadYaws
private final float[] prevSideHeadYaws- Mappings:
Namespace Name Mixin selector named prevSideHeadYaws
Lnet/minecraft/entity/boss/WitherEntity;prevSideHeadYaws:[F
intermediary field_7094
Lnet/minecraft/class_1528;field_7094:[F
official cd
Lcix;cd:[F
-
skullCooldowns
private final int[] skullCooldowns- Mappings:
Namespace Name Mixin selector named skullCooldowns
Lnet/minecraft/entity/boss/WitherEntity;skullCooldowns:[I
intermediary field_7091
Lnet/minecraft/class_1528;field_7091:[I
official ce
Lcix;ce:[I
-
chargedSkullCooldowns
private final int[] chargedSkullCooldowns- Mappings:
Namespace Name Mixin selector named chargedSkullCooldowns
Lnet/minecraft/entity/boss/WitherEntity;chargedSkullCooldowns:[I
intermediary field_7092
Lnet/minecraft/class_1528;field_7092:[I
official cf
Lcix;cf:[I
-
blockBreakingCooldown
private int blockBreakingCooldown- Mappings:
Namespace Name Mixin selector named blockBreakingCooldown
Lnet/minecraft/entity/boss/WitherEntity;blockBreakingCooldown:I
intermediary field_7082
Lnet/minecraft/class_1528;field_7082:I
official cg
Lcix;cg:I
-
bossBar
- Mappings:
Namespace Name Mixin selector named bossBar
Lnet/minecraft/entity/boss/WitherEntity;bossBar:Lnet/minecraft/entity/boss/ServerBossBar;
intermediary field_7093
Lnet/minecraft/class_1528;field_7093:Lnet/minecraft/class_3213;
official ch
Lcix;ch:Larc;
-
-
Constructor Details
-
WitherEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
official <init>
Lbsw;<init>(Lbtc;Ldca;)V
-
-
Method Details
-
initGoals
protected void initGoals() -
initDataTracker
Initializes data tracker.- Overrides:
initDataTracker
in classMobEntity
- API Note:
- Subclasses should override this and add to the builder any data that needs to be tracked.
- Mappings:
Namespace Name Mixin selector named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
official a
Lbsw;a(Lako$a;)V
-
writeCustomDataToNbt
Writes custom data tonbt
. Subclasses have 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:
writeCustomDataToNbt
in classMobEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbt
Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
official b
Lbsw;b(Lus;)V
-
readCustomDataFromNbt
Reads custom data fromnbt
. Subclasses have 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.
nbt
might 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:
readCustomDataFromNbt
in classMobEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbt
Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
official a
Lbsw;a(Lus;)V
-
setCustomName
Sets the custom name of the entity toname
(ornull
to remove the custom name).- Overrides:
setCustomName
in classEntity
- Mappings:
Namespace Name Mixin selector named setCustomName
Lnet/minecraft/entity/Entity;setCustomName(Lnet/minecraft/text/Text;)V
intermediary method_5665
Lnet/minecraft/class_1297;method_5665(Lnet/minecraft/class_2561;)V
official b
Lbsw;b(Lxp;)V
-
getAmbientSound
- Overrides:
getAmbientSound
in classMobEntity
- Mappings:
Namespace Name Mixin selector named getAmbientSound
Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_5994
Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
official v
Lbtt;v()Lavz;
-
getHurtSound
- Overrides:
getHurtSound
in classHostileEntity
- Mappings:
Namespace Name Mixin selector named getHurtSound
Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
intermediary method_6011
Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
official d
Lbtr;d(Lbrp;)Lavz;
-
getDeathSound
- Overrides:
getDeathSound
in classHostileEntity
- Mappings:
Namespace Name Mixin selector named getDeathSound
Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_6002
Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
official o_
Lbtr;o_()Lavz;
-
tickMovement
public void tickMovement()- Overrides:
tickMovement
in classHostileEntity
- Mappings:
Namespace Name Mixin selector named tickMovement
Lnet/minecraft/entity/LivingEntity;tickMovement()V
intermediary method_6007
Lnet/minecraft/class_1309;method_6007()V
official n_
Lbtr;n_()V
-
mobTick
protected void mobTick() -
canDestroy
- Mappings:
Namespace Name Mixin selector named canDestroy
Lnet/minecraft/entity/boss/WitherEntity;canDestroy(Lnet/minecraft/block/BlockState;)Z
intermediary method_6883
Lnet/minecraft/class_1528;method_6883(Lnet/minecraft/class_2680;)Z
official d
Lcix;d(Ldse;)Z
-
onSummoned
public void onSummoned()- Mappings:
Namespace Name Mixin selector named onSummoned
Lnet/minecraft/entity/boss/WitherEntity;onSummoned()V
intermediary method_6885
Lnet/minecraft/class_1528;method_6885()V
official s
Lcix;s()V
-
slowMovement
CallsEntity.onLanding()
and slows this entity.This means that the entity will avoid taking fall damage.
- Overrides:
slowMovement
in classEntity
- API Note:
- This should be called inside
AbstractBlock.onEntityCollision(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.Entity)
. This is used by cobwebs, sweet berries, and powder snow. - Mappings:
Namespace Name Mixin selector named slowMovement
Lnet/minecraft/entity/Entity;slowMovement(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Vec3d;)V
intermediary method_5844
Lnet/minecraft/class_1297;method_5844(Lnet/minecraft/class_2680;Lnet/minecraft/class_243;)V
official a
Lbsw;a(Ldse;Levt;)V
-
onStartedTrackingBy
Called whenplayer
starts tracking this entity.Entities with boss bars like
WitherEntity
should override this to add the player to the boss bar.- Overrides:
onStartedTrackingBy
in classEntity
- Mappings:
Namespace Name Mixin selector named onStartedTrackingBy
Lnet/minecraft/entity/Entity;onStartedTrackingBy(Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_5837
Lnet/minecraft/class_1297;method_5837(Lnet/minecraft/class_3222;)V
official c
Lbsw;c(Larg;)V
-
onStoppedTrackingBy
Called whenplayer
stops tracking this entity.Entities with boss bars like
WitherEntity
should override this to remove the player from the boss bar.- Overrides:
onStoppedTrackingBy
in classEntity
- Mappings:
Namespace Name Mixin selector named onStoppedTrackingBy
Lnet/minecraft/entity/Entity;onStoppedTrackingBy(Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_5742
Lnet/minecraft/class_1297;method_5742(Lnet/minecraft/class_3222;)V
official d
Lbsw;d(Larg;)V
-
getHeadX
private double getHeadX(int headIndex) - Mappings:
Namespace Name Mixin selector named getHeadX
Lnet/minecraft/entity/boss/WitherEntity;getHeadX(I)D
intermediary method_6874
Lnet/minecraft/class_1528;method_6874(I)D
official v
Lcix;v(I)D
-
getHeadY
private double getHeadY(int headIndex) - Mappings:
Namespace Name Mixin selector named getHeadY
Lnet/minecraft/entity/boss/WitherEntity;getHeadY(I)D
intermediary method_6880
Lnet/minecraft/class_1528;method_6880(I)D
official w
Lcix;w(I)D
-
getHeadZ
private double getHeadZ(int headIndex) - Mappings:
Namespace Name Mixin selector named getHeadZ
Lnet/minecraft/entity/boss/WitherEntity;getHeadZ(I)D
intermediary method_6881
Lnet/minecraft/class_1528;method_6881(I)D
official x
Lcix;x(I)D
-
getNextAngle
private float getNextAngle(float prevAngle, float desiredAngle, float maxDifference) - Mappings:
Namespace Name Mixin selector named getNextAngle
Lnet/minecraft/entity/boss/WitherEntity;getNextAngle(FFF)F
intermediary method_6886
Lnet/minecraft/class_1528;method_6886(FFF)F
official a
Lcix;a(FFF)F
-
shootSkullAt
- Mappings:
Namespace Name Mixin selector named shootSkullAt
Lnet/minecraft/entity/boss/WitherEntity;shootSkullAt(ILnet/minecraft/entity/LivingEntity;)V
intermediary method_6878
Lnet/minecraft/class_1528;method_6878(ILnet/minecraft/class_1309;)V
official a
Lcix;a(ILbtr;)V
-
shootSkullAt
private void shootSkullAt(int headIndex, double targetX, double targetY, double targetZ, boolean charged) - Mappings:
Namespace Name Mixin selector named shootSkullAt
Lnet/minecraft/entity/boss/WitherEntity;shootSkullAt(IDDDZ)V
intermediary method_6877
Lnet/minecraft/class_1528;method_6877(IDDDZ)V
official a
Lcix;a(IDDDZ)V
-
shootAt
- Specified by:
shootAt
in interfaceRangedAttackMob
- Mappings:
Namespace Name Mixin selector named shootAt
Lnet/minecraft/entity/ai/RangedAttackMob;shootAt(Lnet/minecraft/entity/LivingEntity;F)V
intermediary method_7105
Lnet/minecraft/class_1603;method_7105(Lnet/minecraft/class_1309;F)V
official a
Lckj;a(Lbtr;F)V
-
damage
Applies a damage to this entity. The exact implementation differs between subclasses.LivingEntity
has 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
invalid reference
ItemEntity
EndCrystalEntity
, 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:
damage
in classLivingEntity
- Returns:
- whether the entity was actually damaged
- See Also:
- Mappings:
Namespace Name Mixin selector named damage
Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
intermediary method_5643
Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
official a
Lbsw;a(Lbrp;F)Z
-
dropEquipment
- Overrides:
dropEquipment
in classMobEntity
- Mappings:
Namespace Name Mixin selector named dropEquipment
Lnet/minecraft/entity/LivingEntity;dropEquipment(Lnet/minecraft/entity/damage/DamageSource;IZ)V
intermediary method_6099
Lnet/minecraft/class_1309;method_6099(Lnet/minecraft/class_1282;IZ)V
official a
Lbtr;a(Lbrp;IZ)V
-
checkDespawn
public void checkDespawn()Checks whether the entity should be despawned.To despawn this entity, call
Entity.discard()
.- Overrides:
checkDespawn
in classMobEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named checkDespawn
Lnet/minecraft/entity/Entity;checkDespawn()V
intermediary method_5982
Lnet/minecraft/class_1297;method_5982()V
official dB
Lbsw;dB()V
-
addStatusEffect
Adds a status effect to this entity.- Overrides:
addStatusEffect
in classLivingEntity
- Parameters:
effect
- the effect to addsource
- the source entity ornull
for non-entity sources- Returns:
- whether the active status effects of this entity has been modified
- Implementation Note:
- A status effect may fail to be added due to getting overridden by existing effects or the effect being incompatible with this entity.
- Mappings:
Namespace Name Mixin selector named addStatusEffect
Lnet/minecraft/entity/LivingEntity;addStatusEffect(Lnet/minecraft/entity/effect/StatusEffectInstance;Lnet/minecraft/entity/Entity;)Z
intermediary method_37222
Lnet/minecraft/class_1309;method_37222(Lnet/minecraft/class_1293;Lnet/minecraft/class_1297;)Z
official b
Lbtr;b(Lbse;Lbsw;)Z
-
createWitherAttributes
- Mappings:
Namespace Name Mixin selector named createWitherAttributes
Lnet/minecraft/entity/boss/WitherEntity;createWitherAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
intermediary method_26904
Lnet/minecraft/class_1528;method_26904()Lnet/minecraft/class_5132$class_5133;
official u
Lcix;u()Lbuy$a;
-
getHeadYaw
public float getHeadYaw(int headIndex) - Mappings:
Namespace Name Mixin selector named getHeadYaw
Lnet/minecraft/entity/boss/WitherEntity;getHeadYaw(I)F
intermediary method_6879
Lnet/minecraft/class_1528;method_6879(I)F
official b
Lcix;b(I)F
-
getHeadPitch
public float getHeadPitch(int headIndex) - Mappings:
Namespace Name Mixin selector named getHeadPitch
Lnet/minecraft/entity/boss/WitherEntity;getHeadPitch(I)F
intermediary method_6887
Lnet/minecraft/class_1528;method_6887(I)F
official c
Lcix;c(I)F
-
getInvulnerableTimer
public int getInvulnerableTimer()- Mappings:
Namespace Name Mixin selector named getInvulnerableTimer
Lnet/minecraft/entity/boss/WitherEntity;getInvulnerableTimer()I
intermediary method_6884
Lnet/minecraft/class_1528;method_6884()I
official y
Lcix;y()I
-
setInvulTimer
public void setInvulTimer(int ticks) - Mappings:
Namespace Name Mixin selector named setInvulTimer
Lnet/minecraft/entity/boss/WitherEntity;setInvulTimer(I)V
intermediary method_6875
Lnet/minecraft/class_1528;method_6875(I)V
official t
Lcix;t(I)V
-
getTrackedEntityId
public int getTrackedEntityId(int headIndex) - Mappings:
Namespace Name Mixin selector named getTrackedEntityId
Lnet/minecraft/entity/boss/WitherEntity;getTrackedEntityId(I)I
intermediary method_6882
Lnet/minecraft/class_1528;method_6882(I)I
official u
Lcix;u(I)I
-
setTrackedEntityId
public void setTrackedEntityId(int headIndex, int id) - Mappings:
Namespace Name Mixin selector named setTrackedEntityId
Lnet/minecraft/entity/boss/WitherEntity;setTrackedEntityId(II)V
intermediary method_6876
Lnet/minecraft/class_1528;method_6876(II)V
official a
Lcix;a(II)V
-
shouldRenderOverlay
public boolean shouldRenderOverlay()- Specified by:
shouldRenderOverlay
in interfaceSkinOverlayOwner
- Mappings:
Namespace Name Mixin selector named shouldRenderOverlay
Lnet/minecraft/client/render/entity/feature/SkinOverlayOwner;shouldRenderOverlay()Z
intermediary method_6872
Lnet/minecraft/class_4582;method_6872()Z
official a
Lbue;a()Z
-
canStartRiding
Returns whether this entity can rideentity
.Returning
false
causes the entity to be unable to ride other entities. For example,WitherEntity
overrides this to returnfalse
, so withers cannot ride boats or minecarts. Note that this check can be bypassed by passingtrue
toMobEntity.startRiding(Entity, boolean)
.This is the opposite of
Entity.canAddPassenger(net.minecraft.entity.Entity)
.- Overrides:
canStartRiding
in classEntity
- Returns:
- whether this entity can ride
entity
- See Also:
- Mappings:
Namespace Name Mixin selector named canStartRiding
Lnet/minecraft/entity/Entity;canStartRiding(Lnet/minecraft/entity/Entity;)Z
intermediary method_5860
Lnet/minecraft/class_1297;method_5860(Lnet/minecraft/class_1297;)Z
official o
Lbsw;o(Lbsw;)Z
-
canUsePortals
public boolean canUsePortals()Returns whether the entity can use nether portals and end portals.EnderDragonEntity
,WitherEntity
, andFishingBobberEntity
cannot use portals.- Overrides:
canUsePortals
in classLivingEntity
- Returns:
- whether the entity can use nether portals and end portals
- Mappings:
Namespace Name Mixin selector named canUsePortals
Lnet/minecraft/entity/Entity;canUsePortals()Z
intermediary method_5822
Lnet/minecraft/class_1297;method_5822()Z
official cw
Lbsw;cw()Z
-
canHaveStatusEffect
- Overrides:
canHaveStatusEffect
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named canHaveStatusEffect
Lnet/minecraft/entity/LivingEntity;canHaveStatusEffect(Lnet/minecraft/entity/effect/StatusEffectInstance;)Z
intermediary method_6049
Lnet/minecraft/class_1309;method_6049(Lnet/minecraft/class_1293;)Z
official c
Lbtr;c(Lbse;)Z