Class EnderDragonEntity
- All Implemented Interfaces:
Attackable,DataTracked,EquipmentHolder,Leashable,Monster,Targeter,ScoreHolder,Nameable,EntityLike
- Mappings:
Namespace Name named net/minecraft/entity/boss/dragon/EnderDragonEntityintermediary net/minecraft/class_1510official cjw
-
Nested Class Summary
Nested 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 final EnderDragonPartprivate static final TargetPredicateprivate floatprivate static final Stringprivate static final Stringprivate static final intprivate @Nullable EnderDragonFightprivate BlockPosfinal EnderDragonFrameTrackerfinal EnderDragonPartprivate final EnderDragonPartprivate static final Loggerprivate static final intprivate final EnderDragonPartprivate final EnderDragonPart[]private final PathMinHeapprivate 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 PhaseManagerfloatprivate final EnderDragonPartbooleanprivate final EnderDragonPartprivate final EnderDragonPartprivate final EnderDragonPartprivate static final floatThe damage the dragon can take before it takes off, represented as a ratio to the full health.intprivate intfloatfloatFields 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_EXPERIENCE_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, elytraFlightController, EQUIPMENT_SLOT_ID, field_30069, field_30070, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, field_6215, forwardSpeed, glidingTicks, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, limbAnimator, LIVING_FLAGS, lookDirection, maxHurtTime, NOT_WEARING_GAZE_DISGUISE_PREDICATE, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevScale, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideAttackDamage, riptideStack, riptideTicks, 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, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, ID_KEY, 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, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnowFields inherited from interface net.minecraft.entity.Leashable
LEASH_NBT_KEY, MAX_LEASH_LENGTH, SHORT_LEASH_LENGTHFields inherited from interface net.minecraft.entity.mob.Monster
NORMAL_MONSTER_EXPERIENCE, SMALL_MONSTER_EXPERIENCE, STRONG_MONSTER_EXPERIENCE, STRONGER_MONSTER_EXPERIENCE, WITHER_EXPERIENCE, ZERO_EXPERIENCEFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
ConstructorsConstructorDescriptionEnderDragonEntity(EntityType<? extends EnderDragonEntity> type, World world) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the effects of this entity flapping, usually to the world the entity is in.booleanaddStatusEffect(StatusEffectInstance effect, @Nullable Entity source) Adds a status effect to this entity.booleancanHit()Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.protected booleancanStartRiding(Entity entity) Returns whether this entity can rideentity.booleancanTarget(LivingEntity target) booleancanUsePortals(boolean allowVehicles) Returns whether the entity can use nether portals and end portals.voidChecks whether the entity should be despawned.protected floatclampScale(float scale) voidcrystalDestroyed(ServerWorld world, EndCrystalEntity crystal, BlockPos pos, DamageSource source) booleandamage(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.private voiddamageLivingEntities(ServerWorld world, List<Entity> entities) booleandamagePart(ServerWorld world, EnderDragonPart part, DamageSource source, float amount) private booleandestroyBlocks(ServerWorld world, Box box) protected SoundEventgetFight()private floatprotected SoundEventgetHurtSound(DamageSource source) intintgetNearestPathNodeIndex(double x, double y, double z) private PathgetPathOfAllPredecessors(PathNode unused, PathNode node) getRotationVectorFromPhase(float tickDelta) Returns the sound category for sounds from this entity.protected floatprotected voidinitDataTracker(DataTracker.Builder builder) Initializes data tracker.booleanReturns whether the entity is flapping their wings.voidkill(ServerWorld world) Kills the entity.private voidlaunchLivingEntities(ServerWorld world, List<Entity> entities) private voidmovePart(EnderDragonPart enderDragonPart, double dx, double dy, double dz) voidonSpawnPacket(EntitySpawnS2CPacket packet) Called on the client when the entity receives a spawn packet.voidonTrackedDataSet(TrackedData<?> data) Called on the client when the tracked data is set.protected voidparentDamage(ServerWorld world, DamageSource source, float amount) voidReads custom data fromnbt.voidsetFight(EnderDragonFight fight) voidsetFightOrigin(BlockPos fightOrigin) voidprivate voidThings to do every tick related to end crystals.protected voidprivate floatwrapYawChange(double yawDegrees) voidWrites custom data tonbt.Methods inherited from class net.minecraft.entity.mob.MobEntity
baseTick, breakLongLeash, canBeLeashed, canDispenserEquipSlot, canGather, canImmediatelyDespawn, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canSpawn, canTarget, canUseRangedWeapon, canUseSlot, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, convertTo, createBodyControl, createMobAttributes, createNavigation, dropAllEquipment, dropEquipment, dropEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipBodyArmor, equipLootStack, equipStack, getAllArmorItems, getArmorDropChances, getArmorItems, getAttackBox, getBodyArmor, getControllingPassenger, getDropChance, getEquipmentForSlot, getEquippedStack, getExperienceToDrop, getHandDropChances, getHandItems, getItemPickUpRangeExpander, getJumpControl, getLeashData, getLimitPerChunk, getLookControl, getLootTableKey, getLootTableSeed, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMinAmbientSoundDelay, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getPreferredWeapons, getSafeFallDistance, getTarget, getTargetInBrain, getVisibilityCache, handleStatus, hasPositionTarget, initEquipment, initGoals, initialize, interact, interactMob, isAffectedByDaylight, isAiDisabled, isAttacking, isDisallowedInPeaceful, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, loot, mobTick, movesIndependently, onEatingGrass, onFinishPathfinding, onLeashRemoved, 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, updateAttribute, updateDropChances, updateEnchantments, updateGoalControlsMethods inherited from class net.minecraft.entity.LivingEntity
addDeathParticles, addPowderSnowSlowIfNeeded, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyFluidMovingSpeed, applyMovementEffects, areItemsDifferent, attackLivingEntity, becomeAngry, blockedByShield, canBeNameTagged, canBreatheInWater, canEquip, canEquipFromDispenser, canFreeze, canGlide, canGlideWith, canHaveStatusEffect, canSee, canSee, canTakeDamage, canWalkOnFluid, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, damageArmor, damageEquipment, damageHelmet, damageShield, deserializeBrain, disableExperienceDropping, disablesShield, drop, dropExperience, dropInventory, endCombat, enterCombat, fall, forEachGeneratedItem, forEachGiftedItem, forEachShearedItem, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseDimensions, getBaseWaterMovementSpeedMultiplier, getBlockingItem, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageTiltYaw, getDamageTracker, getDeathSound, getDespawnCounter, getDimensions, getEffectiveGravity, getEquippedItems, getExperienceToDrop, getFallSounds, getGlidingTicks, 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, getPlayerHitTimer, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getProjectileType, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getStackInArm, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getWeaponStack, getYaw, giveOrDropStack, handleFallDamage, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBaby, isBlocking, isClimbing, isDead, isEntityLookingAtMe, isExperienceDroppingDisabled, isGliding, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInCreativeMode, isInsideWall, isInSwimmingPose, isInvulnerableTo, isMobOrPlayer, isPartOfGame, isPushable, isSleeping, isUsingItem, isUsingRiptide, jump, knockback, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onRemoval, onStatusEffectApplied, onStatusEffectsRemoved, onStatusEffectUpgraded, playBlockFallSound, playSound, positionInPortal, positionInPortal, processEquippedStack, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeStatusEffect, removeStatusEffectInternal, resetLerp, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAbsorptionAmountUnclamped, setAttacker, setAttacking, setAttackingPlayer, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setOnFireForTicks, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropExperience, shouldDropExperience, shouldDropLoot, shouldRenderName, shouldSwimInFluids, sleep, spawnItemParticles, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickGliding, tickHandSwing, tickInVoid, tickItemStackUsage, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, travel, triggerItemPickedUpByEntityCriteria, updateLimbs, updateLimbs, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUp, wouldNotSuffocateInPoseMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canSprintAsVehicle, canTeleportBetween, changeLookDirection, clientDamage, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyX, getBodyY, getBodyZ, 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, getLastRenderPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getMaxAir, getMinFreezeDamageTicks, getMoveEffect, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengersDeep, 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, getWorldSpawnPos, getX, getY, getYaw, getZ, handleAttack, handleFall, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasVehicle, interactAt, isAlwaysInvulnerableTo, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFrozen, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLocalPlayerOrLogicalSideForUpdatingMovement, 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, movementInputToVelocity, occludeVibrationSignals, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, populateCrashReport, pushOutOfBlocks, queueBlockCollisionCheck, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveNbt, saveSelfNbt, scheduleVelocityUpdate, serverDamage, setAir, setAngles, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, setInPowderSnow, setInvisible, setInvulnerable, setMovement, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setPrevPositionAndAngles, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportTo, tickBlockCollision, tickBlockCollision, tickPortalCooldown, tickPortalTeleportation, toNbtList, toNbtList, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updatePrevAngles, updatePrevPosition, 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.entity.EquipmentHolder
getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTableMethods inherited from interface net.minecraft.entity.Leashable
applyLeashElasticity, attachLeash, beforeLeashTick, canLeashAttachTo, detachLeash, detachLeashWithoutDrop, getLeashHolder, isLeashed, mightBeLeashed, onShortLeashTick, readLeashDataFromNbt, setUnresolvedLeashHolderId, writeLeashDataToNbtMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/entity/boss/dragon/EnderDragonEntity;LOGGER:Lorg/slf4j/Logger;intermediary field_7021Lnet/minecraft/class_1510;field_7021:Lorg/slf4j/Logger;official ccLcjw;cc:Lorg/slf4j/Logger;
-
PHASE_TYPE
- Mappings:
Namespace Name Mixin selector named PHASE_TYPELnet/minecraft/entity/boss/dragon/EnderDragonEntity;PHASE_TYPE:Lnet/minecraft/entity/data/TrackedData;intermediary field_7013Lnet/minecraft/class_1510;field_7013:Lnet/minecraft/class_2940;official aLcjw;a:Lajy;
-
CLOSE_PLAYER_PREDICATE
- Mappings:
Namespace Name Mixin selector named CLOSE_PLAYER_PREDICATELnet/minecraft/entity/boss/dragon/EnderDragonEntity;CLOSE_PLAYER_PREDICATE:Lnet/minecraft/entity/ai/TargetPredicate;intermediary field_18120Lnet/minecraft/class_1510;field_18120:Lnet/minecraft/class_4051;official cdLcjw;cd:Lcfz;
-
MAX_HEALTH
private static final int MAX_HEALTH- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_HEALTHLnet/minecraft/entity/boss/dragon/EnderDragonEntity;MAX_HEALTH:Iintermediary field_30428Lnet/minecraft/class_1510;field_30428:Iofficial ceLcjw;ce:I
-
field_30429
private static final int field_30429- See Also:
- Mappings:
Namespace Name Mixin selector named field_30429Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;field_30429:Iintermediary field_30429Lnet/minecraft/class_1510;field_30429:Iofficial cfLcjw;cf: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_THRESHOLDLnet/minecraft/entity/boss/dragon/EnderDragonEntity;TAKEOFF_THRESHOLD:Fintermediary field_30430Lnet/minecraft/class_1510;field_30430:Fofficial cgLcjw;cg:F
-
DRAGON_DEATH_TIME_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named DRAGON_DEATH_TIME_KEYLnet/minecraft/entity/boss/dragon/EnderDragonEntity;DRAGON_DEATH_TIME_KEY:Ljava/lang/String;intermediary field_33910Lnet/minecraft/class_1510;field_33910:Ljava/lang/String;official chLcjw;ch:Ljava/lang/String;
-
DRAGON_PHASE_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named DRAGON_PHASE_KEYLnet/minecraft/entity/boss/dragon/EnderDragonEntity;DRAGON_PHASE_KEY:Ljava/lang/String;intermediary field_33911Lnet/minecraft/class_1510;field_33911:Ljava/lang/String;official ciLcjw;ci:Ljava/lang/String;
-
frameTracker
- Mappings:
Namespace Name Mixin selector named frameTrackerLnet/minecraft/entity/boss/dragon/EnderDragonEntity;frameTracker:Lnet/minecraft/entity/boss/dragon/EnderDragonFrameTracker;intermediary field_52493Lnet/minecraft/class_1510;field_52493:Lnet/minecraft/class_9871;official bLcjw;b:Lcju;
-
parts
- Mappings:
Namespace Name Mixin selector named partsLnet/minecraft/entity/boss/dragon/EnderDragonEntity;parts:[Lnet/minecraft/entity/boss/dragon/EnderDragonPart;intermediary field_7032Lnet/minecraft/class_1510;field_7032:[Lnet/minecraft/class_1508;official cjLcjw;cj:[Lcjt;
-
head
- Mappings:
Namespace Name Mixin selector named headLnet/minecraft/entity/boss/dragon/EnderDragonEntity;head:Lnet/minecraft/entity/boss/dragon/EnderDragonPart;intermediary field_7017Lnet/minecraft/class_1510;field_7017:Lnet/minecraft/class_1508;official cLcjw;c:Lcjt;
-
neck
- Mappings:
Namespace Name Mixin selector named neckLnet/minecraft/entity/boss/dragon/EnderDragonEntity;neck:Lnet/minecraft/entity/boss/dragon/EnderDragonPart;intermediary field_7011Lnet/minecraft/class_1510;field_7011:Lnet/minecraft/class_1508;official ckLcjw;ck:Lcjt;
-
body
- Mappings:
Namespace Name Mixin selector named bodyLnet/minecraft/entity/boss/dragon/EnderDragonEntity;body:Lnet/minecraft/entity/boss/dragon/EnderDragonPart;intermediary field_7023Lnet/minecraft/class_1510;field_7023:Lnet/minecraft/class_1508;official clLcjw;cl:Lcjt;
-
tail1
- Mappings:
Namespace Name Mixin selector named tail1Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;tail1:Lnet/minecraft/entity/boss/dragon/EnderDragonPart;intermediary field_7020Lnet/minecraft/class_1510;field_7020:Lnet/minecraft/class_1508;official cmLcjw;cm:Lcjt;
-
tail2
- Mappings:
Namespace Name Mixin selector named tail2Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;tail2:Lnet/minecraft/entity/boss/dragon/EnderDragonPart;intermediary field_7009Lnet/minecraft/class_1510;field_7009:Lnet/minecraft/class_1508;official cnLcjw;cn:Lcjt;
-
tail3
- Mappings:
Namespace Name Mixin selector named tail3Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;tail3:Lnet/minecraft/entity/boss/dragon/EnderDragonPart;intermediary field_7022Lnet/minecraft/class_1510;field_7022:Lnet/minecraft/class_1508;official coLcjw;co:Lcjt;
-
rightWing
- Mappings:
Namespace Name Mixin selector named rightWingLnet/minecraft/entity/boss/dragon/EnderDragonEntity;rightWing:Lnet/minecraft/entity/boss/dragon/EnderDragonPart;intermediary field_7015Lnet/minecraft/class_1510;field_7015:Lnet/minecraft/class_1508;official cpLcjw;cp:Lcjt;
-
leftWing
- Mappings:
Namespace Name Mixin selector named leftWingLnet/minecraft/entity/boss/dragon/EnderDragonEntity;leftWing:Lnet/minecraft/entity/boss/dragon/EnderDragonPart;intermediary field_7014Lnet/minecraft/class_1510;field_7014:Lnet/minecraft/class_1508;official cqLcjw;cq:Lcjt;
-
prevWingPosition
public float prevWingPosition- Mappings:
Namespace Name Mixin selector named prevWingPositionLnet/minecraft/entity/boss/dragon/EnderDragonEntity;prevWingPosition:Fintermediary field_7019Lnet/minecraft/class_1510;field_7019:Fofficial dLcjw;d:F
-
wingPosition
public float wingPosition- Mappings:
Namespace Name Mixin selector named wingPositionLnet/minecraft/entity/boss/dragon/EnderDragonEntity;wingPosition:Fintermediary field_7030Lnet/minecraft/class_1510;field_7030:Fofficial bXLcjw;bX:F
-
slowedDownByBlock
public boolean slowedDownByBlock- Mappings:
Namespace Name Mixin selector named slowedDownByBlockLnet/minecraft/entity/boss/dragon/EnderDragonEntity;slowedDownByBlock:Zintermediary field_7027Lnet/minecraft/class_1510;field_7027:Zofficial bYLcjw;bY:Z
-
ticksSinceDeath
public int ticksSinceDeath- Mappings:
Namespace Name Mixin selector named ticksSinceDeathLnet/minecraft/entity/boss/dragon/EnderDragonEntity;ticksSinceDeath:Iintermediary field_7031Lnet/minecraft/class_1510;field_7031:Iofficial bZLcjw;bZ:I
-
yawAcceleration
public float yawAcceleration- Mappings:
Namespace Name Mixin selector named yawAccelerationLnet/minecraft/entity/boss/dragon/EnderDragonEntity;yawAcceleration:Fintermediary field_20865Lnet/minecraft/class_1510;field_20865:Fofficial caLcjw;ca:F
-
connectedCrystal
- Mappings:
Namespace Name Mixin selector named connectedCrystalLnet/minecraft/entity/boss/dragon/EnderDragonEntity;connectedCrystal:Lnet/minecraft/entity/decoration/EndCrystalEntity;intermediary field_7024Lnet/minecraft/class_1510;field_7024:Lnet/minecraft/class_1511;official cbLcjw;cb:Lcjv;
-
fight
- Mappings:
Namespace Name Mixin selector named fightLnet/minecraft/entity/boss/dragon/EnderDragonEntity;fight:Lnet/minecraft/entity/boss/dragon/EnderDragonFight;intermediary field_7016Lnet/minecraft/class_1510;field_7016:Lnet/minecraft/class_2881;official crLcjw;cr:Leaw;
-
fightOrigin
- Mappings:
Namespace Name Mixin selector named fightOriginLnet/minecraft/entity/boss/dragon/EnderDragonEntity;fightOrigin:Lnet/minecraft/util/math/BlockPos;intermediary field_44875Lnet/minecraft/class_1510;field_44875:Lnet/minecraft/class_2338;official csLcjw;cs:Lji;
-
phaseManager
- Mappings:
Namespace Name Mixin selector named phaseManagerLnet/minecraft/entity/boss/dragon/EnderDragonEntity;phaseManager:Lnet/minecraft/entity/boss/dragon/phase/PhaseManager;intermediary field_7028Lnet/minecraft/class_1510;field_7028:Lnet/minecraft/class_1526;official ctLcjw;ct:Lckn;
-
ticksUntilNextGrowl
private int ticksUntilNextGrowl- Mappings:
Namespace Name Mixin selector named ticksUntilNextGrowlLnet/minecraft/entity/boss/dragon/EnderDragonEntity;ticksUntilNextGrowl:Iintermediary field_7018Lnet/minecraft/class_1510;field_7018:Iofficial cuLcjw;cu:I
-
damageDuringSitting
private float damageDuringSitting- Mappings:
Namespace Name Mixin selector named damageDuringSittingLnet/minecraft/entity/boss/dragon/EnderDragonEntity;damageDuringSitting:Fintermediary field_7029Lnet/minecraft/class_1510;field_7029:Fofficial cvLcjw;cv: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 pathNodesLnet/minecraft/entity/boss/dragon/EnderDragonEntity;pathNodes:[Lnet/minecraft/entity/ai/pathing/PathNode;intermediary field_7012Lnet/minecraft/class_1510;field_7012:[Lnet/minecraft/class_9;official cwLcjw;cw:[Letm;
-
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 pathNodeConnectionsLnet/minecraft/entity/boss/dragon/EnderDragonEntity;pathNodeConnections:[Iintermediary field_7025Lnet/minecraft/class_1510;field_7025:[Iofficial cxLcjw;cx:[I
-
pathHeap
- Mappings:
Namespace Name Mixin selector named pathHeapLnet/minecraft/entity/boss/dragon/EnderDragonEntity;pathHeap:Lnet/minecraft/entity/ai/pathing/PathMinHeap;intermediary field_7008Lnet/minecraft/class_1510;field_7008:Lnet/minecraft/class_5;official cyLcjw;cy:Letk;
-
-
Constructor Details
-
EnderDragonEntity
- 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>Lbum;<init>(Lbut;Ldgj;)V
-
-
Method Details
-
setFight
- Mappings:
Namespace Name Mixin selector named setFightLnet/minecraft/entity/boss/dragon/EnderDragonEntity;setFight(Lnet/minecraft/entity/boss/dragon/EnderDragonFight;)Vintermediary method_51852Lnet/minecraft/class_1510;method_51852(Lnet/minecraft/class_2881;)Vofficial aLcjw;a(Leaw;)V
-
setFightOrigin
- Mappings:
Namespace Name Mixin selector named setFightOriginLnet/minecraft/entity/boss/dragon/EnderDragonEntity;setFightOrigin(Lnet/minecraft/util/math/BlockPos;)Vintermediary method_51853Lnet/minecraft/class_1510;method_51853(Lnet/minecraft/class_2338;)Vofficial cLcjw;c(Lji;)V
-
getFightOrigin
- Mappings:
Namespace Name Mixin selector named getFightOriginLnet/minecraft/entity/boss/dragon/EnderDragonEntity;getFightOrigin()Lnet/minecraft/util/math/BlockPos;intermediary method_51854Lnet/minecraft/class_1510;method_51854()Lnet/minecraft/class_2338;official mLcjw;m()Lji;
-
createEnderDragonAttributes
- Mappings:
Namespace Name Mixin selector named createEnderDragonAttributesLnet/minecraft/entity/boss/dragon/EnderDragonEntity;createEnderDragonAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;intermediary method_26903Lnet/minecraft/class_1510;method_26903()Lnet/minecraft/class_5132$class_5133;official pLcjw;p()Lbwp$a;
-
isFlappingWings
public boolean isFlappingWings()Returns whether the entity is flapping their wings.Entities flapping their wings will call
addFlapEffects()insideEntity.addAirTravelEffects().- Overrides:
isFlappingWingsin classEntity- Returns:
- whether the entity is flapping their wings
- Mappings:
Namespace Name Mixin selector named isFlappingWingsLnet/minecraft/entity/Entity;isFlappingWings()Zintermediary method_5776Lnet/minecraft/class_1297;method_5776()Zofficial baLbum;ba()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:
addFlapEffectsin classEntity- Mappings:
Namespace Name Mixin selector named addFlapEffectsLnet/minecraft/entity/Entity;addFlapEffects()Vintermediary method_5801Lnet/minecraft/class_1297;method_5801()Vofficial aZLbum;aZ()V
-
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 aLbum;a(Lakc$a;)V
-
tickMovement
public void tickMovement()- Overrides:
tickMovementin classMobEntity- Mappings:
Namespace Name Mixin selector named tickMovementLnet/minecraft/entity/LivingEntity;tickMovement()Vintermediary method_6007Lnet/minecraft/class_1309;method_6007()Vofficial d_Lbvi;d_()V
-
movePart
- Mappings:
Namespace Name Mixin selector named movePartLnet/minecraft/entity/boss/dragon/EnderDragonEntity;movePart(Lnet/minecraft/entity/boss/dragon/EnderDragonPart;DDD)Vintermediary method_22863Lnet/minecraft/class_1510;method_22863(Lnet/minecraft/class_1508;DDD)Vofficial aLcjw;a(Lcjt;DDD)V
-
getHeadVerticalMovement
private float getHeadVerticalMovement()- Mappings:
Namespace Name Mixin selector named getHeadVerticalMovementLnet/minecraft/entity/boss/dragon/EnderDragonEntity;getHeadVerticalMovement()Fintermediary method_6820Lnet/minecraft/class_1510;method_6820()Fofficial gqLcjw;gq()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 tickWithEndCrystalsLnet/minecraft/entity/boss/dragon/EnderDragonEntity;tickWithEndCrystals()Vintermediary method_6830Lnet/minecraft/class_1510;method_6830()Vofficial grLcjw;gr()V
-
launchLivingEntities
- Mappings:
Namespace Name Mixin selector named launchLivingEntitiesLnet/minecraft/entity/boss/dragon/EnderDragonEntity;launchLivingEntities(Lnet/minecraft/server/world/ServerWorld;Ljava/util/List;)Vintermediary method_6825Lnet/minecraft/class_1510;method_6825(Lnet/minecraft/class_3218;Ljava/util/List;)Vofficial aLcjw;a(Lard;Ljava/util/List;)V
-
damageLivingEntities
- Mappings:
Namespace Name Mixin selector named damageLivingEntitiesLnet/minecraft/entity/boss/dragon/EnderDragonEntity;damageLivingEntities(Lnet/minecraft/server/world/ServerWorld;Ljava/util/List;)Vintermediary method_6827Lnet/minecraft/class_1510;method_6827(Lnet/minecraft/class_3218;Ljava/util/List;)Vofficial bLcjw;b(Lard;Ljava/util/List;)V
-
wrapYawChange
private float wrapYawChange(double yawDegrees) - Mappings:
Namespace Name Mixin selector named wrapYawChangeLnet/minecraft/entity/boss/dragon/EnderDragonEntity;wrapYawChange(D)Fintermediary method_6832Lnet/minecraft/class_1510;method_6832(D)Fofficial iLcjw;i(D)F
-
destroyBlocks
- Mappings:
Namespace Name Mixin selector named destroyBlocksLnet/minecraft/entity/boss/dragon/EnderDragonEntity;destroyBlocks(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Box;)Zintermediary method_6821Lnet/minecraft/class_1510;method_6821(Lnet/minecraft/class_3218;Lnet/minecraft/class_238;)Zofficial aLcjw;a(Lard;Lfaw;)Z
-
damagePart
public boolean damagePart(ServerWorld world, EnderDragonPart part, DamageSource source, float amount) - Mappings:
Namespace Name Mixin selector named damagePartLnet/minecraft/entity/boss/dragon/EnderDragonEntity;damagePart(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/boss/dragon/EnderDragonPart;Lnet/minecraft/entity/damage/DamageSource;F)Zintermediary method_6816Lnet/minecraft/class_1510;method_6816(Lnet/minecraft/class_3218;Lnet/minecraft/class_1508;Lnet/minecraft/class_1282;F)Zofficial aLcjw;a(Lard;Lcjt;Lbtc;F)Z
-
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.server.world.ServerWorld, 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/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Zintermediary method_64397Lnet/minecraft/class_1297;method_64397(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Zofficial aLbum;a(Lard;Lbtc;F)Z
-
parentDamage
- Mappings:
Namespace Name Mixin selector named parentDamageLnet/minecraft/entity/boss/dragon/EnderDragonEntity;parentDamage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Vintermediary method_6819Lnet/minecraft/class_1510;method_6819(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Vofficial cLcjw;c(Lard;Lbtc;F)V
-
kill
Kills the entity.This drops loot when applicable, and emits the
GameEvent.ENTITY_DIEgame event.- Overrides:
killin classLivingEntity- Mappings:
Namespace Name Mixin selector named killLnet/minecraft/entity/Entity;kill(Lnet/minecraft/server/world/ServerWorld;)Vintermediary method_5768Lnet/minecraft/class_1297;method_5768(Lnet/minecraft/class_3218;)Vofficial cLbum;c(Lard;)V
-
updatePostDeath
protected void updatePostDeath()- Overrides:
updatePostDeathin classLivingEntity- Mappings:
Namespace Name Mixin selector named updatePostDeathLnet/minecraft/entity/LivingEntity;updatePostDeath()Vintermediary method_6108Lnet/minecraft/class_1309;method_6108()Vofficial elLbvi;el()V
-
getNearestPathNodeIndex
public int getNearestPathNodeIndex()- Mappings:
Namespace Name Mixin selector named getNearestPathNodeIndexLnet/minecraft/entity/boss/dragon/EnderDragonEntity;getNearestPathNodeIndex()Iintermediary method_6818Lnet/minecraft/class_1510;method_6818()Iofficial tLcjw;t()I
-
getNearestPathNodeIndex
public int getNearestPathNodeIndex(double x, double y, double z) - Mappings:
Namespace Name Mixin selector named getNearestPathNodeIndexLnet/minecraft/entity/boss/dragon/EnderDragonEntity;getNearestPathNodeIndex(DDD)Iintermediary method_6822Lnet/minecraft/class_1510;method_6822(DDD)Iofficial qLcjw;q(DDD)I
-
findPath
- Mappings:
Namespace Name Mixin selector named findPathLnet/minecraft/entity/boss/dragon/EnderDragonEntity;findPath(IILnet/minecraft/entity/ai/pathing/PathNode;)Lnet/minecraft/entity/ai/pathing/Path;intermediary method_6833Lnet/minecraft/class_1510;method_6833(IILnet/minecraft/class_9;)Lnet/minecraft/class_11;official aLcjw;a(IILetm;)Leto;
-
getPathOfAllPredecessors
- Mappings:
Namespace Name Mixin selector named getPathOfAllPredecessorsLnet/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_6826Lnet/minecraft/class_1510;method_6826(Lnet/minecraft/class_9;Lnet/minecraft/class_9;)Lnet/minecraft/class_11;official aLcjw;a(Letm;Letm;)Leto;
-
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 bLbum;b(Ltq;)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 aLbum;a(Ltq;)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 dHLbum;dH()V
-
getBodyParts
- Mappings:
Namespace Name Mixin selector named getBodyPartsLnet/minecraft/entity/boss/dragon/EnderDragonEntity;getBodyParts()[Lnet/minecraft/entity/boss/dragon/EnderDragonPart;intermediary method_5690Lnet/minecraft/class_1510;method_5690()[Lnet/minecraft/class_1508;official xLcjw;x()[Lcjt;
-
canHit
public boolean canHit()Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.- Overrides:
canHitin classLivingEntity- Returns:
- whether the entity can be hit with a projectile or be targeted by the player crosshair
- Mappings:
Namespace Name Mixin selector named canHitLnet/minecraft/entity/Entity;canHit()Zintermediary method_5863Lnet/minecraft/class_1297;method_5863()Zofficial bHLbum;bH()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:
getSoundCategoryin classEntity- Returns:
- the sound category for sounds from this entity
- See Also:
- Mappings:
Namespace Name Mixin selector named getSoundCategoryLnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;intermediary method_5634Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;official dmLbum;dm()Lawb;
-
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 uLbvk;u()Lavz;
-
getHurtSound
- Overrides:
getHurtSoundin classLivingEntity- 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 eLbvi;e(Lbtc;)Lavz;
-
getSoundVolume
protected float getSoundVolume()- Overrides:
getSoundVolumein classLivingEntity- Mappings:
Namespace Name Mixin selector named getSoundVolumeLnet/minecraft/entity/LivingEntity;getSoundVolume()Fintermediary method_6107Lnet/minecraft/class_1309;method_6107()Fofficial fgLbvi;fg()F
-
getRotationVectorFromPhase
- Mappings:
Namespace Name Mixin selector named getRotationVectorFromPhaseLnet/minecraft/entity/boss/dragon/EnderDragonEntity;getRotationVectorFromPhase(F)Lnet/minecraft/util/math/Vec3d;intermediary method_6834Lnet/minecraft/class_1510;method_6834(F)Lnet/minecraft/class_243;official JLcjw;J(F)Lfbb;
-
crystalDestroyed
public void crystalDestroyed(ServerWorld world, EndCrystalEntity crystal, BlockPos pos, DamageSource source) - Mappings:
Namespace Name Mixin selector named crystalDestroyedLnet/minecraft/entity/boss/dragon/EnderDragonEntity;crystalDestroyed(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/decoration/EndCrystalEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/damage/DamageSource;)Vintermediary method_6828Lnet/minecraft/class_1510;method_6828(Lnet/minecraft/class_3218;Lnet/minecraft/class_1511;Lnet/minecraft/class_2338;Lnet/minecraft/class_1282;)Vofficial aLcjw;a(Lard;Lcjv;Lji;Lbtc;)V
-
onTrackedDataSet
Called on the client when the tracked data is set.This can be overridden to refresh other fields when the tracked data is set or changed.
- Specified by:
onTrackedDataSetin interfaceDataTracked- Overrides:
onTrackedDataSetin classLivingEntity- Mappings:
Namespace Name Mixin selector named onTrackedDataSetLnet/minecraft/entity/data/DataTracked;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)Vintermediary method_5674Lnet/minecraft/class_9221;method_5674(Lnet/minecraft/class_2940;)Vofficial aLakb;a(Lajy;)V
-
getPhaseManager
- Mappings:
Namespace Name Mixin selector named getPhaseManagerLnet/minecraft/entity/boss/dragon/EnderDragonEntity;getPhaseManager()Lnet/minecraft/entity/boss/dragon/phase/PhaseManager;intermediary method_6831Lnet/minecraft/class_1510;method_6831()Lnet/minecraft/class_1526;official goLcjw;go()Lckn;
-
getFight
- Mappings:
Namespace Name Mixin selector named getFightLnet/minecraft/entity/boss/dragon/EnderDragonEntity;getFight()Lnet/minecraft/entity/boss/dragon/EnderDragonFight;intermediary method_6829Lnet/minecraft/class_1510;method_6829()Lnet/minecraft/class_2881;official gpLcjw;gp()Leaw;
-
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 bLbvi;b(Lbtr;Lbum;)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 oLbum;o(Lbum;)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 oLbum;o(Z)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:
onSpawnPacketin classLivingEntity- Mappings:
Namespace Name Mixin selector named onSpawnPacketLnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)Vintermediary method_31471Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)Vofficial aLbum;a(Labm;)V
-
canTarget
- Overrides:
canTargetin classLivingEntity- Mappings:
Namespace Name Mixin selector named canTargetLnet/minecraft/entity/LivingEntity;canTarget(Lnet/minecraft/entity/LivingEntity;)Zintermediary method_18395Lnet/minecraft/class_1309;method_18395(Lnet/minecraft/class_1309;)Zofficial cLbvi;c(Lbvi;)Z
-
clampScale
protected float clampScale(float scale) - Overrides:
clampScalein classLivingEntity- Mappings:
Namespace Name Mixin selector named clampScaleLnet/minecraft/entity/LivingEntity;clampScale(F)Fintermediary method_56077Lnet/minecraft/class_1309;method_56077(F)Fofficial bLbvi;b(F)F
-