Class EnderDragonEntity
- All Implemented Interfaces:
Attackable
,DataTracked
,EquipmentHolder
,Monster
,Targeter
,ScoreHolder
,CommandOutput
,Nameable
,EntityLike
- Mappings:
Namespace Name named net/minecraft/entity/boss/dragon/EnderDragonEntity
intermediary net/minecraft/class_1510
official chy
-
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 final EnderDragonPart
private static final TargetPredicate
private float
private static final String
private static final String
private static final int
private @Nullable EnderDragonFight
private BlockPos
final EnderDragonPart
int
private final EnderDragonPart
private static final Logger
private static final int
private final EnderDragonPart
private final EnderDragonPart[]
private final PathMinHeap
private final int[]
An array of 24 bitflags, where node #i leads to #j if and only if(pathNodeConnections[i] & (1 << j)) != 0
.private final PathNode[]
The first 12 path nodes are used for end crystals; the others are not tied to them.static final TrackedData
<Integer> private final PhaseManager
float
private final EnderDragonPart
final double[][]
(yaw, y, ?)boolean
private final EnderDragonPart
private final EnderDragonPart
private final EnderDragonPart
private static final float
The damage the dragon can take before it takes off, represented as a ratio to the full health.int
private int
float
float
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, field_51997, 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_51995, 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_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, field_51994, 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, 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
ConstructorDescriptionEnderDragonEntity
(EntityType<? extends EnderDragonEntity> type, World world) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the effects of this entity flapping, usually to the world the entity is in.boolean
addStatusEffect
(StatusEffectInstance effect, @Nullable Entity source) Adds a status effect to this entity.boolean
canHit()
Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.protected boolean
canStartRiding
(Entity entity) Returns whether this entity can rideentity
.boolean
canTarget
(LivingEntity target) boolean
Returns whether the entity can use nether portals and end portals.void
Checks whether the entity should be despawned.protected float
clampScale
(float scale) void
crystalDestroyed
(EndCrystalEntity endCrystal, BlockPos pos, DamageSource source) boolean
damage
(DamageSource source, float amount) Applies a damage to this entity.private void
damageLivingEntities
(List<Entity> entities) boolean
damagePart
(EnderDragonPart part, DamageSource source, float amount) private boolean
destroyBlocks
(Box box) protected SoundEvent
float
getChangeInNeckPitch
(int segmentOffset, double[] segment1, double[] segment2) getFight()
private float
protected SoundEvent
getHurtSound
(DamageSource source) int
int
getNearestPathNodeIndex
(double x, double y, double z) private Path
getPathOfAllPredecessors
(PathNode unused, PathNode node) getRotationVectorFromPhase
(float tickDelta) double[]
getSegmentProperties
(int segmentNumber, float tickDelta) Returns the sound category for sounds from this entity.protected float
protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.boolean
Returns whether the entity is flapping their wings.void
kill()
Kills the entity.private void
launchLivingEntities
(ServerWorld world, List<Entity> entities) private void
movePart
(EnderDragonPart enderDragonPart, double dx, double dy, double dz) void
onSpawnPacket
(EntitySpawnS2CPacket packet) Called on the client when the entity receives a spawn packet.void
onTrackedDataSet
(TrackedData<?> data) protected boolean
parentDamage
(DamageSource source, float amount) void
Reads custom data fromnbt
.void
setFight
(EnderDragonFight fight) void
setFightOrigin
(BlockPos fightOrigin) void
private void
Things to do every tick related to end crystals.protected void
private float
wrapYawChange
(double yawDegrees) void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.mob.MobEntity
attachLeash, baseTick, canBeLeashedBy, canEquip, canGather, canImmediatelyDespawn, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canSpawn, canTarget, canUseRangedWeapon, canUseSlot, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, createBodyControl, createMobAttributes, createNavigation, detachLeash, dropEquipment, 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, hasPositionTarget, initEquipment, initGoals, initialize, interact, interactMob, isAffectedByDaylight, isAiDisabled, isAttacking, isDisallowedInPeaceful, isHorseArmor, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeashed, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, loot, mightBeLeashed, mobTick, movesIndependently, onEatingGrass, onFinishPathfinding, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playAttackSound, 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, updateLeash
Methods inherited from class net.minecraft.entity.LivingEntity
addPowderSnowSlowIfNeeded, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyFluidMovingSpeed, applyMovementEffects, applyMovementInput, areItemsDifferent, attackLivingEntity, blockedByShield, canBreatheInWater, canFreeze, canHaveStatusEffect, canSee, canTakeDamage, canWalkOnFluid, 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, getDeathSound, getDespawnCounter, getDimensions, getDrinkSound, getEatSound, getEquippedItems, getFallFlyingTicks, getFallSounds, 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, getProjectileType, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getVisibilityBoundingBox, 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, knockback, knockDownwards, lerpHeadYaw, lookAt, markEffectsDirty, method_60699, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, 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, shouldDropLoot, shouldDropXp, 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, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUp, wouldNotSuffocateInPose
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addPassenger, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, 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, 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, getSplashSound, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, 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, 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, method_60697, method_60698, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setAngles, setBoundingBox, setChangeListener, setCustomName, 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, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, 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
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;LOGGER:Lorg/slf4j/Logger;
intermediary field_7021
Lnet/minecraft/class_1510;field_7021:Lorg/slf4j/Logger;
official cf
Lchy;cf:Lorg/slf4j/Logger;
-
PHASE_TYPE
- Mappings:
Namespace Name Mixin selector named PHASE_TYPE
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;PHASE_TYPE:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7013
Lnet/minecraft/class_1510;field_7013:Lnet/minecraft/class_2940;
official b
Lchy;b:Lajv;
-
CLOSE_PLAYER_PREDICATE
- Mappings:
Namespace Name Mixin selector named CLOSE_PLAYER_PREDICATE
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;CLOSE_PLAYER_PREDICATE:Lnet/minecraft/entity/ai/TargetPredicate;
intermediary field_18120
Lnet/minecraft/class_1510;field_18120:Lnet/minecraft/class_4051;
official cg
Lchy;cg:Lced;
-
MAX_HEALTH
private static final int MAX_HEALTH- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_HEALTH
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;MAX_HEALTH:I
intermediary field_30428
Lnet/minecraft/class_1510;field_30428:I
official ch
Lchy;ch:I
-
field_30429
private static final int field_30429- See Also:
- Mappings:
Namespace Name Mixin selector named field_30429
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;field_30429:I
intermediary field_30429
Lnet/minecraft/class_1510;field_30429:I
official ci
Lchy;ci:I
-
TAKEOFF_THRESHOLD
private static final float TAKEOFF_THRESHOLDThe damage the dragon can take before it takes off, represented as a ratio to the full health.- See Also:
- Mappings:
Namespace Name Mixin selector named TAKEOFF_THRESHOLD
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;TAKEOFF_THRESHOLD:F
intermediary field_30430
Lnet/minecraft/class_1510;field_30430:F
official cj
Lchy;cj:F
-
DRAGON_DEATH_TIME_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named DRAGON_DEATH_TIME_KEY
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;DRAGON_DEATH_TIME_KEY:Ljava/lang/String;
intermediary field_33910
Lnet/minecraft/class_1510;field_33910:Ljava/lang/String;
official ck
Lchy;ck:Ljava/lang/String;
-
DRAGON_PHASE_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named DRAGON_PHASE_KEY
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;DRAGON_PHASE_KEY:Ljava/lang/String;
intermediary field_33911
Lnet/minecraft/class_1510;field_33911:Ljava/lang/String;
official cl
Lchy;cl:Ljava/lang/String;
-
segmentCircularBuffer
public final double[][] segmentCircularBuffer(yaw, y, ?)- Mappings:
Namespace Name Mixin selector named segmentCircularBuffer
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;segmentCircularBuffer:[[D
intermediary field_7026
Lnet/minecraft/class_1510;field_7026:[[D
official c
Lchy;c:[[D
-
latestSegment
public int latestSegment- Mappings:
Namespace Name Mixin selector named latestSegment
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;latestSegment:I
intermediary field_7010
Lnet/minecraft/class_1510;field_7010:I
official d
Lchy;d:I
-
parts
- Mappings:
Namespace Name Mixin selector named parts
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;parts:[Lnet/minecraft/entity/boss/dragon/EnderDragonPart;
intermediary field_7032
Lnet/minecraft/class_1510;field_7032:[Lnet/minecraft/class_1508;
official cm
Lchy;cm:[Lchw;
-
head
- Mappings:
Namespace Name Mixin selector named head
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;head:Lnet/minecraft/entity/boss/dragon/EnderDragonPart;
intermediary field_7017
Lnet/minecraft/class_1510;field_7017:Lnet/minecraft/class_1508;
official e
Lchy;e:Lchw;
-
neck
- Mappings:
Namespace Name Mixin selector named neck
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;neck:Lnet/minecraft/entity/boss/dragon/EnderDragonPart;
intermediary field_7011
Lnet/minecraft/class_1510;field_7011:Lnet/minecraft/class_1508;
official cn
Lchy;cn:Lchw;
-
body
- Mappings:
Namespace Name Mixin selector named body
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;body:Lnet/minecraft/entity/boss/dragon/EnderDragonPart;
intermediary field_7023
Lnet/minecraft/class_1510;field_7023:Lnet/minecraft/class_1508;
official co
Lchy;co:Lchw;
-
tail1
- Mappings:
Namespace Name Mixin selector named tail1
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;tail1:Lnet/minecraft/entity/boss/dragon/EnderDragonPart;
intermediary field_7020
Lnet/minecraft/class_1510;field_7020:Lnet/minecraft/class_1508;
official cp
Lchy;cp:Lchw;
-
tail2
- Mappings:
Namespace Name Mixin selector named tail2
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;tail2:Lnet/minecraft/entity/boss/dragon/EnderDragonPart;
intermediary field_7009
Lnet/minecraft/class_1510;field_7009:Lnet/minecraft/class_1508;
official cq
Lchy;cq:Lchw;
-
tail3
- Mappings:
Namespace Name Mixin selector named tail3
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;tail3:Lnet/minecraft/entity/boss/dragon/EnderDragonPart;
intermediary field_7022
Lnet/minecraft/class_1510;field_7022:Lnet/minecraft/class_1508;
official cr
Lchy;cr:Lchw;
-
rightWing
- Mappings:
Namespace Name Mixin selector named rightWing
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;rightWing:Lnet/minecraft/entity/boss/dragon/EnderDragonPart;
intermediary field_7015
Lnet/minecraft/class_1510;field_7015:Lnet/minecraft/class_1508;
official cs
Lchy;cs:Lchw;
-
leftWing
- Mappings:
Namespace Name Mixin selector named leftWing
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;leftWing:Lnet/minecraft/entity/boss/dragon/EnderDragonPart;
intermediary field_7014
Lnet/minecraft/class_1510;field_7014:Lnet/minecraft/class_1508;
official ct
Lchy;ct:Lchw;
-
prevWingPosition
public float prevWingPosition- Mappings:
Namespace Name Mixin selector named prevWingPosition
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;prevWingPosition:F
intermediary field_7019
Lnet/minecraft/class_1510;field_7019:F
official bZ
Lchy;bZ:F
-
wingPosition
public float wingPosition- Mappings:
Namespace Name Mixin selector named wingPosition
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;wingPosition:F
intermediary field_7030
Lnet/minecraft/class_1510;field_7030:F
official ca
Lchy;ca:F
-
slowedDownByBlock
public boolean slowedDownByBlock- Mappings:
Namespace Name Mixin selector named slowedDownByBlock
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;slowedDownByBlock:Z
intermediary field_7027
Lnet/minecraft/class_1510;field_7027:Z
official cb
Lchy;cb:Z
-
ticksSinceDeath
public int ticksSinceDeath- Mappings:
Namespace Name Mixin selector named ticksSinceDeath
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;ticksSinceDeath:I
intermediary field_7031
Lnet/minecraft/class_1510;field_7031:I
official cc
Lchy;cc:I
-
yawAcceleration
public float yawAcceleration- Mappings:
Namespace Name Mixin selector named yawAcceleration
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;yawAcceleration:F
intermediary field_20865
Lnet/minecraft/class_1510;field_20865:F
official cd
Lchy;cd:F
-
connectedCrystal
- Mappings:
Namespace Name Mixin selector named connectedCrystal
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;connectedCrystal:Lnet/minecraft/entity/decoration/EndCrystalEntity;
intermediary field_7024
Lnet/minecraft/class_1510;field_7024:Lnet/minecraft/class_1511;
official ce
Lchy;ce:Lchx;
-
fight
- Mappings:
Namespace Name Mixin selector named fight
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;fight:Lnet/minecraft/entity/boss/dragon/EnderDragonFight;
intermediary field_7016
Lnet/minecraft/class_1510;field_7016:Lnet/minecraft/class_2881;
official cu
Lchy;cu:Ldwy;
-
fightOrigin
- Mappings:
Namespace Name Mixin selector named fightOrigin
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;fightOrigin:Lnet/minecraft/util/math/BlockPos;
intermediary field_44875
Lnet/minecraft/class_1510;field_44875:Lnet/minecraft/class_2338;
official cv
Lchy;cv:Ljd;
-
phaseManager
- Mappings:
Namespace Name Mixin selector named phaseManager
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;phaseManager:Lnet/minecraft/entity/boss/dragon/phase/PhaseManager;
intermediary field_7028
Lnet/minecraft/class_1510;field_7028:Lnet/minecraft/class_1526;
official cw
Lchy;cw:Lcip;
-
ticksUntilNextGrowl
private int ticksUntilNextGrowl- Mappings:
Namespace Name Mixin selector named ticksUntilNextGrowl
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;ticksUntilNextGrowl:I
intermediary field_7018
Lnet/minecraft/class_1510;field_7018:I
official cx
Lchy;cx:I
-
damageDuringSitting
private float damageDuringSitting- Mappings:
Namespace Name Mixin selector named damageDuringSitting
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;damageDuringSitting:F
intermediary field_7029
Lnet/minecraft/class_1510;field_7029:F
official cy
Lchy;cy:F
-
pathNodes
The first 12 path nodes are used for end crystals; the others are not tied to them.- Mappings:
Namespace Name Mixin selector named pathNodes
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;pathNodes:[Lnet/minecraft/entity/ai/pathing/PathNode;
intermediary field_7012
Lnet/minecraft/class_1510;field_7012:[Lnet/minecraft/class_9;
official cz
Lchy;cz:[Lepk;
-
pathNodeConnections
private final int[] pathNodeConnectionsAn array of 24 bitflags, where node #i leads to #j if and only if(pathNodeConnections[i] & (1 << j)) != 0
.- Mappings:
Namespace Name Mixin selector named pathNodeConnections
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;pathNodeConnections:[I
intermediary field_7025
Lnet/minecraft/class_1510;field_7025:[I
official cB
Lchy;cB:[I
-
pathHeap
- Mappings:
Namespace Name Mixin selector named pathHeap
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;pathHeap:Lnet/minecraft/entity/ai/pathing/PathMinHeap;
intermediary field_7008
Lnet/minecraft/class_1510;field_7008:Lnet/minecraft/class_5;
official cC
Lchy;cC:Lepi;
-
-
Constructor Details
-
EnderDragonEntity
- 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>
Lbsq;<init>(Lbsw;Ldcu;)V
-
-
Method Details
-
setFight
- Mappings:
Namespace Name Mixin selector named setFight
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;setFight(Lnet/minecraft/entity/boss/dragon/EnderDragonFight;)V
intermediary method_51852
Lnet/minecraft/class_1510;method_51852(Lnet/minecraft/class_2881;)V
official a
Lchy;a(Ldwy;)V
-
setFightOrigin
- Mappings:
Namespace Name Mixin selector named setFightOrigin
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;setFightOrigin(Lnet/minecraft/util/math/BlockPos;)V
intermediary method_51853
Lnet/minecraft/class_1510;method_51853(Lnet/minecraft/class_2338;)V
official c
Lchy;c(Ljd;)V
-
getFightOrigin
- Mappings:
Namespace Name Mixin selector named getFightOrigin
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;getFightOrigin()Lnet/minecraft/util/math/BlockPos;
intermediary method_51854
Lnet/minecraft/class_1510;method_51854()Lnet/minecraft/class_2338;
official s
Lchy;s()Ljd;
-
createEnderDragonAttributes
- Mappings:
Namespace Name Mixin selector named createEnderDragonAttributes
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;createEnderDragonAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
intermediary method_26903
Lnet/minecraft/class_1510;method_26903()Lnet/minecraft/class_5132$class_5133;
official t
Lchy;t()Lbut$a;
-
isFlappingWings
public boolean isFlappingWings()Returns whether the entity is flapping their wings.Entities flapping their wings will call
addFlapEffects()
insideEntity.addAirTravelEffects()
.- Overrides:
isFlappingWings
in classEntity
- Returns:
- whether the entity is flapping their wings
- Mappings:
Namespace Name Mixin selector named isFlappingWings
Lnet/minecraft/entity/Entity;isFlappingWings()Z
intermediary method_5776
Lnet/minecraft/class_1297;method_5776()Z
official aW
Lbsq;aW()Z
-
addFlapEffects
public void addFlapEffects()Adds the effects of this entity flapping, usually to the world the entity is in.The actual flapping logic should be done in
MobEntity.tick()
instead.This is only called when the entity is flapping wings and the entity has any move effect, from
Entity.addAirTravelEffects()
.- Overrides:
addFlapEffects
in classEntity
- Mappings:
Namespace Name Mixin selector named addFlapEffects
Lnet/minecraft/entity/Entity;addFlapEffects()V
intermediary method_5801
Lnet/minecraft/class_1297;method_5801()V
official aV
Lbsq;aV()V
-
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
Lbsq;a(Lajz$a;)V
-
getSegmentProperties
public double[] getSegmentProperties(int segmentNumber, float tickDelta) - Mappings:
Namespace Name Mixin selector named getSegmentProperties
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;getSegmentProperties(IF)[D
intermediary method_6817
Lnet/minecraft/class_1510;method_6817(IF)[D
official a
Lchy;a(IF)[D
-
tickMovement
public void tickMovement()- Overrides:
tickMovement
in classMobEntity
- Mappings:
Namespace Name Mixin selector named tickMovement
Lnet/minecraft/entity/LivingEntity;tickMovement()V
intermediary method_6007
Lnet/minecraft/class_1309;method_6007()V
official m_
Lbtl;m_()V
-
movePart
- Mappings:
Namespace Name Mixin selector named movePart
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;movePart(Lnet/minecraft/entity/boss/dragon/EnderDragonPart;DDD)V
intermediary method_22863
Lnet/minecraft/class_1510;method_22863(Lnet/minecraft/class_1508;DDD)V
official a
Lchy;a(Lchw;DDD)V
-
getHeadVerticalMovement
private float getHeadVerticalMovement()- Mappings:
Namespace Name Mixin selector named getHeadVerticalMovement
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;getHeadVerticalMovement()F
intermediary method_6820
Lnet/minecraft/class_1510;method_6820()F
official gl
Lchy;gl()F
-
tickWithEndCrystals
private void tickWithEndCrystals()Things to do every tick related to end crystals. The Ender Dragon: * Disconnects from its crystal if it is removed * If it is connected to a crystal, then heals every 10 ticks * With a 1 in 10 chance each tick, searches for the nearest crystal and connects to it if present- Mappings:
Namespace Name Mixin selector named tickWithEndCrystals
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;tickWithEndCrystals()V
intermediary method_6830
Lnet/minecraft/class_1510;method_6830()V
official gm
Lchy;gm()V
-
launchLivingEntities
- Mappings:
Namespace Name Mixin selector named launchLivingEntities
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;launchLivingEntities(Lnet/minecraft/server/world/ServerWorld;Ljava/util/List;)V
intermediary method_6825
Lnet/minecraft/class_1510;method_6825(Lnet/minecraft/class_3218;Ljava/util/List;)V
official a
Lchy;a(Laqt;Ljava/util/List;)V
-
damageLivingEntities
- Mappings:
Namespace Name Mixin selector named damageLivingEntities
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;damageLivingEntities(Ljava/util/List;)V
intermediary method_6827
Lnet/minecraft/class_1510;method_6827(Ljava/util/List;)V
official b
Lchy;b(Ljava/util/List;)V
-
wrapYawChange
private float wrapYawChange(double yawDegrees) - Mappings:
Namespace Name Mixin selector named wrapYawChange
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;wrapYawChange(D)F
intermediary method_6832
Lnet/minecraft/class_1510;method_6832(D)F
official i
Lchy;i(D)F
-
destroyBlocks
- Mappings:
Namespace Name Mixin selector named destroyBlocks
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;destroyBlocks(Lnet/minecraft/util/math/Box;)Z
intermediary method_6821
Lnet/minecraft/class_1510;method_6821(Lnet/minecraft/class_238;)Z
official b
Lchy;b(Lewr;)Z
-
damagePart
- Mappings:
Namespace Name Mixin selector named damagePart
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;damagePart(Lnet/minecraft/entity/boss/dragon/EnderDragonPart;Lnet/minecraft/entity/damage/DamageSource;F)Z
intermediary method_6816
Lnet/minecraft/class_1510;method_6816(Lnet/minecraft/class_1508;Lnet/minecraft/class_1282;F)Z
official a
Lchy;a(Lchw;Lbrj;F)Z
-
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
LivingEntity.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
Lbsq;a(Lbrj;F)Z
-
parentDamage
- Mappings:
Namespace Name Mixin selector named parentDamage
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;parentDamage(Lnet/minecraft/entity/damage/DamageSource;F)Z
intermediary method_6819
Lnet/minecraft/class_1510;method_6819(Lnet/minecraft/class_1282;F)Z
official g
Lchy;g(Lbrj;F)Z
-
kill
public void kill()Kills the entity.This drops loot when applicable, and emits the
invalid reference
GameEvent#ENTITY_DIE
- Overrides:
kill
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named kill
Lnet/minecraft/entity/Entity;kill()V
intermediary method_5768
Lnet/minecraft/class_1297;method_5768()V
official ap
Lbsq;ap()V
-
updatePostDeath
protected void updatePostDeath()- Overrides:
updatePostDeath
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named updatePostDeath
Lnet/minecraft/entity/LivingEntity;updatePostDeath()V
intermediary method_6108
Lnet/minecraft/class_1309;method_6108()V
official ee
Lbtl;ee()V
-
getNearestPathNodeIndex
public int getNearestPathNodeIndex()- Mappings:
Namespace Name Mixin selector named getNearestPathNodeIndex
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;getNearestPathNodeIndex()I
intermediary method_6818
Lnet/minecraft/class_1510;method_6818()I
official x
Lchy;x()I
-
getNearestPathNodeIndex
public int getNearestPathNodeIndex(double x, double y, double z) - Mappings:
Namespace Name Mixin selector named getNearestPathNodeIndex
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;getNearestPathNodeIndex(DDD)I
intermediary method_6822
Lnet/minecraft/class_1510;method_6822(DDD)I
official q
Lchy;q(DDD)I
-
findPath
- Mappings:
Namespace Name Mixin selector named findPath
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;findPath(IILnet/minecraft/entity/ai/pathing/PathNode;)Lnet/minecraft/entity/ai/pathing/Path;
intermediary method_6833
Lnet/minecraft/class_1510;method_6833(IILnet/minecraft/class_9;)Lnet/minecraft/class_11;
official a
Lchy;a(IILepk;)Lepm;
-
getPathOfAllPredecessors
- Mappings:
Namespace Name Mixin selector named getPathOfAllPredecessors
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;getPathOfAllPredecessors(Lnet/minecraft/entity/ai/pathing/PathNode;Lnet/minecraft/entity/ai/pathing/PathNode;)Lnet/minecraft/entity/ai/pathing/Path;
intermediary method_6826
Lnet/minecraft/class_1510;method_6826(Lnet/minecraft/class_9;Lnet/minecraft/class_9;)Lnet/minecraft/class_11;
official a
Lchy;a(Lepk;Lepk;)Lepm;
-
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
Lbsq;b(Lua;)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
Lbsq;a(Lua;)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 dC
Lbsq;dC()V
-
getBodyParts
- Mappings:
Namespace Name Mixin selector named getBodyParts
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;getBodyParts()[Lnet/minecraft/entity/boss/dragon/EnderDragonPart;
intermediary method_5690
Lnet/minecraft/class_1510;method_5690()[Lnet/minecraft/class_1508;
official gi
Lchy;gi()[Lchw;
-
canHit
public boolean canHit()Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.- Overrides:
canHit
in classLivingEntity
- Returns:
- whether the entity can be hit with a projectile or be targeted by the player crosshair
- Mappings:
Namespace Name Mixin selector named canHit
Lnet/minecraft/entity/Entity;canHit()Z
intermediary method_5863
Lnet/minecraft/class_1297;method_5863()Z
official bA
Lbsq;bA()Z
-
getSoundCategory
Returns the sound category for sounds from this entity.This is used by
Entity.playSound(SoundEvent, float, float)
and defaults toSoundCategory.NEUTRAL
. Hostile entities should override this to returnSoundCategory.HOSTILE
.- Overrides:
getSoundCategory
in classEntity
- Returns:
- the sound category for sounds from this entity
- See Also:
- Mappings:
Namespace Name Mixin selector named getSoundCategory
Lnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;
intermediary method_5634
Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;
official df
Lbsq;df()Lavp;
-
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
Lbtn;v()Lavn;
-
getHurtSound
- Overrides:
getHurtSound
in classLivingEntity
- 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
Lbtl;d(Lbrj;)Lavn;
-
getSoundVolume
protected float getSoundVolume()- Overrides:
getSoundVolume
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getSoundVolume
Lnet/minecraft/entity/LivingEntity;getSoundVolume()F
intermediary method_6107
Lnet/minecraft/class_1309;method_6107()F
official fb
Lbtl;fb()F
-
getChangeInNeckPitch
public float getChangeInNeckPitch(int segmentOffset, double[] segment1, double[] segment2) - Mappings:
Namespace Name Mixin selector named getChangeInNeckPitch
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;getChangeInNeckPitch(I[D[D)F
intermediary method_6823
Lnet/minecraft/class_1510;method_6823(I[D[D)F
official a
Lchy;a(I[D[D)F
-
getRotationVectorFromPhase
- Mappings:
Namespace Name Mixin selector named getRotationVectorFromPhase
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;getRotationVectorFromPhase(F)Lnet/minecraft/util/math/Vec3d;
intermediary method_6834
Lnet/minecraft/class_1510;method_6834(F)Lnet/minecraft/class_243;
official G
Lchy;G(F)Leww;
-
crystalDestroyed
- Mappings:
Namespace Name Mixin selector named crystalDestroyed
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;crystalDestroyed(Lnet/minecraft/entity/decoration/EndCrystalEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/damage/DamageSource;)V
intermediary method_6828
Lnet/minecraft/class_1510;method_6828(Lnet/minecraft/class_1511;Lnet/minecraft/class_2338;Lnet/minecraft/class_1282;)V
official a
Lchy;a(Lchx;Ljd;Lbrj;)V
-
onTrackedDataSet
- Specified by:
onTrackedDataSet
in interfaceDataTracked
- Overrides:
onTrackedDataSet
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named onTrackedDataSet
Lnet/minecraft/entity/data/DataTracked;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
intermediary method_5674
Lnet/minecraft/class_9221;method_5674(Lnet/minecraft/class_2940;)V
official a
Lajy;a(Lajv;)V
-
getPhaseManager
- Mappings:
Namespace Name Mixin selector named getPhaseManager
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;getPhaseManager()Lnet/minecraft/entity/boss/dragon/phase/PhaseManager;
intermediary method_6831
Lnet/minecraft/class_1510;method_6831()Lnet/minecraft/class_1526;
official gj
Lchy;gj()Lcip;
-
getFight
- Mappings:
Namespace Name Mixin selector named getFight
Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;getFight()Lnet/minecraft/entity/boss/dragon/EnderDragonFight;
intermediary method_6829
Lnet/minecraft/class_1510;method_6829()Lnet/minecraft/class_2881;
official gk
Lchy;gk()Ldwy;
-
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
Lbtl;b(Lbry;Lbsq;)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
Lbsq;o(Lbsq;)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 cx
Lbsq;cx()Z
-
onSpawnPacket
Called on the client when the entity receives a spawn packet.This sets the entity's position, angles, ID, and UUID. Subclasses can override this to initialize additional fields.
- Overrides:
onSpawnPacket
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named onSpawnPacket
Lnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)V
intermediary method_31471
Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)V
official a
Lbsq;a(Labu;)V
-
canTarget
- Overrides:
canTarget
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named canTarget
Lnet/minecraft/entity/LivingEntity;canTarget(Lnet/minecraft/entity/LivingEntity;)Z
intermediary method_18395
Lnet/minecraft/class_1309;method_18395(Lnet/minecraft/class_1309;)Z
official c
Lbtl;c(Lbtl;)Z
-
clampScale
protected float clampScale(float scale) - Overrides:
clampScale
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named clampScale
Lnet/minecraft/entity/LivingEntity;clampScale(F)F
intermediary method_56077
Lnet/minecraft/class_1309;method_56077(F)F
official b
Lbtl;b(F)F
-