Class AllayEntity
- All Implemented Interfaces:
Attackable
,DataTracked
,EquipmentHolder
,InventoryOwner
,Leashable
,Targeter
,ScoreHolder
,Nameable
,EntityLike
,Vibrations
- Mappings:
Namespace Name named net/minecraft/entity/passive/AllayEntity
intermediary net/minecraft/class_7298
official cjc
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
private class
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
Nested classes/interfaces inherited from interface net.minecraft.entity.Leashable
Leashable.LeashData
Nested classes/interfaces inherited from interface net.minecraft.world.event.Vibrations
Vibrations.Callback, Vibrations.ListenerData, Vibrations.Ticker, Vibrations.VibrationListener
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final TrackedData
<Boolean> private float
private static final TrackedData
<Boolean> private static final int
private long
private static final int
private static final float
private static final float
private static final int
static final int
private final EntityGameEventHandler
<Vibrations.VibrationListener> private final SimpleInventory
private static final Vec3i
private float
private final EntityGameEventHandler
<AllayEntity.JukeboxEventListener> private static final Logger
protected static final ImmutableList
<MemoryModuleType<?>> private float
private float
protected static final ImmutableList
<SensorType<? extends Sensor<? super AllayEntity>>> private float
static final ImmutableList
<Float> private final Vibrations.Callback
private Vibrations.ListenerData
Fields inherited from class net.minecraft.entity.mob.PathAwareEntity
DEFAULT_PATHFINDING_FAVOR
Fields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, bodyArmorDropChance, DEFAULT_CAN_PICKUP_LOOT_CHANCE, DEFAULT_DROP_CHANCE, experiencePoints, field_35039, field_38932, field_52220, goalSelector, handDropChances, jumpControl, lookControl, MINIMUM_DROPPED_XP_PER_EQUIPMENT, moveControl, navigation, RANDOM_SPAWN_BONUS_MODIFIER_ID, targetSelector
Fields 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, 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, 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, wasInPowderSnow
Fields inherited from interface net.minecraft.entity.InventoryOwner
INVENTORY_KEY
Fields inherited from interface net.minecraft.entity.Leashable
LEASH_NBT_KEY, MAX_LEASH_LENGTH, SHORT_LEASH_LENGTH
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
Fields inherited from interface net.minecraft.world.event.Vibrations
DEFAULT_FREQUENCY, FREQUENCIES, RESONATIONS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
private boolean
areDifferentPotions
(ItemStack stack, ItemStack stack2) boolean
areItemsDifferent
(ItemStack stack, ItemStack stack2) private boolean
areItemsEqual
(ItemStack stack, ItemStack stack2) protected boolean
private boolean
boolean
canGather
(ServerWorld world, ItemStack stack) boolean
canImmediatelyDespawn
(double distanceSquared) boolean
protected Brain.Profile
<AllayEntity> protected EntityNavigation
createNavigation
(World world) boolean
damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.private void
decrementStackUnlessInCreative
(PlayerEntity player, ItemStack stack) protected Brain
<?> deserializeBrain
(com.mojang.serialization.Dynamic<?> dynamic) protected void
dropInventory
(ServerWorld world) private void
protected void
fall
(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.protected SoundEvent
getBrain()
protected SoundEvent
protected SoundEvent
getHurtSound
(DamageSource source) float
getItemHoldAnimationTicks
(float tickDelta) protected Vec3i
Returns the offset from the entity's position where the leash is attached to.protected float
float
getSpinningAnimationTicks
(float tickDelta) void
handleStatus
(byte status) Called on the client when the entity receives an entity status from the server.protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.protected ActionResult
interactMob
(PlayerEntity player, Hand hand) boolean
boolean
Returns whether the entity is flapping their wings.boolean
private boolean
boolean
protected void
loot
(ServerWorld world, ItemEntity itemEntity) protected void
mobTick
(ServerWorld world) protected void
playStepSound
(BlockPos pos, BlockState state) void
Reads custom data fromnbt
.protected void
void
setDancing
(boolean dancing) protected boolean
private boolean
private void
void
tick()
Ticks this entity.private void
void
void
Allows you to do certain speed and velocity calculations.void
updateEventHandler
(BiConsumer<EntityGameEventHandler<?>, ServerWorld> callback) Called when the entity is loaded to register game event handlers.void
updateJukeboxPos
(BlockPos jukeboxPos, boolean playing) void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.mob.PathAwareEntity
beforeLeashTick, canSpawn, getFollowLeashSpeed, getPathfindingFavor, getPathfindingFavor, isNavigating, isPanicking, onShortLeashTick
Methods inherited from class net.minecraft.entity.mob.MobEntity
baseTick, canBeLeashed, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canSpawn, canTarget, canUseRangedWeapon, canUseSlot, checkDespawn, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, convertTo, createBodyControl, createMobAttributes, detachLeash, detachLeash, dropAllEquipment, dropEquipment, dropEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipBodyArmor, equipLootStack, equipStack, getAllArmorItems, getArmorDropChances, getArmorItems, getAttackBox, getBodyArmor, getControllingPassenger, getDropChance, getEquipmentForSlot, getEquippedStack, getHandDropChances, getHandItems, getJumpControl, getLeashData, getLimitPerChunk, getLookControl, getLootTableKey, getLootTableSeed, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMinAmbientSoundDelay, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getSafeFallDistance, getTarget, getTargetInBrain, getVisibilityCache, getXpToDrop, hasPositionTarget, initEquipment, initGoals, initialize, interact, isAffectedByDaylight, isAiDisabled, isAttacking, isDisallowedInPeaceful, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, movesIndependently, onEatingGrass, onFinishPathfinding, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playAttackSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, setAiDisabled, setAttacking, setBaby, setCanPickUpLoot, setEquipmentDropChance, setEquipmentFromTable, setEquipmentFromTable, setForwardSpeed, setLeashData, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, startRiding, stopMovement, swimUpward, tickNewAi, tryAttack, tryEquip, turnHead, updateAttribute, updateDropChances, updateEnchantments, updateGoalControls
Methods inherited from class net.minecraft.entity.LivingEntity
addDeathParticles, addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyFluidMovingSpeed, applyMovementEffects, attackLivingEntity, blockedByShield, canBreatheInWater, canEquip, canEquipFromDispenser, canFreeze, canGlide, canGlideWith, canHaveStatusEffect, canHit, canSee, canSee, canTakeDamage, canTarget, canUsePortals, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createLivingAttributes, damageArmor, damageEquipment, damageHelmet, damageShield, disableExperienceDropping, disablesShield, drop, dropXp, endCombat, enterCombat, forEachGeneratedItem, forEachGiftedItem, forEachShearedItem, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseDimensions, getBaseMovementSpeedMultiplier, getBlockingItem, getBodyYaw, getBoundingBox, getClimbingPos, getControlledMovementInput, getDamageTiltYaw, getDamageTracker, getDespawnCounter, getDimensions, getEffectiveGravity, getEquippedItems, 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, getXpToDrop, 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, kill, knockback, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onRemoval, onSpawnPacket, onStatusEffectApplied, onStatusEffectsRemoved, onStatusEffectUpgraded, onTrackedDataSet, playBlockFallSound, playSound, positionInPortal, positionInPortal, processEquippedStack, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeStatusEffect, removeStatusEffectInternal, resetLerp, 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, spawnItemParticles, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickGliding, tickHandSwing, tickInVoid, tickItemStackUsage, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, triggerItemPickedUpByEntityCriteria, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUp, wouldNotSuffocateInPose
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canSprintAsVehicle, canStartRiding, canTeleportBetween, changeLookDirection, clientDamage, 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, getLastRenderPos, 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, getSoundCategory, 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, 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, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, 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, 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, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updatePrevAngles, updatePrevPosition, 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.entity.EquipmentHolder
getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTable
Methods inherited from interface net.minecraft.entity.InventoryOwner
readInventory, writeInventory
Methods inherited from interface net.minecraft.entity.Leashable
applyLeashElasticity, attachLeash, canLeashAttachTo, getLeashHolder, isLeashed, mightBeLeashed, readLeashDataFromNbt, setUnresolvedLeashHolderId, writeLeashDataToNbt
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/entity/passive/AllayEntity;LOGGER:Lorg/slf4j/Logger;
intermediary field_39045
Lnet/minecraft/class_7298;field_39045:Lorg/slf4j/Logger;
official bZ
Lcjc;bZ:Lorg/slf4j/Logger;
-
ITEM_PICKUP_RANGE_EXPANDER
- Mappings:
Namespace Name Mixin selector named ITEM_PICKUP_RANGE_EXPANDER
Lnet/minecraft/entity/passive/AllayEntity;ITEM_PICKUP_RANGE_EXPANDER:Lnet/minecraft/util/math/Vec3i;
intermediary field_38399
Lnet/minecraft/class_7298;field_38399:Lnet/minecraft/class_2382;
official ca
Lcjc;ca:Lkl;
-
field_39461
private static final int field_39461- See Also:
- Mappings:
Namespace Name Mixin selector named field_39461
Lnet/minecraft/entity/passive/AllayEntity;field_39461:I
intermediary field_39461
Lnet/minecraft/class_7298;field_39461:I
official cb
Lcjc;cb:I
-
field_39462
private static final float field_39462- See Also:
- Mappings:
Namespace Name Mixin selector named field_39462
Lnet/minecraft/entity/passive/AllayEntity;field_39462:F
intermediary field_39462
Lnet/minecraft/class_7298;field_39462:F
official cc
Lcjc;cc:F
-
field_39463
private static final float field_39463- See Also:
- Mappings:
Namespace Name Mixin selector named field_39463
Lnet/minecraft/entity/passive/AllayEntity;field_39463:F
intermediary field_39463
Lnet/minecraft/class_7298;field_39463:F
official cd
Lcjc;cd:F
-
DUPLICATION_COOLDOWN
private static final int DUPLICATION_COOLDOWN- See Also:
- Mappings:
Namespace Name Mixin selector named DUPLICATION_COOLDOWN
Lnet/minecraft/entity/passive/AllayEntity;DUPLICATION_COOLDOWN:I
intermediary field_39465
Lnet/minecraft/class_7298;field_39465:I
official ce
Lcjc;ce:I
-
field_39679
private static final int field_39679- See Also:
- Mappings:
Namespace Name Mixin selector named field_39679
Lnet/minecraft/entity/passive/AllayEntity;field_39679:I
intermediary field_39679
Lnet/minecraft/class_7298;field_39679:I
official cf
Lcjc;cf:I
-
field_54974
public static final int field_54974- See Also:
- Mappings:
Namespace Name Mixin selector named field_54974
Lnet/minecraft/entity/passive/AllayEntity;field_54974:I
intermediary field_54974
Lnet/minecraft/class_7298;field_54974:I
official a
Lcjc;a:I
-
DANCING
- Mappings:
Namespace Name Mixin selector named DANCING
Lnet/minecraft/entity/passive/AllayEntity;DANCING:Lnet/minecraft/entity/data/TrackedData;
intermediary field_39466
Lnet/minecraft/class_7298;field_39466:Lnet/minecraft/class_2940;
official cg
Lcjc;cg:Lalc;
-
CAN_DUPLICATE
- Mappings:
Namespace Name Mixin selector named CAN_DUPLICATE
Lnet/minecraft/entity/passive/AllayEntity;CAN_DUPLICATE:Lnet/minecraft/entity/data/TrackedData;
intermediary field_39467
Lnet/minecraft/class_7298;field_39467:Lnet/minecraft/class_2940;
official ch
Lcjc;ch:Lalc;
-
SENSORS
- Mappings:
Namespace Name Mixin selector named SENSORS
Lnet/minecraft/entity/passive/AllayEntity;SENSORS:Lcom/google/common/collect/ImmutableList;
intermediary field_38398
Lnet/minecraft/class_7298;field_38398:Lcom/google/common/collect/ImmutableList;
official b
Lcjc;b:Lcom/google/common/collect/ImmutableList;
-
MEMORY_MODULES
- Mappings:
Namespace Name Mixin selector named MEMORY_MODULES
Lnet/minecraft/entity/passive/AllayEntity;MEMORY_MODULES:Lcom/google/common/collect/ImmutableList;
intermediary field_38403
Lnet/minecraft/class_7298;field_38403:Lcom/google/common/collect/ImmutableList;
official c
Lcjc;c:Lcom/google/common/collect/ImmutableList;
-
THROW_SOUND_PITCHES
- Mappings:
Namespace Name Mixin selector named THROW_SOUND_PITCHES
Lnet/minecraft/entity/passive/AllayEntity;THROW_SOUND_PITCHES:Lcom/google/common/collect/ImmutableList;
intermediary field_38937
Lnet/minecraft/class_7298;field_38937:Lcom/google/common/collect/ImmutableList;
official d
Lcjc;d:Lcom/google/common/collect/ImmutableList;
-
gameEventHandler
- Mappings:
Namespace Name Mixin selector named gameEventHandler
Lnet/minecraft/entity/passive/AllayEntity;gameEventHandler:Lnet/minecraft/world/event/listener/EntityGameEventHandler;
intermediary field_38401
Lnet/minecraft/class_7298;field_38401:Lnet/minecraft/class_5715;
official ci
Lcjc;ci:Lecn;
-
vibrationListenerData
- Mappings:
Namespace Name Mixin selector named vibrationListenerData
Lnet/minecraft/entity/passive/AllayEntity;vibrationListenerData:Lnet/minecraft/world/event/Vibrations$ListenerData;
intermediary field_44596
Lnet/minecraft/class_7298;field_44596:Lnet/minecraft/class_8514$class_8515;
official cj
Lcjc;cj:Lecz$a;
-
vibrationCallback
- Mappings:
Namespace Name Mixin selector named vibrationCallback
Lnet/minecraft/entity/passive/AllayEntity;vibrationCallback:Lnet/minecraft/world/event/Vibrations$Callback;
intermediary field_39468
Lnet/minecraft/class_7298;field_39468:Lnet/minecraft/class_8514$class_5719;
official ck
Lcjc;ck:Lecz$d;
-
jukeboxEventHandler
- Mappings:
Namespace Name Mixin selector named jukeboxEventHandler
Lnet/minecraft/entity/passive/AllayEntity;jukeboxEventHandler:Lnet/minecraft/world/event/listener/EntityGameEventHandler;
intermediary field_39469
Lnet/minecraft/class_7298;field_39469:Lnet/minecraft/class_5715;
official cl
Lcjc;cl:Lecn;
-
inventory
- Mappings:
Namespace Name Mixin selector named inventory
Lnet/minecraft/entity/passive/AllayEntity;inventory:Lnet/minecraft/inventory/SimpleInventory;
intermediary field_38402
Lnet/minecraft/class_7298;field_38402:Lnet/minecraft/class_1277;
official cm
Lcjc;cm:Lbtp;
-
jukeboxPos
- Mappings:
Namespace Name Mixin selector named jukeboxPos
Lnet/minecraft/entity/passive/AllayEntity;jukeboxPos:Lnet/minecraft/util/math/BlockPos;
intermediary field_39470
Lnet/minecraft/class_7298;field_39470:Lnet/minecraft/class_2338;
official cn
Lcjc;cn:Ljh;
-
duplicationCooldown
private long duplicationCooldown- Mappings:
Namespace Name Mixin selector named duplicationCooldown
Lnet/minecraft/entity/passive/AllayEntity;duplicationCooldown:J
intermediary field_39471
Lnet/minecraft/class_7298;field_39471:J
official co
Lcjc;co:J
-
itemHoldAnimationTicks
private float itemHoldAnimationTicks- Mappings:
Namespace Name Mixin selector named itemHoldAnimationTicks
Lnet/minecraft/entity/passive/AllayEntity;itemHoldAnimationTicks:F
intermediary field_38935
Lnet/minecraft/class_7298;field_38935:F
official cp
Lcjc;cp:F
-
prevItemHoldAnimationTicks
private float prevItemHoldAnimationTicks- Mappings:
Namespace Name Mixin selector named prevItemHoldAnimationTicks
Lnet/minecraft/entity/passive/AllayEntity;prevItemHoldAnimationTicks:F
intermediary field_38936
Lnet/minecraft/class_7298;field_38936:F
official cq
Lcjc;cq:F
-
danceTicks
private float danceTicks- Mappings:
Namespace Name Mixin selector named danceTicks
Lnet/minecraft/entity/passive/AllayEntity;danceTicks:F
intermediary field_39472
Lnet/minecraft/class_7298;field_39472:F
official cr
Lcjc;cr:F
-
spinningAnimationTicks
private float spinningAnimationTicks- Mappings:
Namespace Name Mixin selector named spinningAnimationTicks
Lnet/minecraft/entity/passive/AllayEntity;spinningAnimationTicks:F
intermediary field_39473
Lnet/minecraft/class_7298;field_39473:F
official cs
Lcjc;cs:F
-
prevSpinningAnimationTicks
private float prevSpinningAnimationTicks- Mappings:
Namespace Name Mixin selector named prevSpinningAnimationTicks
Lnet/minecraft/entity/passive/AllayEntity;prevSpinningAnimationTicks:F
intermediary field_39474
Lnet/minecraft/class_7298;field_39474:F
official ct
Lcjc;ct:F
-
-
Constructor Details
-
AllayEntity
- 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>
Lbvj;<init>(Lbvq;Ldhh;)V
-
-
Method Details
-
createBrainProfile
- Overrides:
createBrainProfile
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named createBrainProfile
Lnet/minecraft/entity/LivingEntity;createBrainProfile()Lnet/minecraft/entity/ai/brain/Brain$Profile;
intermediary method_28306
Lnet/minecraft/class_1309;method_28306()Lnet/minecraft/class_4095$class_5303;
official ed
Lbwf;ed()Lbxh$b;
-
deserializeBrain
- Overrides:
deserializeBrain
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named deserializeBrain
Lnet/minecraft/entity/LivingEntity;deserializeBrain(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/entity/ai/brain/Brain;
intermediary method_18867
Lnet/minecraft/class_1309;method_18867(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_4095;
official a
Lbwf;a(Lcom/mojang/serialization/Dynamic;)Lbxh;
-
getBrain
- Overrides:
getBrain
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getBrain
Lnet/minecraft/entity/LivingEntity;getBrain()Lnet/minecraft/entity/ai/brain/Brain;
intermediary method_18868
Lnet/minecraft/class_1309;method_18868()Lnet/minecraft/class_4095;
official ec
Lbwf;ec()Lbxh;
-
createAllayAttributes
- Mappings:
Namespace Name Mixin selector named createAllayAttributes
Lnet/minecraft/entity/passive/AllayEntity;createAllayAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
intermediary method_42655
Lnet/minecraft/class_7298;method_42655()Lnet/minecraft/class_5132$class_5133;
official m
Lcjc;m()Lbxm$a;
-
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
Lbvj;a(Lalg$a;)V
-
travel
Allows you to do certain speed and velocity calculations. This is useful for custom vehicle behavior, or custom entity movement. This is not to be confused with AI.See vanilla examples of custom horse vehicle and flying entities.
- Overrides:
travel
in classLivingEntity
- Parameters:
movementInput
- represents the sidewaysSpeed, upwardSpeed, and forwardSpeed of the entity in that order- Mappings:
Namespace Name Mixin selector named travel
Lnet/minecraft/entity/LivingEntity;travel(Lnet/minecraft/util/math/Vec3d;)V
intermediary method_6091
Lnet/minecraft/class_1309;method_6091(Lnet/minecraft/class_243;)V
official a_
Lbwf;a_(Lfbx;)V
-
damage
Applies a damage to this entity. The exact implementation differs between subclasses.LivingEntity
has health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.Some entities like
ItemEntity
also 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:
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/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Z
intermediary method_64397
Lnet/minecraft/class_1297;method_64397(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Z
official a
Lbvj;a(Lash;Lbtz;F)Z
-
playStepSound
- Overrides:
playStepSound
in classEntity
- Mappings:
Namespace Name Mixin selector named playStepSound
Lnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
intermediary method_5712
Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
official b
Lbvj;b(Ljh;Ldxu;)V
-
fall
protected void fall(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls. Flying mobs should override this to do nothing.- Overrides:
fall
in classLivingEntity
- Implementation Note:
- If on ground, this calls
Block.onLandedUpon(net.minecraft.world.World, net.minecraft.block.BlockState, net.minecraft.util.math.BlockPos, net.minecraft.entity.Entity, float)
, which can add or reduce fall damage, emitsGameEvent.HIT_GROUND
, then callsEntity.onLanding()
. Otherwise, ifheightDifference
is negative, it subtracts that value fromEntity.fallDistance
. - Mappings:
Namespace Name Mixin selector named fall
Lnet/minecraft/entity/Entity;fall(DZLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V
intermediary method_5623
Lnet/minecraft/class_1297;method_5623(DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)V
official a
Lbvj;a(DZLdxu;Ljh;)V
-
getAmbientSound
- Overrides:
getAmbientSound
in classMobEntity
- Mappings:
Namespace Name Mixin selector named getAmbientSound
Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_5994
Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
official u
Lbwh;u()Laxe;
-
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 e
Lbwf;e(Lbtz;)Laxe;
-
getDeathSound
- Overrides:
getDeathSound
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getDeathSound
Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_6002
Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
official o_
Lbwf;o_()Laxe;
-
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 fg
Lbwf;fg()F
-
mobTick
-
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 d_
Lbwf;d_()V
-
tick
public void tick()Ticks this entity.- Overrides:
tick
in classMobEntity
- See Also:
- API Note:
- This can be overridden to add additional logics.
super.tick();
should be called in those cases. - Implementation Note:
- By default, this delegates all logics to
MobEntity.baseTick()
. - Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/entity/Entity;tick()V
intermediary method_5773
Lnet/minecraft/class_1297;method_5773()V
official h
Lbvj;h()V
-
canPickUpLoot
public boolean canPickUpLoot()- Overrides:
canPickUpLoot
in classMobEntity
- Mappings:
Namespace Name Mixin selector named canPickUpLoot
Lnet/minecraft/entity/LivingEntity;canPickUpLoot()Z
intermediary method_5936
Lnet/minecraft/class_1309;method_5936()Z
official fN
Lbwf;fN()Z
-
isHoldingItem
public boolean isHoldingItem()- Mappings:
Namespace Name Mixin selector named isHoldingItem
Lnet/minecraft/entity/passive/AllayEntity;isHoldingItem()Z
intermediary method_43396
Lnet/minecraft/class_7298;method_43396()Z
official p
Lcjc;p()Z
-
canDispenserEquipSlot
- Overrides:
canDispenserEquipSlot
in classMobEntity
- Mappings:
Namespace Name Mixin selector named canDispenserEquipSlot
Lnet/minecraft/entity/LivingEntity;canDispenserEquipSlot(Lnet/minecraft/entity/EquipmentSlot;)Z
intermediary method_63626
Lnet/minecraft/class_1309;method_63626(Lnet/minecraft/class_1304;)Z
official f
Lbwf;f(Lbvr;)Z
-
isItemPickupCoolingDown
private boolean isItemPickupCoolingDown()- Mappings:
Namespace Name Mixin selector named isItemPickupCoolingDown
Lnet/minecraft/entity/passive/AllayEntity;isItemPickupCoolingDown()Z
intermediary method_42654
Lnet/minecraft/class_7298;method_42654()Z
official gr
Lcjc;gr()Z
-
interactMob
- Overrides:
interactMob
in classMobEntity
- Mappings:
Namespace Name Mixin selector named interactMob
Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
intermediary method_5992
Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
official b
Lbwh;b(Lcpw;Lbth;)Lbti;
-
updateJukeboxPos
- Mappings:
Namespace Name Mixin selector named updateJukeboxPos
Lnet/minecraft/entity/passive/AllayEntity;updateJukeboxPos(Lnet/minecraft/util/math/BlockPos;Z)V
intermediary method_44358
Lnet/minecraft/class_7298;method_44358(Lnet/minecraft/class_2338;Z)V
official b
Lcjc;b(Ljh;Z)V
-
getInventory
- Specified by:
getInventory
in interfaceInventoryOwner
- Mappings:
Namespace Name Mixin selector named getInventory
Lnet/minecraft/entity/InventoryOwner;getInventory()Lnet/minecraft/inventory/SimpleInventory;
intermediary method_35199
Lnet/minecraft/class_6067;method_35199()Lnet/minecraft/class_1277;
official t
Lcpg;t()Lbtp;
-
getItemPickUpRangeExpander
- Overrides:
getItemPickUpRangeExpander
in classMobEntity
- Mappings:
Namespace Name Mixin selector named getItemPickUpRangeExpander
Lnet/minecraft/entity/mob/MobEntity;getItemPickUpRangeExpander()Lnet/minecraft/util/math/Vec3i;
intermediary method_42646
Lnet/minecraft/class_1308;method_42646()Lnet/minecraft/class_2382;
official V
Lbwh;V()Lkl;
-
canGather
- Overrides:
canGather
in classMobEntity
- Mappings:
Namespace Name Mixin selector named canGather
Lnet/minecraft/entity/mob/MobEntity;canGather(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;)Z
intermediary method_20820
Lnet/minecraft/class_1308;method_20820(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;)Z
official c
Lbwh;c(Lash;Lcxo;)Z
-
areItemsEqual
- Mappings:
Namespace Name Mixin selector named areItemsEqual
Lnet/minecraft/entity/passive/AllayEntity;areItemsEqual(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
intermediary method_45340
Lnet/minecraft/class_7298;method_45340(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
official c
Lcjc;c(Lcxo;Lcxo;)Z
-
areDifferentPotions
- Mappings:
Namespace Name Mixin selector named areDifferentPotions
Lnet/minecraft/entity/passive/AllayEntity;areDifferentPotions(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
intermediary method_45341
Lnet/minecraft/class_7298;method_45341(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
official d
Lcjc;d(Lcxo;Lcxo;)Z
-
loot
- Overrides:
loot
in classMobEntity
- Mappings:
Namespace Name Mixin selector named loot
Lnet/minecraft/entity/mob/MobEntity;loot(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/ItemEntity;)V
intermediary method_5949
Lnet/minecraft/class_1308;method_5949(Lnet/minecraft/class_3218;Lnet/minecraft/class_1542;)V
official a
Lbwh;a(Lash;Lcma;)V
-
sendAiDebugData
protected void sendAiDebugData()- Overrides:
sendAiDebugData
in classMobEntity
- Mappings:
Namespace Name Mixin selector named sendAiDebugData
Lnet/minecraft/entity/mob/MobEntity;sendAiDebugData()V
intermediary method_18409
Lnet/minecraft/class_1308;method_18409()V
official Y
Lbwh;Y()V
-
isFlappingWings
public boolean isFlappingWings()Returns whether the entity is flapping their wings.Entities flapping their wings will call
Entity.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 ba
Lbvj;ba()Z
-
updateEventHandler
Called when the entity is loaded to register game event handlers.Entities that listen to game events should first create an instance of
EntityGameEventHandler
in the entity's constructor, and override this to callcallback
. For example:if (this.world instanceof ServerWorld serverWorld) { callback.accept(this.handler, serverWorld); }
- Overrides:
updateEventHandler
in classEntity
- Mappings:
Namespace Name Mixin selector named updateEventHandler
Lnet/minecraft/entity/Entity;updateEventHandler(Ljava/util/function/BiConsumer;)V
intermediary method_42147
Lnet/minecraft/class_1297;method_42147(Ljava/util/function/BiConsumer;)V
official a
Lbvj;a(Ljava/util/function/BiConsumer;)V
-
isDancing
public boolean isDancing()- Mappings:
Namespace Name Mixin selector named isDancing
Lnet/minecraft/entity/passive/AllayEntity;isDancing()Z
intermediary method_44359
Lnet/minecraft/class_7298;method_44359()Z
official x
Lcjc;x()Z
-
setDancing
public void setDancing(boolean dancing) - Mappings:
Namespace Name Mixin selector named setDancing
Lnet/minecraft/entity/passive/AllayEntity;setDancing(Z)V
intermediary method_44367
Lnet/minecraft/class_7298;method_44367(Z)V
official x
Lcjc;x(Z)V
-
shouldStopDancing
private boolean shouldStopDancing()- Mappings:
Namespace Name Mixin selector named shouldStopDancing
Lnet/minecraft/entity/passive/AllayEntity;shouldStopDancing()Z
intermediary method_44361
Lnet/minecraft/class_7298;method_44361()Z
official gs
Lcjc;gs()Z
-
getItemHoldAnimationTicks
public float getItemHoldAnimationTicks(float tickDelta) - Mappings:
Namespace Name Mixin selector named getItemHoldAnimationTicks
Lnet/minecraft/entity/passive/AllayEntity;getItemHoldAnimationTicks(F)F
intermediary method_43397
Lnet/minecraft/class_7298;method_43397(F)F
official J
Lcjc;J(F)F
-
isSpinning
public boolean isSpinning()- Mappings:
Namespace Name Mixin selector named isSpinning
Lnet/minecraft/entity/passive/AllayEntity;isSpinning()Z
intermediary method_44360
Lnet/minecraft/class_7298;method_44360()Z
official go
Lcjc;go()Z
-
getSpinningAnimationTicks
public float getSpinningAnimationTicks(float tickDelta) - Mappings:
Namespace Name Mixin selector named getSpinningAnimationTicks
Lnet/minecraft/entity/passive/AllayEntity;getSpinningAnimationTicks(F)F
intermediary method_44368
Lnet/minecraft/class_7298;method_44368(F)F
official K
Lcjc;K(F)F
-
areItemsDifferent
- Overrides:
areItemsDifferent
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named areItemsDifferent
Lnet/minecraft/entity/LivingEntity;areItemsDifferent(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
intermediary method_45324
Lnet/minecraft/class_1309;method_45324(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
official a
Lbwf;a(Lcxo;Lcxo;)Z
-
dropInventory
- Overrides:
dropInventory
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named dropInventory
Lnet/minecraft/entity/LivingEntity;dropInventory(Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_16078
Lnet/minecraft/class_1309;method_16078(Lnet/minecraft/class_3218;)V
official f
Lbwf;f(Lash;)V
-
canImmediatelyDespawn
public boolean canImmediatelyDespawn(double distanceSquared) - Overrides:
canImmediatelyDespawn
in classMobEntity
- Mappings:
Namespace Name Mixin selector named canImmediatelyDespawn
Lnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Z
intermediary method_5974
Lnet/minecraft/class_1308;method_5974(D)Z
official h
Lbwh;h(D)Z
-
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
Lbvj;b(Lux;)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
Lbvj;a(Lux;)V
-
shouldFollowLeash
protected boolean shouldFollowLeash()- Overrides:
shouldFollowLeash
in classPathAwareEntity
- Mappings:
Namespace Name Mixin selector named shouldFollowLeash
Lnet/minecraft/entity/mob/PathAwareEntity;shouldFollowLeash()Z
intermediary method_43689
Lnet/minecraft/class_1314;method_43689()Z
official gm
Lbwn;gm()Z
-
tickDuplicationCooldown
private void tickDuplicationCooldown()- Mappings:
Namespace Name Mixin selector named tickDuplicationCooldown
Lnet/minecraft/entity/passive/AllayEntity;tickDuplicationCooldown()V
intermediary method_44362
Lnet/minecraft/class_7298;method_44362()V
official gt
Lcjc;gt()V
-
duplicate
private void duplicate()- Mappings:
Namespace Name Mixin selector named duplicate
Lnet/minecraft/entity/passive/AllayEntity;duplicate()V
intermediary method_44363
Lnet/minecraft/class_7298;method_44363()V
official gu
Lcjc;gu()V
-
startDuplicationCooldown
private void startDuplicationCooldown()- Mappings:
Namespace Name Mixin selector named startDuplicationCooldown
Lnet/minecraft/entity/passive/AllayEntity;startDuplicationCooldown()V
intermediary method_44364
Lnet/minecraft/class_7298;method_44364()V
official gv
Lcjc;gv()V
-
canDuplicate
private boolean canDuplicate()- Mappings:
Namespace Name Mixin selector named canDuplicate
Lnet/minecraft/entity/passive/AllayEntity;canDuplicate()Z
intermediary method_44365
Lnet/minecraft/class_7298;method_44365()Z
official gw
Lcjc;gw()Z
-
decrementStackUnlessInCreative
- Mappings:
Namespace Name Mixin selector named decrementStackUnlessInCreative
Lnet/minecraft/entity/passive/AllayEntity;decrementStackUnlessInCreative(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
intermediary method_44357
Lnet/minecraft/class_7298;method_44357(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)V
official a
Lcjc;a(Lcpw;Lcxo;)V
-
getLeashOffset
Returns the offset from the entity's position where the leash is attached to.This is different from
Entity.getLeashPos(float)
; this method is called on the entity which a leash is attached to.- Overrides:
getLeashOffset
in classEntity
- Returns:
- the offset from the entity's position where the leash is attached to
- See Also:
- Mappings:
Namespace Name Mixin selector named getLeashOffset
Lnet/minecraft/entity/Entity;getLeashOffset()Lnet/minecraft/util/math/Vec3d;
intermediary method_29919
Lnet/minecraft/class_1297;method_29919()Lnet/minecraft/class_243;
official cT
Lbvj;cT()Lfbx;
-
handleStatus
public void handleStatus(byte status) Called on the client when the entity receives an entity status from the server. They are often used to spawn particles or play sounds. Subclasses can override this method to handle custom entity status.- Overrides:
handleStatus
in classMobEntity
- See Also:
- API Note:
- To send an entity status, use
World.sendEntityStatus(net.minecraft.entity.Entity, byte)
. - Mappings:
Namespace Name Mixin selector named handleStatus
Lnet/minecraft/entity/Entity;handleStatus(B)V
intermediary method_5711
Lnet/minecraft/class_1297;method_5711(B)V
official b
Lbvj;b(B)V
-
addHeartParticle
private void addHeartParticle()- Mappings:
Namespace Name Mixin selector named addHeartParticle
Lnet/minecraft/entity/passive/AllayEntity;addHeartParticle()V
intermediary method_44608
Lnet/minecraft/class_7298;method_44608()V
official gx
Lcjc;gx()V
-
getVibrationListenerData
- Specified by:
getVibrationListenerData
in interfaceVibrations
- Mappings:
Namespace Name Mixin selector named getVibrationListenerData
Lnet/minecraft/world/event/Vibrations;getVibrationListenerData()Lnet/minecraft/world/event/Vibrations$ListenerData;
intermediary method_51298
Lnet/minecraft/class_8514;method_51298()Lnet/minecraft/class_8514$class_8515;
official gp
Lecz;gp()Lecz$a;
-
getVibrationCallback
- Specified by:
getVibrationCallback
in interfaceVibrations
- Mappings:
Namespace Name Mixin selector named getVibrationCallback
Lnet/minecraft/world/event/Vibrations;getVibrationCallback()Lnet/minecraft/world/event/Vibrations$Callback;
intermediary method_51299
Lnet/minecraft/class_8514;method_51299()Lnet/minecraft/class_8514$class_5719;
official gq
Lecz;gq()Lecz$d;
-