Class WitherEntity
- All Implemented Interfaces:
RangedAttackMob,Attackable,DataTracked,EquipmentHolder,Leashable,Monster,SkinOverlayOwner,Targeter,ScoreHolder,CommandOutput,Nameable,EntityLike
- Mappings:
Namespace Name named net/minecraft/entity/boss/WitherEntityintermediary net/minecraft/class_1528official ciu
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSoundsNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReasonNested classes/interfaces inherited from interface net.minecraft.entity.Leashable
Leashable.LeashData -
Field Summary
FieldsModifier 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.PathAwareEntity
DEFAULT_PATHFINDING_FAVORFields 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, field_52220, goalSelector, handDropChances, jumpControl, lookControl, MINIMUM_DROPPED_XP_PER_EQUIPMENT, moveControl, navigation, RANDOM_SPAWN_BONUS_MODIFIER_ID, targetSelectorFields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, ATTRIBUTES_NBT_KEY, 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, riptideAttackDamage, riptideStack, riptideTicks, 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.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, inPowderSnow, intersectionChecked, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, 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.CommandOutput
DUMMYFields inherited from interface net.minecraft.entity.Leashable
field_52314, field_52315, LEASH_NBT_KEYFields inherited from interface net.minecraft.entity.mob.Monster
NORMAL_MONSTER_XP, SMALL_MONSTER_XP, STRONG_MONSTER_XP, STRONGER_MONSTER_XP, WITHER_XP, ZERO_XPFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddStatusEffect(StatusEffectInstance effect, @Nullable Entity source) Adds a status effect to this entity.static booleancanDestroy(BlockState block) booleanprotected booleancanStartRiding(Entity entity) Returns whether this entity can rideentity.booleancanUsePortals(boolean allowVehicles) Returns 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(ServerWorld world, DamageSource source, boolean causedByPlayer) protected SoundEventprotected SoundEventfloatgetHeadPitch(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 voidinitDataTracker(DataTracker.Builder builder) Initializes 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) voidshootAt(LivingEntity target, float pullProgress) 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.HostileEntity
canSpawnIgnoreLightLevel, canSpawnInDark, createHostileAttributes, getFallSounds, getPathfindingFavor, getProjectileType, getSoundCategory, getSplashSound, getSwimSound, isAngryAt, isDisallowedInPeaceful, isSpawnDark, shouldDropLoot, shouldDropXp, updateDespawnCounterMethods inherited from class net.minecraft.entity.mob.PathAwareEntity
canSpawn, getFollowLeashSpeed, getPathfindingFavor, isNavigating, isPanicking, onShortLeashTick, shouldFollowLeash, shouldTickLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
baseTick, canBeLeashed, canEquip, canGather, canImmediatelyDespawn, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canTarget, canUseRangedWeapon, canUseSlot, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, createBodyControl, createMobAttributes, detachLeash, detachLeash, dropAllEquipment, dropEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipBodyArmor, equipLootStack, equipStack, getAllArmorItems, getArmorItems, getAttackBox, getBodyArmor, getControllingPassenger, getDropChance, getEquipmentForSlot, getEquippedStack, getHandItems, getItemPickUpRangeExpander, getJumpControl, getLeashData, getLimitPerChunk, getLookControl, getLootTable, getLootTableId, getLootTableSeed, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMinAmbientSoundDelay, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getSafeFallDistance, getTarget, getTargetInBrain, getVisibilityCache, getXpToDrop, handleStatus, hasPositionTarget, initEquipment, initialize, interact, interactMob, isAffectedByDaylight, isAiDisabled, isAttacking, isHorseArmor, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, loot, movesIndependently, onEatingGrass, onFinishPathfinding, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playAttackSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, sendAiDebugData, setAiDisabled, setAttacking, setBaby, setCanPickUpLoot, setEquipmentDropChance, setEquipmentFromTable, setEquipmentFromTable, setForwardSpeed, setLeashData, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, startRiding, stopMovement, swimUpward, tick, tickNewAi, tryAttack, tryEquip, turnHead, updateDropChances, updateEnchantments, updateGoalControlsMethods inherited from class net.minecraft.entity.LivingEntity
addPowderSnowSlowIfNeeded, 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, 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, getKnockbackAgainst, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, getLocationBasedEnchantmentEffects, getMainHandStack, getMaxAbsorption, getMaxHealth, getMaxRelativeHeadRotation, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPassengerRidingPos, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getSoundVolume, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getVisibilityBoundingBox, getWeaponStack, getXpToDrop, getYaw, handleFallDamage, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBaby, isBlocking, isClimbing, isDead, isExperienceDroppingDisabled, isFallFlying, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInCreativeMode, isInsideWall, isInSwimmingPose, isInvulnerableTo, isMobOrPlayer, isPartOfGame, isPushable, isSleeping, isTarget, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onRemoval, onSpawnPacket, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, onTrackedDataSet, playBlockFallSound, playSound, positionInPortal, positionInPortal, processEquippedStack, pushAway, pushAwayFrom, remove, removePowderSnowSlow, 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, shouldRenderName, shouldSwimInFluids, sleep, spawnConsumptionEffects, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickHandSwing, tickInVoid, tickItemStackUsage, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, travel, triggerItemPickedUpByEntityCriteria, tryEatFood, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUp, wouldNotSuffocateInPoseMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canSprintAsVehicle, canTeleportBetween, 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, getMinFreezeDamageTicks, getMoveEffect, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getServer, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getWorldSpawnPos, 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, 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, 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, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setAngles, setBoundingBox, setChangeListener, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, 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, teleportTo, tickPortalCooldown, tickPortalTeleportation, toNbtList, toNbtList, toString, tryCheckBlockCollision, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateVelocity, updateWaterState, writeNbtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilencedMethods inherited from interface net.minecraft.entity.EquipmentHolder
getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTableMethods inherited from interface net.minecraft.entity.Leashable
applyLeashElasticity, attachLeash, canLeashAttachTo, getLeashHolder, isLeashed, mightBeLeashed, readLeashDataFromNbt, setUnresolvedLeashHolderId, writeLeashDataToNbtMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
TRACKED_ENTITY_ID_1
- Mappings:
Namespace Name Mixin selector named TRACKED_ENTITY_ID_1Lnet/minecraft/entity/boss/WitherEntity;TRACKED_ENTITY_ID_1:Lnet/minecraft/entity/data/TrackedData;intermediary field_7088Lnet/minecraft/class_1528;field_7088:Lnet/minecraft/class_2940;official bLciu;b:Lajw;
-
TRACKED_ENTITY_ID_2
- Mappings:
Namespace Name Mixin selector named TRACKED_ENTITY_ID_2Lnet/minecraft/entity/boss/WitherEntity;TRACKED_ENTITY_ID_2:Lnet/minecraft/entity/data/TrackedData;intermediary field_7090Lnet/minecraft/class_1528;field_7090:Lnet/minecraft/class_2940;official cLciu;c:Lajw;
-
TRACKED_ENTITY_ID_3
- Mappings:
Namespace Name Mixin selector named TRACKED_ENTITY_ID_3Lnet/minecraft/entity/boss/WitherEntity;TRACKED_ENTITY_ID_3:Lnet/minecraft/entity/data/TrackedData;intermediary field_7089Lnet/minecraft/class_1528;field_7089:Lnet/minecraft/class_2940;official dLciu;d:Lajw;
-
TRACKED_ENTITY_IDS
- Mappings:
Namespace Name Mixin selector named TRACKED_ENTITY_IDSLnet/minecraft/entity/boss/WitherEntity;TRACKED_ENTITY_IDS:Ljava/util/List;intermediary field_7087Lnet/minecraft/class_1528;field_7087:Ljava/util/List;official eLciu;e:Ljava/util/List;
-
INVUL_TIMER
- Mappings:
Namespace Name Mixin selector named INVUL_TIMERLnet/minecraft/entity/boss/WitherEntity;INVUL_TIMER:Lnet/minecraft/entity/data/TrackedData;intermediary field_7085Lnet/minecraft/class_1528;field_7085:Lnet/minecraft/class_2940;official ccLciu;cc:Lajw;
-
DEFAULT_INVUL_TIMER
private static final int DEFAULT_INVUL_TIMER- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_INVUL_TIMERLnet/minecraft/entity/boss/WitherEntity;DEFAULT_INVUL_TIMER:Iintermediary field_30441Lnet/minecraft/class_1528;field_30441:Iofficial cdLciu;cd:I
-
CAN_ATTACK_PREDICATE
- Mappings:
Namespace Name Mixin selector named CAN_ATTACK_PREDICATELnet/minecraft/entity/boss/WitherEntity;CAN_ATTACK_PREDICATE:Ljava/util/function/Predicate;intermediary field_7086Lnet/minecraft/class_1528;field_7086:Ljava/util/function/Predicate;official cmLciu;cm:Ljava/util/function/Predicate;
-
HEAD_TARGET_PREDICATE
- Mappings:
Namespace Name Mixin selector named HEAD_TARGET_PREDICATELnet/minecraft/entity/boss/WitherEntity;HEAD_TARGET_PREDICATE:Lnet/minecraft/entity/ai/TargetPredicate;intermediary field_18125Lnet/minecraft/class_1528;field_18125:Lnet/minecraft/class_4051;official cnLciu;cn:Lcef;
-
sideHeadPitches
private final float[] sideHeadPitches- Mappings:
Namespace Name Mixin selector named sideHeadPitchesLnet/minecraft/entity/boss/WitherEntity;sideHeadPitches:[Fintermediary field_7084Lnet/minecraft/class_1528;field_7084:[Fofficial ceLciu;ce:[F
-
sideHeadYaws
private final float[] sideHeadYaws- Mappings:
Namespace Name Mixin selector named sideHeadYawsLnet/minecraft/entity/boss/WitherEntity;sideHeadYaws:[Fintermediary field_7083Lnet/minecraft/class_1528;field_7083:[Fofficial cfLciu;cf:[F
-
prevSideHeadPitches
private final float[] prevSideHeadPitches- Mappings:
Namespace Name Mixin selector named prevSideHeadPitchesLnet/minecraft/entity/boss/WitherEntity;prevSideHeadPitches:[Fintermediary field_7095Lnet/minecraft/class_1528;field_7095:[Fofficial cgLciu;cg:[F
-
prevSideHeadYaws
private final float[] prevSideHeadYaws- Mappings:
Namespace Name Mixin selector named prevSideHeadYawsLnet/minecraft/entity/boss/WitherEntity;prevSideHeadYaws:[Fintermediary field_7094Lnet/minecraft/class_1528;field_7094:[Fofficial chLciu;ch:[F
-
skullCooldowns
private final int[] skullCooldowns- Mappings:
Namespace Name Mixin selector named skullCooldownsLnet/minecraft/entity/boss/WitherEntity;skullCooldowns:[Iintermediary field_7091Lnet/minecraft/class_1528;field_7091:[Iofficial ciLciu;ci:[I
-
chargedSkullCooldowns
private final int[] chargedSkullCooldowns- Mappings:
Namespace Name Mixin selector named chargedSkullCooldownsLnet/minecraft/entity/boss/WitherEntity;chargedSkullCooldowns:[Iintermediary field_7092Lnet/minecraft/class_1528;field_7092:[Iofficial cjLciu;cj:[I
-
blockBreakingCooldown
private int blockBreakingCooldown- Mappings:
Namespace Name Mixin selector named blockBreakingCooldownLnet/minecraft/entity/boss/WitherEntity;blockBreakingCooldown:Iintermediary field_7082Lnet/minecraft/class_1528;field_7082:Iofficial ckLciu;ck:I
-
bossBar
- Mappings:
Namespace Name Mixin selector named bossBarLnet/minecraft/entity/boss/WitherEntity;bossBar:Lnet/minecraft/entity/boss/ServerBossBar;intermediary field_7093Lnet/minecraft/class_1528;field_7093:Lnet/minecraft/class_3213;official clLciu;cl:Laqr;
-
-
Constructor Details
-
WitherEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vofficial <init>Lbsr;<init>(Lbsx;Ldcw;)V
-
-
Method Details
-
initGoals
protected void initGoals() -
initDataTracker
Initializes data tracker.- Overrides:
initDataTrackerin 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 initDataTrackerLnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)Vintermediary method_5693Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)Vofficial aLbsr;a(Laka$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:
writeCustomDataToNbtin classMobEntity- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vofficial bLbsr;b(Lub;)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.
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 classMobEntity- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vofficial aLbsr;a(Lub;)V
-
setCustomName
Sets the custom name of the entity toname(ornullto remove the custom name).- Overrides:
setCustomNamein classEntity- Mappings:
Namespace Name Mixin selector named setCustomNameLnet/minecraft/entity/Entity;setCustomName(Lnet/minecraft/text/Text;)Vintermediary method_5665Lnet/minecraft/class_1297;method_5665(Lnet/minecraft/class_2561;)Vofficial bLbsr;b(Lwz;)V
-
getAmbientSound
- Overrides:
getAmbientSoundin classMobEntity- Mappings:
Namespace Name Mixin selector named getAmbientSoundLnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;intermediary method_5994Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;official vLbtp;v()Lavo;
-
getHurtSound
- Overrides:
getHurtSoundin classHostileEntity- Mappings:
Namespace Name Mixin selector named getHurtSoundLnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;intermediary method_6011Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;official dLbtn;d(Lbrk;)Lavo;
-
getDeathSound
- Overrides:
getDeathSoundin classHostileEntity- Mappings:
Namespace Name Mixin selector named getDeathSoundLnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;intermediary method_6002Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;official n_Lbtn;n_()Lavo;
-
tickMovement
public void tickMovement()- Overrides:
tickMovementin classHostileEntity- Mappings:
Namespace Name Mixin selector named tickMovementLnet/minecraft/entity/LivingEntity;tickMovement()Vintermediary method_6007Lnet/minecraft/class_1309;method_6007()Vofficial m_Lbtn;m_()V
-
mobTick
protected void mobTick() -
canDestroy
- Mappings:
Namespace Name Mixin selector named canDestroyLnet/minecraft/entity/boss/WitherEntity;canDestroy(Lnet/minecraft/block/BlockState;)Zintermediary method_6883Lnet/minecraft/class_1528;method_6883(Lnet/minecraft/class_2680;)Zofficial cLciu;c(Ldtc;)Z
-
onSummoned
public void onSummoned()- Mappings:
Namespace Name Mixin selector named onSummonedLnet/minecraft/entity/boss/WitherEntity;onSummoned()Vintermediary method_6885Lnet/minecraft/class_1528;method_6885()Vofficial sLciu;s()V
-
slowMovement
CallsEntity.onLanding()and slows this entity.This means that the entity will avoid taking fall damage.
- Overrides:
slowMovementin 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 slowMovementLnet/minecraft/entity/Entity;slowMovement(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Vec3d;)Vintermediary method_5844Lnet/minecraft/class_1297;method_5844(Lnet/minecraft/class_2680;Lnet/minecraft/class_243;)Vofficial aLbsr;a(Ldtc;Lexc;)V
-
onStartedTrackingBy
Called whenplayerstarts tracking this entity.Entities with boss bars like
WitherEntityshould override this to add the player to the boss bar.- Overrides:
onStartedTrackingByin classEntity- Mappings:
Namespace Name Mixin selector named onStartedTrackingByLnet/minecraft/entity/Entity;onStartedTrackingBy(Lnet/minecraft/server/network/ServerPlayerEntity;)Vintermediary method_5837Lnet/minecraft/class_1297;method_5837(Lnet/minecraft/class_3222;)Vofficial dLbsr;d(Laqv;)V
-
onStoppedTrackingBy
Called whenplayerstops tracking this entity.Entities with boss bars like
WitherEntityshould override this to remove the player from the boss bar.- Overrides:
onStoppedTrackingByin classEntity- Mappings:
Namespace Name Mixin selector named onStoppedTrackingByLnet/minecraft/entity/Entity;onStoppedTrackingBy(Lnet/minecraft/server/network/ServerPlayerEntity;)Vintermediary method_5742Lnet/minecraft/class_1297;method_5742(Lnet/minecraft/class_3222;)Vofficial eLbsr;e(Laqv;)V
-
getHeadX
private double getHeadX(int headIndex) - Mappings:
Namespace Name Mixin selector named getHeadXLnet/minecraft/entity/boss/WitherEntity;getHeadX(I)Dintermediary method_6874Lnet/minecraft/class_1528;method_6874(I)Dofficial uLciu;u(I)D
-
getHeadY
private double getHeadY(int headIndex) - Mappings:
Namespace Name Mixin selector named getHeadYLnet/minecraft/entity/boss/WitherEntity;getHeadY(I)Dintermediary method_6880Lnet/minecraft/class_1528;method_6880(I)Dofficial vLciu;v(I)D
-
getHeadZ
private double getHeadZ(int headIndex) - Mappings:
Namespace Name Mixin selector named getHeadZLnet/minecraft/entity/boss/WitherEntity;getHeadZ(I)Dintermediary method_6881Lnet/minecraft/class_1528;method_6881(I)Dofficial wLciu;w(I)D
-
getNextAngle
private float getNextAngle(float prevAngle, float desiredAngle, float maxDifference) - Mappings:
Namespace Name Mixin selector named getNextAngleLnet/minecraft/entity/boss/WitherEntity;getNextAngle(FFF)Fintermediary method_6886Lnet/minecraft/class_1528;method_6886(FFF)Fofficial aLciu;a(FFF)F
-
shootSkullAt
- Mappings:
Namespace Name Mixin selector named shootSkullAtLnet/minecraft/entity/boss/WitherEntity;shootSkullAt(ILnet/minecraft/entity/LivingEntity;)Vintermediary method_6878Lnet/minecraft/class_1528;method_6878(ILnet/minecraft/class_1309;)Vofficial aLciu;a(ILbtn;)V
-
shootSkullAt
private void shootSkullAt(int headIndex, double targetX, double targetY, double targetZ, boolean charged) - Mappings:
Namespace Name Mixin selector named shootSkullAtLnet/minecraft/entity/boss/WitherEntity;shootSkullAt(IDDDZ)Vintermediary method_6877Lnet/minecraft/class_1528;method_6877(IDDDZ)Vofficial aLciu;a(IDDDZ)V
-
shootAt
- Specified by:
shootAtin interfaceRangedAttackMob- Mappings:
Namespace Name Mixin selector named shootAtLnet/minecraft/entity/ai/RangedAttackMob;shootAt(Lnet/minecraft/entity/LivingEntity;F)Vintermediary method_7105Lnet/minecraft/class_1603;method_7105(Lnet/minecraft/class_1309;F)Vofficial aLckh;a(Lbtn;F)V
-
damage
Applies 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
LivingEntity.isInvulnerableTo(net.minecraft.entity.damage.DamageSource)and return early.- Overrides:
damagein classLivingEntity- Returns:
- whether the entity was actually damaged
- See Also:
- Mappings:
Namespace Name Mixin selector named damageLnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Zintermediary method_5643Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Zofficial aLbsr;a(Lbrk;F)Z
-
dropEquipment
- Overrides:
dropEquipmentin classMobEntity- Mappings:
Namespace Name Mixin selector named dropEquipmentLnet/minecraft/entity/LivingEntity;dropEquipment(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;Z)Vintermediary method_6099Lnet/minecraft/class_1309;method_6099(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;Z)Vofficial aLbtn;a(Laqu;Lbrk;Z)V
-
checkDespawn
public void checkDespawn()Checks whether the entity should be despawned.To despawn this entity, call
Entity.discard().- Overrides:
checkDespawnin classMobEntity- See Also:
- Mappings:
Namespace Name Mixin selector named checkDespawnLnet/minecraft/entity/Entity;checkDespawn()Vintermediary method_5982Lnet/minecraft/class_1297;method_5982()Vofficial dALbsr;dA()V
-
addStatusEffect
Adds a status effect to this entity.- Overrides:
addStatusEffectin classLivingEntity- Parameters:
effect- the effect to addsource- the source entity ornullfor 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 addStatusEffectLnet/minecraft/entity/LivingEntity;addStatusEffect(Lnet/minecraft/entity/effect/StatusEffectInstance;Lnet/minecraft/entity/Entity;)Zintermediary method_37222Lnet/minecraft/class_1309;method_37222(Lnet/minecraft/class_1293;Lnet/minecraft/class_1297;)Zofficial bLbtn;b(Lbrz;Lbsr;)Z
-
createWitherAttributes
- Mappings:
Namespace Name Mixin selector named createWitherAttributesLnet/minecraft/entity/boss/WitherEntity;createWitherAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;intermediary method_26904Lnet/minecraft/class_1528;method_26904()Lnet/minecraft/class_5132$class_5133;official tLciu;t()Lbuv$a;
-
getHeadYaw
public float getHeadYaw(int headIndex) - Mappings:
Namespace Name Mixin selector named getHeadYawLnet/minecraft/entity/boss/WitherEntity;getHeadYaw(I)Fintermediary method_6879Lnet/minecraft/class_1528;method_6879(I)Fofficial bLciu;b(I)F
-
getHeadPitch
public float getHeadPitch(int headIndex) - Mappings:
Namespace Name Mixin selector named getHeadPitchLnet/minecraft/entity/boss/WitherEntity;getHeadPitch(I)Fintermediary method_6887Lnet/minecraft/class_1528;method_6887(I)Fofficial cLciu;c(I)F
-
getInvulnerableTimer
public int getInvulnerableTimer()- Mappings:
Namespace Name Mixin selector named getInvulnerableTimerLnet/minecraft/entity/boss/WitherEntity;getInvulnerableTimer()Iintermediary method_6884Lnet/minecraft/class_1528;method_6884()Iofficial xLciu;x()I
-
setInvulTimer
public void setInvulTimer(int ticks) - Mappings:
Namespace Name Mixin selector named setInvulTimerLnet/minecraft/entity/boss/WitherEntity;setInvulTimer(I)Vintermediary method_6875Lnet/minecraft/class_1528;method_6875(I)Vofficial sLciu;s(I)V
-
getTrackedEntityId
public int getTrackedEntityId(int headIndex) - Mappings:
Namespace Name Mixin selector named getTrackedEntityIdLnet/minecraft/entity/boss/WitherEntity;getTrackedEntityId(I)Iintermediary method_6882Lnet/minecraft/class_1528;method_6882(I)Iofficial tLciu;t(I)I
-
setTrackedEntityId
public void setTrackedEntityId(int headIndex, int id) - Mappings:
Namespace Name Mixin selector named setTrackedEntityIdLnet/minecraft/entity/boss/WitherEntity;setTrackedEntityId(II)Vintermediary method_6876Lnet/minecraft/class_1528;method_6876(II)Vofficial aLciu;a(II)V
-
shouldRenderOverlay
public boolean shouldRenderOverlay()- Specified by:
shouldRenderOverlayin interfaceSkinOverlayOwner- Mappings:
Namespace Name Mixin selector named shouldRenderOverlayLnet/minecraft/entity/SkinOverlayOwner;shouldRenderOverlay()Zintermediary method_6872Lnet/minecraft/class_4582;method_6872()Zofficial aLbub;a()Z
-
canStartRiding
Returns 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 passingtruetoMobEntity.startRiding(Entity, boolean).This is the opposite of
Entity.canAddPassenger(net.minecraft.entity.Entity).- Overrides:
canStartRidingin classEntity- Returns:
- whether this entity can ride
entity - See Also:
- Mappings:
Namespace Name Mixin selector named canStartRidingLnet/minecraft/entity/Entity;canStartRiding(Lnet/minecraft/entity/Entity;)Zintermediary method_5860Lnet/minecraft/class_1297;method_5860(Lnet/minecraft/class_1297;)Zofficial oLbsr;o(Lbsr;)Z
-
canUsePortals
public boolean canUsePortals(boolean allowVehicles) Returns whether the entity can use nether portals and end portals.EnderDragonEntity,WitherEntity, andFishingBobberEntitycannot use portals.- Overrides:
canUsePortalsin classLivingEntity- Returns:
- whether the entity can use nether portals and end portals
- Mappings:
Namespace Name Mixin selector named canUsePortalsLnet/minecraft/entity/Entity;canUsePortals(Z)Zintermediary method_5822Lnet/minecraft/class_1297;method_5822(Z)Zofficial oLbsr;o(Z)Z
-
canHaveStatusEffect
- Overrides:
canHaveStatusEffectin classLivingEntity- Mappings:
Namespace Name Mixin selector named canHaveStatusEffectLnet/minecraft/entity/LivingEntity;canHaveStatusEffect(Lnet/minecraft/entity/effect/StatusEffectInstance;)Zintermediary method_6049Lnet/minecraft/class_1309;method_6049(Lnet/minecraft/class_1293;)Zofficial cLbtn;c(Lbrz;)Z