Class ChickenEntity
- All Implemented Interfaces:
ComponentsAccess
,Attackable
,DataTracked
,EquipmentHolder
,Leashable
,Targeter
,ScoreHolder
,Nameable
,EntityLike
,UniquelyIdentifiable
- Mappings:
Namespace Name named net/minecraft/entity/passive/ChickenEntity
intermediary net/minecraft/class_1428
official ckb
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.passive.PassiveEntity
PassiveEntity.PassiveData
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final EntityDimensions
private static final boolean
int
private float
float
float
boolean
float
float
float
private static final TrackedData
<RegistryEntry<ChickenVariant>> Fields inherited from class net.minecraft.entity.passive.AnimalEntity
BREEDING_COOLDOWN
Fields inherited from class net.minecraft.entity.passive.PassiveEntity
BABY_AGE, breedingAge, DEFAULT_AGE, DEFAULT_FORCED_AGE, forcedAge, happyTicksRemaining
Fields inherited from class net.minecraft.entity.mob.PathAwareEntity
DEFAULT_PATHFINDING_FAVOR
Fields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, DEFAULT_CAN_PICKUP_LOOT_CHANCE, experiencePoints, field_35039, goalSelector, jumpControl, lookControl, MINIMUM_DROPPED_EXPERIENCE_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, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, elytraFlightController, equipment, EQUIPMENT_SLOT_ID, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, field_55952, field_56256, forwardSpeed, glidingTicks, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, interpolator, itemUseTimeLeft, jumping, lastAttackedTicks, lastBodyYaw, lastDamageTaken, lastHandSwingProgress, lastHeadYaw, limbAnimator, LIVING_FLAGS, maxHurtTime, NOT_WEARING_GAZE_DISGUISE_PREDICATE, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, riptideAttackDamage, riptideStack, riptideTicks, serverHeadYaw, sidewaysSpeed, SLEEPING_DIMENSIONS, 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, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Adds the effects of this entity flapping, usually to the world the entity is in.boolean
canImmediatelyDespawn
(double distanceSquared) protected void
createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) <T> T
get
(ComponentType<? extends T> type) protected SoundEvent
getBaseDimensions
(EntityPose pose) protected SoundEvent
protected int
getExperienceToDrop
(ServerWorld world) Called when this entity is killed and returns the amount of experience to drop.protected SoundEvent
getHurtSound
(DamageSource source) boolean
protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.protected void
initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData) boolean
isBreedingItem
(ItemStack stack) protected boolean
Returns whether the entity is flapping their wings.protected void
playStepSound
(BlockPos pos, BlockState state) void
Reads custom data fromnbt
.protected <T> boolean
setApplicableComponent
(ComponentType<T> type, T value) void
setHasJockey
(boolean hasJockey) void
setVariant
(RegistryEntry<ChickenVariant> variant) void
protected void
updatePassengerPosition
(Entity passenger, Entity.PositionUpdater positionUpdater) void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.passive.AnimalEntity
applyDamage, breed, breed, canBreedWith, canEat, createAnimalAttributes, eat, getLoveTicks, getLovingPlayer, getMinAmbientSoundDelay, getPathfindingFavor, handleStatus, interactMob, isInLove, isLightLevelValidForNaturalSpawn, isValidNaturalSpawn, lovePlayer, mobTick, playEatSound, resetLoveTicks, setLoveTicks
Methods inherited from class net.minecraft.entity.passive.PassiveEntity
getBreedingAge, getForcedAge, getHappyTicksRemaining, growUp, growUp, isBaby, isReadyToBreed, onGrowUp, onTrackedDataSet, setBaby, setBreedingAge, toGrowUpAge
Methods inherited from class net.minecraft.entity.mob.PathAwareEntity
beforeLeashTick, canSpawn, getFollowLeashSpeed, getPathfindingFavor, isNavigating, isPanicking, onShortLeashTick, shouldFollowLeash
Methods inherited from class net.minecraft.entity.mob.MobEntity
baseTick, breakLongLeash, canActVoluntarily, canBeLeashed, canDispenserEquipSlot, canGather, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canTarget, canUseRangedWeapon, checkDespawn, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, convertTo, createBodyControl, createEquipmentInventory, createMobAttributes, createNavigation, dropAllForeignEquipment, dropEquipment, dropForeignEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipBodyArmor, equipLootStack, getAttackBox, getBodyArmor, getControllingPassenger, getEquipmentDropChances, getEquipmentForSlot, getItemPickUpRangeExpander, getJumpControl, getLeashData, getLimitPerChunk, getLookControl, getLootTableKey, getLootTableSeed, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getPreferredWeapons, getSafeFallDistance, getTarget, getTargetInBrain, getVisibilityCache, hasPositionTarget, hasSaddleEquipped, initEquipment, interact, isAffectedByDaylight, isAiDisabled, isAttacking, isDisallowedInPeaceful, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, loot, movesIndependently, onEatingGrass, onFinishPathfinding, onLeashRemoved, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playAttackSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, sendAiDebugData, setAiDisabled, setAttacking, setCanPickUpLoot, setDropGuaranteed, setEquipmentDropChance, setEquipmentFromTable, setEquipmentFromTable, setForwardSpeed, setLeashData, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, startRiding, stopMovement, swimUpward, tick, tickNewAi, tryAttack, tryEquip, turnHead, updateAttribute, updateEnchantments, updateGoalControls
Methods inherited from class net.minecraft.entity.LivingEntity
addDeathParticles, addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyFluidMovingSpeed, applyMovementEffects, areItemsDifferent, attackLivingEntity, becomeAngry, canBreatheInWater, canEquip, canEquipFromDispenser, canFreeze, canGlide, canGlideWith, canHaveStatusEffect, canHit, canSee, canSee, canTakeDamage, canTarget, canUsePortals, canUseSlot, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createEquipment, createLivingAttributes, damage, damageArmor, damageEquipment, damageHelmet, deserializeBrain, disableExperienceDropping, drop, dropExperience, dropInventory, dropItem, endCombat, enterCombat, equipStack, fall, forEachGeneratedItem, forEachGiftedItem, forEachShearedItem, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttackingPlayer, getAttackKnockbackAgainst, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseWaterMovementSpeedMultiplier, getBlockingItem, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageBlockedAmount, getDamageTiltYaw, getDamageTracker, getDespawnCounter, getDimensions, getEffectFadeFactor, getEffectiveGravity, getEquippedStack, getEquipSound, getExperienceToDrop, getFallSounds, getGlidingTicks, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getInterpolator, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getJumpVelocity, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLocationBasedEnchantmentEffects, getLuck, getMainHandStack, getMaxAbsorption, getMaxHealth, getMaxRelativeHeadRotation, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPassengerRidingPos, getPlayerHitTimer, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getProjectileType, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getSoundVolume, getStackInArm, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getWeaponDisableBlockingForSeconds, getWeaponStack, getYaw, giveOrDropStack, handleFallDamage, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, 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, 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, shouldRenderName, shouldSwimInFluids, sleep, spawnItemParticles, stopGliding, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickGliding, tickHandSwing, tickInVoid, tickItemStackUsage, tickMovementInput, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, travel, triggerItemPickedUpByEntityCriteria, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, wakeUp, wouldNotSuffocateInPose
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyBubbleColumnEffects, applyBubbleColumnSurfaceEffects, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canSprintAsVehicle, canStartRiding, canTeleportBetween, castComponentValue, changeLookDirection, clientDamage, collidesWith, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, defrost, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyX, getBodyY, getBodyZ, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getMaxAir, getMinFreezeDamageTicks, getMoveEffect, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getServer, 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, handleFall, handleFallDamageForPassengers, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasVehicle, igniteByLava, interactAt, isAlwaysInvulnerableTo, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFrozen, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInSneakingPose, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, lerpPosAndRotation, limitFallDistance, move, movementInputToVelocity, occludeVibrationSignals, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, pushOutOfBlocks, 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, 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, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportTo, tickBlockCollision, tickBlockCollision, tickPortalCooldown, tickPortalTeleportation, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTyped
Methods inherited from interface net.minecraft.entity.EquipmentHolder
equipStack, getEquippedStack, getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTable
Methods inherited from interface net.minecraft.entity.Leashable
applyLeashElasticity, attachLeash, canLeashAttachTo, detachLeash, detachLeashWithoutDrop, getLeashHolder, isLeashed, mightBeLeashed, readLeashDataFromNbt, setUnresolvedLeashHolderId, writeLeashDataToNbt
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
BABY_BASE_DIMENSIONS
- Mappings:
Namespace Name Mixin selector named BABY_BASE_DIMENSIONS
Lnet/minecraft/entity/passive/ChickenEntity;BABY_BASE_DIMENSIONS:Lnet/minecraft/entity/EntityDimensions;
intermediary field_47770
Lnet/minecraft/class_1428;field_47770:Lnet/minecraft/class_4048;
official bQ
Lckb;bQ:Lbxh;
-
VARIANT
- Mappings:
Namespace Name Mixin selector named VARIANT
Lnet/minecraft/entity/passive/ChickenEntity;VARIANT:Lnet/minecraft/entity/data/TrackedData;
intermediary field_56537
Lnet/minecraft/class_1428;field_56537:Lnet/minecraft/class_2940;
official bR
Lckb;bR:Laku;
-
DEFAULT_HAS_JOCKEY
private static final boolean DEFAULT_HAS_JOCKEY- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_HAS_JOCKEY
Lnet/minecraft/entity/passive/ChickenEntity;DEFAULT_HAS_JOCKEY:Z
intermediary field_57605
Lnet/minecraft/class_1428;field_57605:Z
official bS
Lckb;bS:Z
-
flapProgress
public float flapProgress- Mappings:
Namespace Name Mixin selector named flapProgress
Lnet/minecraft/entity/passive/ChickenEntity;flapProgress:F
intermediary field_6741
Lnet/minecraft/class_1428;field_6741:F
official bI
Lckb;bI:F
-
maxWingDeviation
public float maxWingDeviation- Mappings:
Namespace Name Mixin selector named maxWingDeviation
Lnet/minecraft/entity/passive/ChickenEntity;maxWingDeviation:F
intermediary field_6743
Lnet/minecraft/class_1428;field_6743:F
official bJ
Lckb;bJ:F
-
lastMaxWingDeviation
public float lastMaxWingDeviation- Mappings:
Namespace Name Mixin selector named lastMaxWingDeviation
Lnet/minecraft/entity/passive/ChickenEntity;lastMaxWingDeviation:F
intermediary field_6738
Lnet/minecraft/class_1428;field_6738:F
official bK
Lckb;bK:F
-
lastFlapProgress
public float lastFlapProgress- Mappings:
Namespace Name Mixin selector named lastFlapProgress
Lnet/minecraft/entity/passive/ChickenEntity;lastFlapProgress:F
intermediary field_6736
Lnet/minecraft/class_1428;field_6736:F
official bM
Lckb;bM:F
-
flapSpeed
public float flapSpeed- Mappings:
Namespace Name Mixin selector named flapSpeed
Lnet/minecraft/entity/passive/ChickenEntity;flapSpeed:F
intermediary field_6737
Lnet/minecraft/class_1428;field_6737:F
official bN
Lckb;bN:F
-
field_28639
private float field_28639- Mappings:
Namespace Name Mixin selector named field_28639
Lnet/minecraft/entity/passive/ChickenEntity;field_28639:F
intermediary field_28639
Lnet/minecraft/class_1428;field_28639:F
official bT
Lckb;bT:F
-
eggLayTime
public int eggLayTime- Mappings:
Namespace Name Mixin selector named eggLayTime
Lnet/minecraft/entity/passive/ChickenEntity;eggLayTime:I
intermediary field_6739
Lnet/minecraft/class_1428;field_6739:I
official bO
Lckb;bO:I
-
hasJockey
public boolean hasJockey- Mappings:
Namespace Name Mixin selector named hasJockey
Lnet/minecraft/entity/passive/ChickenEntity;hasJockey:Z
intermediary field_6740
Lnet/minecraft/class_1428;field_6740:Z
official bP
Lckb;bP:Z
-
-
Constructor Details
-
ChickenEntity
- 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>
Lbxe;<init>(Lbxn;Ldkj;)V
-
-
Method Details
-
initGoals
protected void initGoals() -
getBaseDimensions
- Overrides:
getBaseDimensions
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getBaseDimensions
Lnet/minecraft/entity/LivingEntity;getBaseDimensions(Lnet/minecraft/entity/EntityPose;)Lnet/minecraft/entity/EntityDimensions;
intermediary method_55694
Lnet/minecraft/class_1309;method_55694(Lnet/minecraft/class_4050;)Lnet/minecraft/class_4048;
official e
Lbyf;e(Lbyr;)Lbxh;
-
createChickenAttributes
- Mappings:
Namespace Name Mixin selector named createChickenAttributes
Lnet/minecraft/entity/passive/ChickenEntity;createChickenAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
intermediary method_26882
Lnet/minecraft/class_1428;method_26882()Lnet/minecraft/class_5132$class_5133;
official m
Lckb;m()Lbzk$a;
-
tickMovement
public void tickMovement()- Overrides:
tickMovement
in classAnimalEntity
- 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_
Lbyf;d_()V
-
isFlappingWings
protected boolean isFlappingWings()Returns whether the entity is flapping their wings.Entities flapping their wings will call
addFlapEffects()
insideEntity.addAirTravelEffects()
.- Overrides:
isFlappingWings
in classEntity
- Returns:
- whether the entity is flapping their wings
- Mappings:
Namespace Name Mixin selector named isFlappingWings
Lnet/minecraft/entity/Entity;isFlappingWings()Z
intermediary method_5776
Lnet/minecraft/class_1297;method_5776()Z
official aZ
Lbxe;aZ()Z
-
addFlapEffects
protected void addFlapEffects()Adds the effects of this entity flapping, usually to the world the entity is in.The actual flapping logic should be done in
MobEntity.tick()
instead.This is only called when the entity is flapping wings and the entity has any move effect, from
Entity.addAirTravelEffects()
.- Overrides:
addFlapEffects
in classEntity
- Mappings:
Namespace Name Mixin selector named addFlapEffects
Lnet/minecraft/entity/Entity;addFlapEffects()V
intermediary method_5801
Lnet/minecraft/class_1297;method_5801()V
official aY
Lbxe;aY()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 s
Lbyh;s()Lawx;
-
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
Lbyf;e(Lbvt;)Lawx;
-
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 j_
Lbyf;j_()Lawx;
-
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
Lbxe;b(Liw;Lebq;)V
-
createChild
@Nullable public @Nullable ChickenEntity createChild(ServerWorld serverWorld, PassiveEntity passiveEntity) - Specified by:
createChild
in classPassiveEntity
- Mappings:
Namespace Name Mixin selector named createChild
Lnet/minecraft/entity/passive/ChickenEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/ChickenEntity;
intermediary method_6471
Lnet/minecraft/class_1428;method_6471(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1428;
official b
Lckb;b(Lasb;Lbwu;)Lckb;
-
initialize
public EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData) - Overrides:
initialize
in classPassiveEntity
- Mappings:
Namespace Name Mixin selector named initialize
Lnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;)Lnet/minecraft/entity/EntityData;
intermediary method_5943
Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;)Lnet/minecraft/class_1315;
official a
Lbyh;a(Ldla;Lbva;Lbxm;Lbyx;)Lbyx;
-
isBreedingItem
- Specified by:
isBreedingItem
in classAnimalEntity
- Mappings:
Namespace Name Mixin selector named isBreedingItem
Lnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
intermediary method_6481
Lnet/minecraft/class_1429;method_6481(Lnet/minecraft/class_1799;)Z
official i
Lcjv;i(Ldak;)Z
-
getExperienceToDrop
Called when this entity is killed and returns the amount of experience to drop.- Overrides:
getExperienceToDrop
in classAnimalEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named getExperienceToDrop
Lnet/minecraft/entity/LivingEntity;getExperienceToDrop(Lnet/minecraft/server/world/ServerWorld;)I
intermediary method_6110
Lnet/minecraft/class_1309;method_6110(Lnet/minecraft/class_3218;)I
official e
Lbyf;e(Lasb;)I
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTracker
in classPassiveEntity
- 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
Lbxe;a(Laky$a;)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 classAnimalEntity
- 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
Lbxe;a(Lua;)V
-
writeCustomDataToNbt
Writes custom data tonbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
- Overrides:
writeCustomDataToNbt
in classAnimalEntity
- 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
Lbxe;b(Lua;)V
-
setVariant
- Mappings:
Namespace Name Mixin selector named setVariant
Lnet/minecraft/entity/passive/ChickenEntity;setVariant(Lnet/minecraft/registry/entry/RegistryEntry;)V
intermediary method_67521
Lnet/minecraft/class_1428;method_67521(Lnet/minecraft/class_6880;)V
official j
Lckb;j(Ljg;)V
-
getVariant
- Mappings:
Namespace Name Mixin selector named getVariant
Lnet/minecraft/entity/passive/ChickenEntity;getVariant()Lnet/minecraft/registry/entry/RegistryEntry;
intermediary method_67522
Lnet/minecraft/class_1428;method_67522()Lnet/minecraft/class_6880;
official p
Lckb;p()Ljg;
-
get
- Specified by:
get
in interfaceComponentsAccess
- Overrides:
get
in classEntity
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/component/ComponentsAccess;get(Lnet/minecraft/component/ComponentType;)Ljava/lang/Object;
intermediary method_58694
Lnet/minecraft/class_9473;method_58694(Lnet/minecraft/class_9331;)Ljava/lang/Object;
official a
Lkg;a(Lkk;)Ljava/lang/Object;
-
copyComponentsFrom
- Overrides:
copyComponentsFrom
in classEntity
- Mappings:
Namespace Name Mixin selector named copyComponentsFrom
Lnet/minecraft/entity/Entity;copyComponentsFrom(Lnet/minecraft/component/ComponentsAccess;)V
intermediary method_66649
Lnet/minecraft/class_1297;method_66649(Lnet/minecraft/class_9473;)V
official a
Lbxe;a(Lkg;)V
-
setApplicableComponent
- Overrides:
setApplicableComponent
in classEntity
- Mappings:
Namespace Name Mixin selector named setApplicableComponent
Lnet/minecraft/entity/Entity;setApplicableComponent(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)Z
intermediary method_66654
Lnet/minecraft/class_1297;method_66654(Lnet/minecraft/class_9331;Ljava/lang/Object;)Z
official b
Lbxe;b(Lkk;Ljava/lang/Object;)Z
-
canImmediatelyDespawn
public boolean canImmediatelyDespawn(double distanceSquared) - Overrides:
canImmediatelyDespawn
in classAnimalEntity
- 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
Lbyh;h(D)Z
-
updatePassengerPosition
- Overrides:
updatePassengerPosition
in classEntity
- Mappings:
Namespace Name Mixin selector named updatePassengerPosition
Lnet/minecraft/entity/Entity;updatePassengerPosition(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity$PositionUpdater;)V
intermediary method_5865
Lnet/minecraft/class_1297;method_5865(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297$class_4738;)V
official a
Lbxe;a(Lbxe;Lbxe$a;)V
-
hasJockey
public boolean hasJockey()- Mappings:
Namespace Name Mixin selector named hasJockey
Lnet/minecraft/entity/passive/ChickenEntity;hasJockey()Z
intermediary method_6472
Lnet/minecraft/class_1428;method_6472()Z
official u
Lckb;u()Z
-
setHasJockey
public void setHasJockey(boolean hasJockey) - Mappings:
Namespace Name Mixin selector named setHasJockey
Lnet/minecraft/entity/passive/ChickenEntity;setHasJockey(Z)V
intermediary method_6473
Lnet/minecraft/class_1428;method_6473(Z)V
official w
Lckb;w(Z)V
-