Class AllayEntity
- All Implemented Interfaces:
ComponentsAccess,Attackable,DataTracked,EquipmentHolder,InventoryOwner,Leashable,Targeter,StackReferenceGetter,ScoreHolder,HeldItemContext,Nameable,DebugTrackable,EntityLike,UniquelyIdentifiable,Vibrations,ServerWaypoint,Waypoint
- Mappings:
Namespace Name named net/minecraft/entity/passive/AllayEntityintermediary net/minecraft/class_7298official ctl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate classNested 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.world.debug.DebugTrackable
DebugTrackable.DebugDataSupplier<T>, DebugTrackable.TrackerNested classes/interfaces inherited from interface net.minecraft.util.HeldItemContext
HeldItemContext.OffsetNested classes/interfaces inherited from interface net.minecraft.entity.Leashable
Leashable.Elasticity, Leashable.LeashDataNested classes/interfaces inherited from interface net.minecraft.world.waypoint.ServerWaypoint
ServerWaypoint.AzimuthWaypointTracker, ServerWaypoint.ChebyshevDistanceValidatedTracker, ServerWaypoint.ChunkWaypointTracker, ServerWaypoint.ManhattanDistanceValidatedTracker, ServerWaypoint.PositionalWaypointTracker, ServerWaypoint.WaypointTrackerNested classes/interfaces inherited from interface net.minecraft.world.event.Vibrations
Vibrations.Callback, Vibrations.ListenerData, Vibrations.Ticker, Vibrations.VibrationListenerNested classes/interfaces inherited from interface net.minecraft.world.waypoint.Waypoint
Waypoint.Config -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TrackedData<Boolean> private floatprivate static final TrackedData<Boolean> private static final intprivate static final intprivate longprivate static final intprivate static final floatprivate static final floatprivate static final intstatic final intprivate final EntityGameEventHandler<Vibrations.VibrationListener> private final SimpleInventoryprivate static final Vec3iprivate floatprivate final EntityGameEventHandler<AllayEntity.JukeboxEventListener> private BlockPosprivate floatprivate floatprotected static final ImmutableList<MemoryModuleType<?>> protected static final ImmutableList<SensorType<? extends Sensor<? super AllayEntity>>> private floatstatic final ImmutableList<Float> private final Vibrations.Callbackprivate Vibrations.ListenerDataFields inherited from class net.minecraft.entity.mob.PathAwareEntity
DEFAULT_PATHFINDING_FAVORFields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, ARMOR_UPGRADE_CHANCE, ARMOR_UPGRADE_ROLLS, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, CAN_PICK_UP_LOOT_KEY, DEFAULT_CAN_PICKUP_LOOT_CHANCE, DROP_CHANCES_KEY, experiencePoints, field_35039, goalSelector, jumpControl, LEFT_HANDED_KEY, lookControl, MINIMUM_DROPPED_EXPERIENCE_PER_EQUIPMENT, moveControl, navigation, NO_AI_KEY, RANDOM_SPAWN_BONUS_MODIFIER_ID, targetSelectorFields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, ATTRIBUTES_KEY, BABY_SCALE_FACTOR, bodyYaw, brain, BRAIN_KEY, dead, DEATH_TICKS, DEATH_TIME_KEY, deathTime, despawnCounter, elytraFlightController, equipment, EQUIPMENT_KEY, EQUIPMENT_SLOT_ID, FALL_FLYING_KEY, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, field_55952, field_56256, field_63293, field_63294, forwardSpeed, glidingTicks, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, HEALTH_KEY, HURT_BY_TIMESTAMP_KEY, HURT_TIME_KEY, hurtTime, interpolator, itemUseTimeLeft, jumping, lastBodyYaw, lastDamageTaken, lastHandSwingProgress, lastHeadYaw, limbAnimator, LIVING_FLAGS, maxHurtTime, NOT_WEARING_GAZE_DISGUISE_PREDICATE, OFF_HAND_ACTIVE_FLAG, piercingCooldowns, playerHitTimer, preferredHand, riptideAttackDamage, riptideStack, riptideTicks, serverHeadYaw, sidewaysSpeed, SLEEPING_DIMENSIONS, SLEEPING_POS_KEY, stuckArrowTimer, stuckStingerTimer, ticksSinceHandEquipping, ticksSinceLastAttack, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAGFields inherited from class net.minecraft.entity.Entity
age, AIR_KEY, collidedSoftly, CUSTOM_DATA_KEY, CUSTOM_NAME_KEY, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_DISTANCE_KEY, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, FIRE_KEY, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, GLOWING_KEY, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, INVULNERABLE_KEY, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_QUEUED_COLLISION_CHECKS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, MOTION_KEY, movementMultiplier, NO_GRAVITY_KEY, noClip, ON_FIRE_FLAG_INDEX, ON_GROUND_KEY, PASSENGERS_KEY, PORTAL_COOLDOWN_KEY, portalManager, POS_KEY, POSE, random, ridingCooldown, ROTATION_KEY, SILENT_KEY, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnowFields inherited from interface net.minecraft.entity.InventoryOwner
INVENTORY_KEYFields inherited from interface net.minecraft.entity.Leashable
DEFAULT_ELASTIC_DISTANCE, DEFAULT_SNAPPING_DISTANCE, ELASTICITY_MULTIPLIER, field_59997, field_59998, field_59999, field_60003, HELD_ENTITY_ATTACHMENT_POINT, LEASH_HOLDER_ATTACHMENT_POINT, LEASH_NBT_KEY, QUAD_LEASH_ATTACHMENT_POINTSFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAMEFields inherited from interface net.minecraft.world.waypoint.ServerWaypoint
AZIMUTH_THRESHOLDFields inherited from interface net.minecraft.world.event.Vibrations
DEFAULT_FREQUENCY, FREQUENCIES, RESONATIONSFields inherited from interface net.minecraft.world.waypoint.Waypoint
DEFAULT_PLAYER_RANGE, DISABLE_TRACKING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate booleanareDifferentPotions(ItemStack stack, ItemStack stack2) booleanareItemsDifferent(ItemStack stack, ItemStack stack2) private booleanareItemsEqual(ItemStack stack, ItemStack stack2) protected booleanprivate booleanbooleancanGather(ServerWorld world, ItemStack stack) booleancanImmediatelyDespawn(double distanceSquared) booleanprotected Brain.Profile<AllayEntity> protected EntityNavigationcreateNavigation(World world) booleandamage(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.private voiddecrementStackUnlessInCreative(PlayerEntity player, ItemStack stack) protected Brain<?> deserializeBrain(com.mojang.serialization.Dynamic<?> dynamic) protected voiddropInventory(ServerWorld world) private voidprotected voidfall(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.protected SoundEventgetBrain()protected SoundEventprotected SoundEventgetHurtSound(DamageSource source) floatgetItemHoldAnimationTicks(float tickProgress) protected Vec3iprotected floatfloatgetSpinningAnimationTicks(float tickProgress) voidhandleStatus(byte status) Called on the client when the entity receives an entity status from the server.protected voidinitDataTracker(DataTracker.Builder builder) Initializes data tracker.protected ActionResultinteractMob(PlayerEntity player, Hand hand) booleanbooleanReturns whether the entity is flapping their wings.booleanprotected booleanisInSameTeam(Entity other) private booleanprivate booleanbooleanprotected voidloot(ServerWorld world, ItemEntity itemEntity) protected voidmobTick(ServerWorld world) protected voidplayStepSound(BlockPos pos, BlockState state) protected voidreadCustomData(ReadView view) voidsetDancing(boolean dancing) private voidsetDuplicationCooldown(long duplicationCooldown) protected booleanprivate booleanprivate voidvoidtick()Ticks this entity.private voidvoidvoidAllows you to do certain speed and velocity calculations.voidupdateEventHandler(BiConsumer<EntityGameEventHandler<?>, ServerWorld> callback) Called when the entity is loaded to register game event handlers.voidupdateJukeboxPos(BlockPos jukeboxPos, boolean playing) protected voidwriteCustomData(WriteView view) Methods inherited from class net.minecraft.entity.mob.PathAwareEntity
beforeLeashTick, canSpawn, getFollowLeashSpeed, getPathfindingFavor, getPathfindingFavor, isNavigating, isPanicking, onShortLeashTickMethods inherited from class net.minecraft.entity.mob.MobEntity
baseTick, canActVoluntarily, canBeLeashed, canMobSpawn, cannotDespawn, canPickupItem, canRemoveSaddle, canSpawn, canTarget, checkDespawn, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, convertTo, createBodyControl, createEquipmentInventory, createMobAttributes, dropAllForeignEquipment, dropEquipment, dropForeignEquipment, dropLoot, eat, enchantEquipment, enchantMainHandItem, equipBodyArmor, equipLootStack, getAttackBox, getBodyArmor, getControllingPassenger, getDaylightProtectionSlot, getEquipmentDropChances, getEquipmentForSlot, getExperienceToDrop, getJumpControl, getLeashData, getLimitPerChunk, getLookControl, getLootTableKey, getLootTableSeed, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMinAmbientSoundDelay, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getPreferredWeapons, getRiderChargingSpeedMultiplier, getSafeFallDistance, getTarget, getTargetInBrain, getVisibilityCache, hasPositionTarget, hasSaddleEquipped, initEquipment, initGoals, initialize, interact, isAiDisabled, isAttacking, isInAttackRange, isInPositionTargetRange, isInPositionTargetRange, isInPositionTargetRange, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, method_76695, movesIndependently, onEatingGrass, onFinishPathfinding, onLeashRemoved, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, registerTracking, removeFromDimension, setAiDisabled, setAttacking, setBaby, setCanPickUpLoot, setDropGuaranteed, setEquipmentDropChance, setEquipmentFromTable, setEquipmentFromTable, setForwardSpeed, setLeashData, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, snapLongLeash, spawnsTooManyForEachTry, startRiding, stopMovement, swimUpward, tickNewAi, tryAttack, tryEquip, turnHead, updateAttribute, updateEnchantments, updateGoalControlsMethods inherited from class net.minecraft.entity.LivingEntity
addDeathParticles, addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyFluidMovingSpeed, applyMovementEffects, attackLivingEntity, becomeAngry, beforePacketsSent, beforePlayerAttack, canBreatheInWater, canEquip, canEquipFromDispenser, canFreeze, canGlide, canGlideWith, canHaveStatusEffect, canHit, canSee, canSee, canTakeDamage, canTarget, canUsePortals, canUseSlot, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createEquipment, createLivingAttributes, createTracker, damageArmor, damageEquipment, damageHelmet, disableExperienceDropping, drop, dropExperience, dropItem, dropLoot, endCombat, enterCombat, equipStack, forEachBrushedItem, forEachGeneratedItem, forEachGiftedItem, forEachShearedItem, generateLoot, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttackingPlayer, getAttackKnockbackAgainst, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseDimensions, getBaseWaterMovementSpeedMultiplier, getBlockingItem, getBodyYaw, getBoundingBox, getClimbingPos, getControlledMovementInput, getDamageBlockedAmount, getDamageTiltYaw, getDamageTracker, getDespawnCounter, getDimensions, getEffectFadeFactor, getEffectiveGravity, getEntity, getEquippedStack, getEquipSound, getExperienceToDrop, getFallSounds, getGlidingTicks, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getInterpolator, getItemUseTime, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getJumpVelocity, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLocationBasedEnchantmentEffects, getLuck, getMainHandStack, getMaxAbsorption, getMaxHealth, getMaxRelativeHeadRotation, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPassengerRidingPos, getPiercedEntityCount, getPlayerHitTimer, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getProjectileType, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSoundPitch, getStackInArm, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getTimeSinceLastKineticAttack, getVelocityMultiplier, getWaypointConfig, getWeaponDisableBlockingForSeconds, getWeaponStack, getYaw, giveOrDropStack, handleFallDamage, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, hasWaypoint, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBaby, isBlocking, isClimbing, isDead, isEntityLookingAtMe, isExperienceDroppingDisabled, isGliding, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInCreativeMode, isInPiercingCooldown, isInsideWall, isInSwimmingPose, isInvulnerableTo, isJumping, isMobOrPlayer, isPartOfGame, isPushable, isSleeping, isTravellingInFluid, isUsingItem, isUsingRiptide, jump, kill, knockback, knockbackTarget, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, method_76693, method_76694, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onRemoval, onRemove, onSpawnPacket, onStatusEffectApplied, onStatusEffectsRemoved, onStatusEffectUpgraded, onTrackedDataSet, pierce, playAttackSound, playBlockFallSound, playSound, positionInPortal, positionInPortal, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAbsorptionAmountUnclamped, setAttacker, setAttacking, setAttacking, setAttackingPlayer, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setOnFireForTicks, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropExperience, shouldDropExperience, shouldDropLoot, shouldDrown, shouldRenderName, shouldSwimInFluids, sleep, spawnItemParticles, startPiercingCooldown, stopGliding, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickGliding, tickHandSwing, tickInVoid, tickItemStackUsage, tickMovementInput, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, travelFlying, travelFlying, travelInWater, triggerItemPickedUpByEntityCriteria, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, useAttackEnchantmentEffects, wakeUp, wouldNotSuffocateInPoseMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyBubbleColumnEffects, applyBubbleColumnSurfaceEffects, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calcDistanceFromBottomCollision, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canTeleportBetween, castComponentValue, changeLookDirection, clearQueuedCollisionChecks, clientDamage, collides, collidesWith, collidesWithFluid, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyComponentsFrom, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, defrost, detach, detachAllHeldLeashes, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropStack, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, findCollisions, get, 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, getEntityPos, getEntityWorld, getErrorReporterContext, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeadRotationVector, getHeight, getHeldQuadLeashOffsets, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getKineticAttackMovement, getLandingBlockState, getLandingPos, getLastRenderPos, 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, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getSoundCategory, getSplashSound, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWidth, getWorldSpawnPos, getX, getY, getYaw, getZ, handleAttack, handleFall, handleFallDamageForPassengers, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasQuadLeashAttachmentPoints, hasVehicle, igniteByLava, interactAt, isAlwaysInvulnerableTo, isAtCloudHeight, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlyingVehicle, isFrozen, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSneakingPose, isInteractable, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartlyTouchingWater, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, lerpPosAndRotation, limitFallDistance, move, movementInputToVelocity, occludeVibrationSignals, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, onHeldLeashUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, pushOutOfBlocks, raycast, readData, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveData, saveSelfData, scheduleVelocityUpdate, serverDamage, setAir, setAlwaysSyncAbsolute, setAngles, setApplicableComponent, setBoundingBox, setChangeListener, setComponent, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, setInPowderSnow, setInvisible, setInvulnerable, setLastPositionAndAngles, setMovement, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldAlwaysSyncAbsolute, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, snipAllHeldLeashes, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportSpectatingPlayers, teleportTo, tickBlockCollision, tickBlockCollision, tickHeldLeash, tickLastPos, tickPortalCooldown, tickPortalTeleportation, toString, tryUsePortal, unsetRemoved, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedAngles, updateTrackedPosition, updateTrackedPosition, updateTrackedPositionAndAngles, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeDataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTypedMethods inherited from interface net.minecraft.entity.EquipmentHolder
equipStack, getEquippedStack, getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTableMethods inherited from interface net.minecraft.entity.InventoryOwner
readInventory, writeInventoryMethods inherited from interface net.minecraft.entity.Leashable
applyElasticity, attachLeash, canBeLeashedTo, canUseQuadLeashAttachmentPoint, detachLeash, detachLeashWithoutDrop, getDistanceToCenter, getElasticLeashDistance, getLeashHolder, getLeashOffset, getLeashSnappingDistance, getQuadLeashOffsets, isLeashed, mightBeLeashed, onLongLeashTick, readLeashData, setUnresolvedLeashHolderId, writeLeashDataMethods inherited from interface net.minecraft.util.Nameable
getStringifiedNameMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayNameMethods inherited from interface net.minecraft.inventory.StackReferenceGetter
getStackReferences
-
Field Details
-
ITEM_PICKUP_RANGE_EXPANDER
- Mappings:
Namespace Name Mixin selector named ITEM_PICKUP_RANGE_EXPANDERLnet/minecraft/entity/passive/AllayEntity;ITEM_PICKUP_RANGE_EXPANDER:Lnet/minecraft/util/math/Vec3i;intermediary field_38399Lnet/minecraft/class_7298;field_38399:Lnet/minecraft/class_2382;official eLctl;e:Ljy;
-
field_39461
private static final int field_39461- See Also:
- Mappings:
Namespace Name Mixin selector named field_39461Lnet/minecraft/entity/passive/AllayEntity;field_39461:Iintermediary field_39461Lnet/minecraft/class_7298;field_39461:Iofficial cvLctl;cv:I
-
field_39462
private static final float field_39462- See Also:
- Mappings:
Namespace Name Mixin selector named field_39462Lnet/minecraft/entity/passive/AllayEntity;field_39462:Fintermediary field_39462Lnet/minecraft/class_7298;field_39462:Fofficial cwLctl;cw:F
-
field_39463
private static final float field_39463- See Also:
- Mappings:
Namespace Name Mixin selector named field_39463Lnet/minecraft/entity/passive/AllayEntity;field_39463:Fintermediary field_39463Lnet/minecraft/class_7298;field_39463:Fofficial cxLctl;cx:F
-
DEFAULT_DUPLICATION_COOLDOWN
private static final int DEFAULT_DUPLICATION_COOLDOWN- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_DUPLICATION_COOLDOWNLnet/minecraft/entity/passive/AllayEntity;DEFAULT_DUPLICATION_COOLDOWN:Iintermediary field_57621Lnet/minecraft/class_7298;field_57621:Iofficial cyLctl;cy:I
-
DUPLICATION_COOLDOWN
private static final int DUPLICATION_COOLDOWN- See Also:
- Mappings:
Namespace Name Mixin selector named DUPLICATION_COOLDOWNLnet/minecraft/entity/passive/AllayEntity;DUPLICATION_COOLDOWN:Iintermediary field_39465Lnet/minecraft/class_7298;field_39465:Iofficial czLctl;cz:I
-
field_39679
private static final int field_39679- See Also:
- Mappings:
Namespace Name Mixin selector named field_39679Lnet/minecraft/entity/passive/AllayEntity;field_39679:Iintermediary field_39679Lnet/minecraft/class_7298;field_39679:Iofficial cALctl;cA:I
-
field_54974
public static final int field_54974- See Also:
- Mappings:
Namespace Name Mixin selector named field_54974Lnet/minecraft/entity/passive/AllayEntity;field_54974:Iintermediary field_54974Lnet/minecraft/class_7298;field_54974:Iofficial aLctl;a:I
-
DANCING
- Mappings:
Namespace Name Mixin selector named DANCINGLnet/minecraft/entity/passive/AllayEntity;DANCING:Lnet/minecraft/entity/data/TrackedData;intermediary field_39466Lnet/minecraft/class_7298;field_39466:Lnet/minecraft/class_2940;official cBLctl;cB:Lalw;
-
CAN_DUPLICATE
- Mappings:
Namespace Name Mixin selector named CAN_DUPLICATELnet/minecraft/entity/passive/AllayEntity;CAN_DUPLICATE:Lnet/minecraft/entity/data/TrackedData;intermediary field_39467Lnet/minecraft/class_7298;field_39467:Lnet/minecraft/class_2940;official cCLctl;cC:Lalw;
-
SENSORS
- Mappings:
Namespace Name Mixin selector named SENSORSLnet/minecraft/entity/passive/AllayEntity;SENSORS:Lcom/google/common/collect/ImmutableList;intermediary field_38398Lnet/minecraft/class_7298;field_38398:Lcom/google/common/collect/ImmutableList;official bLctl;b:Lcom/google/common/collect/ImmutableList;
-
MEMORY_MODULES
- Mappings:
Namespace Name Mixin selector named MEMORY_MODULESLnet/minecraft/entity/passive/AllayEntity;MEMORY_MODULES:Lcom/google/common/collect/ImmutableList;intermediary field_38403Lnet/minecraft/class_7298;field_38403:Lcom/google/common/collect/ImmutableList;official cLctl;c:Lcom/google/common/collect/ImmutableList;
-
THROW_SOUND_PITCHES
- Mappings:
Namespace Name Mixin selector named THROW_SOUND_PITCHESLnet/minecraft/entity/passive/AllayEntity;THROW_SOUND_PITCHES:Lcom/google/common/collect/ImmutableList;intermediary field_38937Lnet/minecraft/class_7298;field_38937:Lcom/google/common/collect/ImmutableList;official dLctl;d:Lcom/google/common/collect/ImmutableList;
-
gameEventHandler
- Mappings:
Namespace Name Mixin selector named gameEventHandlerLnet/minecraft/entity/passive/AllayEntity;gameEventHandler:Lnet/minecraft/world/event/listener/EntityGameEventHandler;intermediary field_38401Lnet/minecraft/class_7298;field_38401:Lnet/minecraft/class_5715;official cDLctl;cD:Leth;
-
vibrationListenerData
- Mappings:
Namespace Name Mixin selector named vibrationListenerDataLnet/minecraft/entity/passive/AllayEntity;vibrationListenerData:Lnet/minecraft/world/event/Vibrations$ListenerData;intermediary field_44596Lnet/minecraft/class_7298;field_44596:Lnet/minecraft/class_8514$class_8515;official cELctl;cE:Lett$a;
-
vibrationCallback
- Mappings:
Namespace Name Mixin selector named vibrationCallbackLnet/minecraft/entity/passive/AllayEntity;vibrationCallback:Lnet/minecraft/world/event/Vibrations$Callback;intermediary field_39468Lnet/minecraft/class_7298;field_39468:Lnet/minecraft/class_8514$class_5719;official cFLctl;cF:Lett$d;
-
jukeboxEventHandler
- Mappings:
Namespace Name Mixin selector named jukeboxEventHandlerLnet/minecraft/entity/passive/AllayEntity;jukeboxEventHandler:Lnet/minecraft/world/event/listener/EntityGameEventHandler;intermediary field_39469Lnet/minecraft/class_7298;field_39469:Lnet/minecraft/class_5715;official cGLctl;cG:Leth;
-
inventory
- Mappings:
Namespace Name Mixin selector named inventoryLnet/minecraft/entity/passive/AllayEntity;inventory:Lnet/minecraft/inventory/SimpleInventory;intermediary field_38402Lnet/minecraft/class_7298;field_38402:Lnet/minecraft/class_1277;official cHLctl;cH:Lcdk;
-
jukeboxPos
- Mappings:
Namespace Name Mixin selector named jukeboxPosLnet/minecraft/entity/passive/AllayEntity;jukeboxPos:Lnet/minecraft/util/math/BlockPos;intermediary field_39470Lnet/minecraft/class_7298;field_39470:Lnet/minecraft/class_2338;official cILctl;cI:Lis;
-
duplicationCooldown
private long duplicationCooldown- Mappings:
Namespace Name Mixin selector named duplicationCooldownLnet/minecraft/entity/passive/AllayEntity;duplicationCooldown:Jintermediary field_39471Lnet/minecraft/class_7298;field_39471:Jofficial cJLctl;cJ:J
-
itemHoldAnimationTicks
private float itemHoldAnimationTicks- Mappings:
Namespace Name Mixin selector named itemHoldAnimationTicksLnet/minecraft/entity/passive/AllayEntity;itemHoldAnimationTicks:Fintermediary field_38935Lnet/minecraft/class_7298;field_38935:Fofficial cKLctl;cK:F
-
lastItemHoldAnimationTicks
private float lastItemHoldAnimationTicks- Mappings:
Namespace Name Mixin selector named lastItemHoldAnimationTicksLnet/minecraft/entity/passive/AllayEntity;lastItemHoldAnimationTicks:Fintermediary field_38936Lnet/minecraft/class_7298;field_38936:Fofficial cLLctl;cL:F
-
danceTicks
private float danceTicks- Mappings:
Namespace Name Mixin selector named danceTicksLnet/minecraft/entity/passive/AllayEntity;danceTicks:Fintermediary field_39472Lnet/minecraft/class_7298;field_39472:Fofficial cMLctl;cM:F
-
spinningAnimationTicks
private float spinningAnimationTicks- Mappings:
Namespace Name Mixin selector named spinningAnimationTicksLnet/minecraft/entity/passive/AllayEntity;spinningAnimationTicks:Fintermediary field_39473Lnet/minecraft/class_7298;field_39473:Fofficial cNLctl;cN:F
-
lastSpinningAnimationTicks
private float lastSpinningAnimationTicks- Mappings:
Namespace Name Mixin selector named lastSpinningAnimationTicksLnet/minecraft/entity/passive/AllayEntity;lastSpinningAnimationTicks:Fintermediary field_39474Lnet/minecraft/class_7298;field_39474:Fofficial cOLctl;cO:F
-
-
Constructor Details
-
AllayEntity
- 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>Lcgk;<init>(Lcgu;Ldwo;)V
-
-
Method Details
-
createBrainProfile
- Overrides:
createBrainProfilein classLivingEntity- Mappings:
Namespace Name Mixin selector named createBrainProfileLnet/minecraft/entity/LivingEntity;createBrainProfile()Lnet/minecraft/entity/ai/brain/Brain$Profile;intermediary method_28306Lnet/minecraft/class_1309;method_28306()Lnet/minecraft/class_4095$class_5303;official evLchl;ev()Lcim$b;
-
deserializeBrain
- Overrides:
deserializeBrainin classLivingEntity- Mappings:
Namespace Name Mixin selector named deserializeBrainLnet/minecraft/entity/LivingEntity;deserializeBrain(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/entity/ai/brain/Brain;intermediary method_18867Lnet/minecraft/class_1309;method_18867(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_4095;official aLchl;a(Lcom/mojang/serialization/Dynamic;)Lcim;
-
getBrain
- Overrides:
getBrainin classLivingEntity- Mappings:
Namespace Name Mixin selector named getBrainLnet/minecraft/entity/LivingEntity;getBrain()Lnet/minecraft/entity/ai/brain/Brain;intermediary method_18868Lnet/minecraft/class_1309;method_18868()Lnet/minecraft/class_4095;official euLchl;eu()Lcim;
-
createAllayAttributes
- Mappings:
Namespace Name Mixin selector named createAllayAttributesLnet/minecraft/entity/passive/AllayEntity;createAllayAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;intermediary method_42655Lnet/minecraft/class_7298;method_42655()Lnet/minecraft/class_5132$class_5133;official kLctl;k()Lcir$a;
-
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 aLcgk;a(Lama$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
.invalid reference
flying entities
- Overrides:
travelin classLivingEntity- Parameters:
movementInput- represents the sidewaysSpeed, upwardSpeed, and forwardSpeed of the entity in that order- Mappings:
Namespace Name Mixin selector named travelLnet/minecraft/entity/LivingEntity;travel(Lnet/minecraft/util/math/Vec3d;)Vintermediary method_6091Lnet/minecraft/class_1309;method_6091(Lnet/minecraft/class_243;)Vofficial mLchl;m(Lftm;)V
-
damage
Applies a damage to this entity. The exact implementation differs between subclasses.LivingEntityhas health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.Some entities like
ItemEntityalso have health value, which the overridden method decrements. There also exist several entities, likeEndCrystalEntity, where any damage discards the entity (perhaps with an explosion).If this is overridden, it must check the result of
LivingEntity.isInvulnerableTo(net.minecraft.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 aLcgk;a(Laxf;Lcex;F)Z
-
isInSameTeam
- Overrides:
isInSameTeamin classEntity- Mappings:
Namespace Name Mixin selector named isInSameTeamLnet/minecraft/entity/Entity;isInSameTeam(Lnet/minecraft/entity/Entity;)Zintermediary method_61416Lnet/minecraft/class_1297;method_61416(Lnet/minecraft/class_1297;)Zofficial uLcgk;u(Lcgk;)Z
-
isLikedBy
- Mappings:
Namespace Name Mixin selector named isLikedByLnet/minecraft/entity/passive/AllayEntity;isLikedBy(Lnet/minecraft/entity/Entity;)Zintermediary method_65349Lnet/minecraft/class_7298;method_65349(Lnet/minecraft/class_1297;)Zofficial HLctl;H(Lcgk;)Z
-
playStepSound
- Overrides:
playStepSoundin classEntity- Mappings:
Namespace Name Mixin selector named playStepSoundLnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary method_5712Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial bLcgk;b(Lis;Leoh;)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:
fallin 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, double), which can add or reduce fall damage, emitsGameEvent.HIT_GROUND, then callsEntity.onLanding(). Otherwise, ifheightDifferenceis negative, it subtracts that value fromEntity.fallDistance. - Mappings:
Namespace Name Mixin selector named fallLnet/minecraft/entity/Entity;fall(DZLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_5623Lnet/minecraft/class_1297;method_5623(DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)Vofficial aLcgk;a(DZLeoh;Lis;)V
-
getAmbientSound
- Overrides:
getAmbientSoundin classMobEntity- Mappings:
Namespace Name Mixin selector named getAmbientSoundLnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;intermediary method_5994Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;official WLchn;W()Lbcz;
-
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 hLchl;h(Lcex;)Lbcz;
-
getDeathSound
- Overrides:
getDeathSoundin classLivingEntity- Mappings:
Namespace Name Mixin selector named getDeathSoundLnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;intermediary method_6002Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;official fcLchl;fc()Lbcz;
-
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 fBLchl;fB()F
-
mobTick
-
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_Lchl;d_()V
-
tick
public void tick()Ticks this entity.- Overrides:
tickin 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 tickLnet/minecraft/entity/Entity;tick()Vintermediary method_5773Lnet/minecraft/class_1297;method_5773()Vofficial gLcgk;g()V
-
canPickUpLoot
public boolean canPickUpLoot()- Overrides:
canPickUpLootin classMobEntity- Mappings:
Namespace Name Mixin selector named canPickUpLootLnet/minecraft/entity/LivingEntity;canPickUpLoot()Zintermediary method_5936Lnet/minecraft/class_1309;method_5936()Zofficial gmLchl;gm()Z
-
isHoldingItem
public boolean isHoldingItem()- Mappings:
Namespace Name Mixin selector named isHoldingItemLnet/minecraft/entity/passive/AllayEntity;isHoldingItem()Zintermediary method_43396Lnet/minecraft/class_7298;method_43396()Zofficial pLctl;p()Z
-
canDispenserEquipSlot
- Overrides:
canDispenserEquipSlotin classMobEntity- Mappings:
Namespace Name Mixin selector named canDispenserEquipSlotLnet/minecraft/entity/LivingEntity;canDispenserEquipSlot(Lnet/minecraft/entity/EquipmentSlot;)Zintermediary method_63626Lnet/minecraft/class_1309;method_63626(Lnet/minecraft/class_1304;)Zofficial fLchl;f(Lcgv;)Z
-
isItemPickupCoolingDown
private boolean isItemPickupCoolingDown()- Mappings:
Namespace Name Mixin selector named isItemPickupCoolingDownLnet/minecraft/entity/passive/AllayEntity;isItemPickupCoolingDown()Zintermediary method_42654Lnet/minecraft/class_7298;method_42654()Zofficial gTLctl;gT()Z
-
interactMob
- Overrides:
interactMobin classMobEntity- Mappings:
Namespace Name Mixin selector named interactMobLnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;intermediary method_5992Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;official bLchn;b(Lddm;Lcdb;)Lcdc;
-
updateJukeboxPos
- Mappings:
Namespace Name Mixin selector named updateJukeboxPosLnet/minecraft/entity/passive/AllayEntity;updateJukeboxPos(Lnet/minecraft/util/math/BlockPos;Z)Vintermediary method_44358Lnet/minecraft/class_7298;method_44358(Lnet/minecraft/class_2338;Z)Vofficial bLctl;b(Lis;Z)V
-
getInventory
- Specified by:
getInventoryin interfaceInventoryOwner- Mappings:
Namespace Name Mixin selector named getInventoryLnet/minecraft/entity/InventoryOwner;getInventory()Lnet/minecraft/inventory/SimpleInventory;intermediary method_35199Lnet/minecraft/class_6067;method_35199()Lnet/minecraft/class_1277;official gOLdct;gO()Lcdk;
-
getItemPickUpRangeExpander
- Overrides:
getItemPickUpRangeExpanderin classMobEntity- Mappings:
Namespace Name Mixin selector named getItemPickUpRangeExpanderLnet/minecraft/entity/mob/MobEntity;getItemPickUpRangeExpander()Lnet/minecraft/util/math/Vec3i;intermediary method_42646Lnet/minecraft/class_1308;method_42646()Lnet/minecraft/class_2382;official ZLchn;Z()Ljy;
-
canGather
- Overrides:
canGatherin classMobEntity- Mappings:
Namespace Name Mixin selector named canGatherLnet/minecraft/entity/mob/MobEntity;canGather(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;)Zintermediary method_20820Lnet/minecraft/class_1308;method_20820(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;)Zofficial cLchn;c(Laxf;Ldlt;)Z
-
areItemsEqual
- Mappings:
Namespace Name Mixin selector named areItemsEqualLnet/minecraft/entity/passive/AllayEntity;areItemsEqual(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Zintermediary method_45340Lnet/minecraft/class_7298;method_45340(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Zofficial cLctl;c(Ldlt;Ldlt;)Z
-
areDifferentPotions
- Mappings:
Namespace Name Mixin selector named areDifferentPotionsLnet/minecraft/entity/passive/AllayEntity;areDifferentPotions(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Zintermediary method_45341Lnet/minecraft/class_7298;method_45341(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Zofficial dLctl;d(Ldlt;Ldlt;)Z
-
loot
- Overrides:
lootin classMobEntity- Mappings:
Namespace Name Mixin selector named lootLnet/minecraft/entity/mob/MobEntity;loot(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/ItemEntity;)Vintermediary method_5949Lnet/minecraft/class_1308;method_5949(Lnet/minecraft/class_3218;Lnet/minecraft/class_1542;)Vofficial aLchn;a(Laxf;Lczl;)V
-
isFlappingWings
public boolean isFlappingWings()Returns whether the entity is flapping their wings.Entities flapping their wings will call
Entity.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 boLcgk;bo()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
EntityGameEventHandlerin the entity's constructor, and override this to callcallback. For example:if (this.world instanceof ServerWorld serverWorld) { callback.accept(this.handler, serverWorld); }- Overrides:
updateEventHandlerin classEntity- Mappings:
Namespace Name Mixin selector named updateEventHandlerLnet/minecraft/entity/Entity;updateEventHandler(Ljava/util/function/BiConsumer;)Vintermediary method_42147Lnet/minecraft/class_1297;method_42147(Ljava/util/function/BiConsumer;)Vofficial aLcgk;a(Ljava/util/function/BiConsumer;)V
-
isDancing
public boolean isDancing()- Mappings:
Namespace Name Mixin selector named isDancingLnet/minecraft/entity/passive/AllayEntity;isDancing()Zintermediary method_44359Lnet/minecraft/class_7298;method_44359()Zofficial gPLctl;gP()Z
-
setDancing
public void setDancing(boolean dancing) - Mappings:
Namespace Name Mixin selector named setDancingLnet/minecraft/entity/passive/AllayEntity;setDancing(Z)Vintermediary method_44367Lnet/minecraft/class_7298;method_44367(Z)Vofficial xLctl;x(Z)V
-
shouldStopDancing
private boolean shouldStopDancing()- Mappings:
Namespace Name Mixin selector named shouldStopDancingLnet/minecraft/entity/passive/AllayEntity;shouldStopDancing()Zintermediary method_44361Lnet/minecraft/class_7298;method_44361()Zofficial gULctl;gU()Z
-
getItemHoldAnimationTicks
public float getItemHoldAnimationTicks(float tickProgress) - Mappings:
Namespace Name Mixin selector named getItemHoldAnimationTicksLnet/minecraft/entity/passive/AllayEntity;getItemHoldAnimationTicks(F)Fintermediary method_43397Lnet/minecraft/class_7298;method_43397(F)Fofficial LLctl;L(F)F
-
isSpinning
public boolean isSpinning()- Mappings:
Namespace Name Mixin selector named isSpinningLnet/minecraft/entity/passive/AllayEntity;isSpinning()Zintermediary method_44360Lnet/minecraft/class_7298;method_44360()Zofficial gQLctl;gQ()Z
-
getSpinningAnimationTicks
public float getSpinningAnimationTicks(float tickProgress) - Mappings:
Namespace Name Mixin selector named getSpinningAnimationTicksLnet/minecraft/entity/passive/AllayEntity;getSpinningAnimationTicks(F)Fintermediary method_44368Lnet/minecraft/class_7298;method_44368(F)Fofficial MLctl;M(F)F
-
areItemsDifferent
- Overrides:
areItemsDifferentin classLivingEntity- Mappings:
Namespace Name Mixin selector named areItemsDifferentLnet/minecraft/entity/LivingEntity;areItemsDifferent(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Zintermediary method_45324Lnet/minecraft/class_1309;method_45324(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Zofficial aLchl;a(Ldlt;Ldlt;)Z
-
dropInventory
- Overrides:
dropInventoryin classLivingEntity- Mappings:
Namespace Name Mixin selector named dropInventoryLnet/minecraft/entity/LivingEntity;dropInventory(Lnet/minecraft/server/world/ServerWorld;)Vintermediary method_16078Lnet/minecraft/class_1309;method_16078(Lnet/minecraft/class_3218;)Vofficial gLchl;g(Laxf;)V
-
canImmediatelyDespawn
public boolean canImmediatelyDespawn(double distanceSquared) - Overrides:
canImmediatelyDespawnin classMobEntity- Mappings:
Namespace Name Mixin selector named canImmediatelyDespawnLnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Zintermediary method_5974Lnet/minecraft/class_1308;method_5974(D)Zofficial iLchn;i(D)Z
-
writeCustomData
- Overrides:
writeCustomDatain classMobEntity- Mappings:
Namespace Name Mixin selector named writeCustomDataLnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)Vofficial aLcgk;a(Lfns;)V
-
readCustomData
- Overrides:
readCustomDatain classMobEntity- Mappings:
Namespace Name Mixin selector named readCustomDataLnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)Vofficial aLcgk;a(Lfnq;)V
-
shouldFollowLeash
protected boolean shouldFollowLeash()- Overrides:
shouldFollowLeashin classPathAwareEntity- Mappings:
Namespace Name Mixin selector named shouldFollowLeashLnet/minecraft/entity/mob/PathAwareEntity;shouldFollowLeash()Zintermediary method_43689Lnet/minecraft/class_1314;method_43689()Zofficial gMLcht;gM()Z
-
tickDuplicationCooldown
private void tickDuplicationCooldown()- Mappings:
Namespace Name Mixin selector named tickDuplicationCooldownLnet/minecraft/entity/passive/AllayEntity;tickDuplicationCooldown()Vintermediary method_44362Lnet/minecraft/class_7298;method_44362()Vofficial gVLctl;gV()V
-
setDuplicationCooldown
private void setDuplicationCooldown(long duplicationCooldown) - Mappings:
Namespace Name Mixin selector named setDuplicationCooldownLnet/minecraft/entity/passive/AllayEntity;setDuplicationCooldown(J)Vintermediary method_67660Lnet/minecraft/class_7298;method_67660(J)Vofficial aLctl;a(J)V
-
duplicate
private void duplicate()- Mappings:
Namespace Name Mixin selector named duplicateLnet/minecraft/entity/passive/AllayEntity;duplicate()Vintermediary method_44363Lnet/minecraft/class_7298;method_44363()Vofficial gWLctl;gW()V
-
startDuplicationCooldown
private void startDuplicationCooldown()- Mappings:
Namespace Name Mixin selector named startDuplicationCooldownLnet/minecraft/entity/passive/AllayEntity;startDuplicationCooldown()Vintermediary method_44364Lnet/minecraft/class_7298;method_44364()Vofficial gXLctl;gX()V
-
canDuplicate
private boolean canDuplicate()- Mappings:
Namespace Name Mixin selector named canDuplicateLnet/minecraft/entity/passive/AllayEntity;canDuplicate()Zintermediary method_44365Lnet/minecraft/class_7298;method_44365()Zofficial gYLctl;gY()Z
-
decrementStackUnlessInCreative
- Mappings:
Namespace Name Mixin selector named decrementStackUnlessInCreativeLnet/minecraft/entity/passive/AllayEntity;decrementStackUnlessInCreative(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Vintermediary method_44357Lnet/minecraft/class_7298;method_44357(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Vofficial aLctl;a(Lddm;Ldlt;)V
-
getLeashOffset
- Specified by:
getLeashOffsetin interfaceLeashable- Mappings:
Namespace Name Mixin selector named getLeashOffsetLnet/minecraft/entity/Leashable;getLeashOffset()Lnet/minecraft/util/math/Vec3d;intermediary method_29919Lnet/minecraft/class_9817;method_29919()Lnet/minecraft/class_243;official BLchj;B()Lftm;
-
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:
handleStatusin classMobEntity- See Also:
- API Note:
- To send an entity status, use
World.sendEntityStatus(net.minecraft.entity.Entity, byte). - Mappings:
Namespace Name Mixin selector named handleStatusLnet/minecraft/entity/Entity;handleStatus(B)Vintermediary method_5711Lnet/minecraft/class_1297;method_5711(B)Vofficial bLcgk;b(B)V
-
addHeartParticle
private void addHeartParticle()- Mappings:
Namespace Name Mixin selector named addHeartParticleLnet/minecraft/entity/passive/AllayEntity;addHeartParticle()Vintermediary method_44608Lnet/minecraft/class_7298;method_44608()Vofficial gZLctl;gZ()V
-
getVibrationListenerData
- Specified by:
getVibrationListenerDatain interfaceVibrations- Mappings:
Namespace Name Mixin selector named getVibrationListenerDataLnet/minecraft/world/event/Vibrations;getVibrationListenerData()Lnet/minecraft/world/event/Vibrations$ListenerData;intermediary method_51298Lnet/minecraft/class_8514;method_51298()Lnet/minecraft/class_8514$class_8515;official gRLett;gR()Lett$a;
-
getVibrationCallback
- Specified by:
getVibrationCallbackin interfaceVibrations- Mappings:
Namespace Name Mixin selector named getVibrationCallbackLnet/minecraft/world/event/Vibrations;getVibrationCallback()Lnet/minecraft/world/event/Vibrations$Callback;intermediary method_51299Lnet/minecraft/class_8514;method_51299()Lnet/minecraft/class_8514$class_5719;official gSLett;gS()Lett$d;
-