Class ParrotEntity
- All Implemented Interfaces:
Attackable
,DataTracked
,EquipmentHolder
,Flutterer
,Leashable
,Tameable
,Targeter
,VariantHolder<ParrotEntity.Variant>
,ScoreHolder
,CommandOutput
,Nameable
,EntityLike
- Mappings:
Namespace Name named net/minecraft/entity/passive/ParrotEntity
intermediary net/minecraft/class_1453
official cfu
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
static enum
Nested classes/interfaces inherited from class net.minecraft.entity.passive.TameableEntity
TameableEntity.TameableEscapeDangerGoal
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
Modifier and TypeFieldDescriptionprivate float
float
private float
float
(package private) static final Map
<EntityType<?>, SoundEvent> float
float
private boolean
private static final TrackedData
<Integer> Fields inherited from class net.minecraft.entity.passive.TameableEntity
field_52002, OWNER_UUID, TAMEABLE_FLAGS
Fields inherited from class net.minecraft.entity.passive.AnimalEntity
BREEDING_COOLDOWN
Fields inherited from class net.minecraft.entity.passive.PassiveEntity
BABY_AGE, breedingAge, forcedAge, happyTicksRemaining
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, EQUIPMENT_SLOT_ID, fallFlyingTicks, field_30063, field_30069, field_30070, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, field_6215, forwardSpeed, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, limbAnimator, LIVING_FLAGS, lookDirection, maxHurtTime, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevScale, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideAttackDamage, riptideStack, riptideTicks, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAG
Fields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inPowderSnow, intersectionChecked, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFire
Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY
Fields inherited from interface net.minecraft.entity.Leashable
LEASH_NBT_KEY, MAX_LEASH_LENGTH, SHORT_LEASH_LENGTH
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Adds the effects of this entity flapping, usually to the world the entity is in.boolean
canBreedWith
(AnimalEntity other) static boolean
canSpawn
(EntityType<ParrotEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) protected boolean
createChild
(ServerWorld world, PassiveEntity entity) protected EntityNavigation
createNavigation
(World world) boolean
damage
(DamageSource source, float amount) Applies a damage to this entity.protected void
fall
(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.private void
protected SoundEvent
protected SoundEvent
getHurtSound
(DamageSource source) Returns the offset from the entity's position where the leash is attached to.static SoundEvent
getRandomSound
(World world, Random random) private static SoundEvent
getSound
(EntityType<?> imitate) Returns the sound category for sounds from this entity.float
static float
getSoundPitch
(Random random) static boolean
imitateNearbyMob
(World world, Entity parrot) protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.protected void
initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData) interactMob
(PlayerEntity player, Hand hand) boolean
isBaby()
boolean
isBreedingItem
(ItemStack stack) protected boolean
Returns whether the entity is flapping their wings.boolean
isInAir()
boolean
Returns whether the entity can be pushed by other entities.boolean
protected void
playStepSound
(BlockPos pos, BlockState state) protected void
void
Reads custom data fromnbt
.void
setNearbySongPlaying
(BlockPos songPosition, boolean playing) void
setVariant
(ParrotEntity.Variant variant) void
void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.passive.TameableShoulderEntity
isReadyToSitOnPlayer, mountOnto, tick
Methods inherited from class net.minecraft.entity.passive.TameableEntity
beforeLeashTick, canAttackWithOwner, canBeLeashed, cannotFollowOwner, canTarget, getOwnerUuid, getScoreboardTeam, handleStatus, isInSittingPose, isOwner, isSitting, isTamed, isTeammate, onDeath, setInSittingPose, setOwner, setOwnerUuid, setSitting, setTamed, shouldTryTeleportToOwner, showEmoteParticle, tryTeleportToOwner, updateAttributesForTamed
Methods inherited from class net.minecraft.entity.passive.AnimalEntity
applyDamage, breed, breed, canEat, canImmediatelyDespawn, eat, getLoveTicks, getLovingPlayer, getMinAmbientSoundDelay, getPathfindingFavor, getXpToDrop, isInLove, isLightLevelValidForNaturalSpawn, isValidNaturalSpawn, lovePlayer, mobTick, resetLoveTicks, setLoveTicks
Methods inherited from class net.minecraft.entity.passive.PassiveEntity
getBreedingAge, growUp, growUp, isReadyToBreed, onGrowUp, onTrackedDataSet, setBaby, setBreedingAge, toGrowUpAge
Methods inherited from class net.minecraft.entity.mob.PathAwareEntity
canSpawn, getFollowLeashSpeed, getPathfindingFavor, isNavigating, isPanicking, onShortLeashTick, shouldFollowLeash
Methods inherited from class net.minecraft.entity.mob.MobEntity
baseTick, canEquip, canGather, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canTarget, canUseRangedWeapon, canUseSlot, checkDespawn, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, createBodyControl, createMobAttributes, detachLeash, detachLeash, dropAllEquipment, dropEquipment, dropEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipBodyArmor, equipLootStack, equipStack, getAllArmorItems, getArmorItems, getAttackBox, getBodyArmor, getControllingPassenger, getDropChance, getEquipmentForSlot, getEquippedStack, getHandItems, getItemPickUpRangeExpander, getJumpControl, getLeashData, getLimitPerChunk, getLookControl, getLootTable, getLootTableId, getLootTableSeed, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getSafeFallDistance, getTarget, getTargetInBrain, getVisibilityCache, hasPositionTarget, initEquipment, interact, isAffectedByDaylight, isAiDisabled, isAttacking, isDisallowedInPeaceful, isHorseArmor, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, loot, movesIndependently, onEatingGrass, onFinishPathfinding, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playAttackSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, sendAiDebugData, setAiDisabled, setAttacking, setCanPickUpLoot, setEquipmentDropChance, setEquipmentFromTable, setEquipmentFromTable, setForwardSpeed, setLeashData, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, startRiding, stopMovement, swimUpward, tickNewAi, tryAttack, tryEquip, turnHead, updateDropChances, updateEnchantments, updateGoalControls
Methods inherited from class net.minecraft.entity.LivingEntity
addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyFluidMovingSpeed, applyMovementEffects, applyMovementInput, areItemsDifferent, attackLivingEntity, blockedByShield, canBreatheInWater, canFreeze, canHaveStatusEffect, canHit, canSee, canTakeDamage, canUsePortals, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, damageArmor, damageEquipment, damageHelmet, damageShield, deserializeBrain, disableExperienceDropping, disablesShield, drop, dropInventory, dropXp, eatFood, endCombat, enterCombat, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseDimensions, getBaseMovementSpeedMultiplier, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageTiltYaw, getDamageTracker, getDespawnCounter, getDimensions, getDrinkSound, getEatSound, getEquippedItems, getFallFlyingTicks, getFallSounds, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getJumpVelocity, getKnockbackAgainst, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, getLocationBasedEnchantmentEffects, getMainHandStack, getMaxAbsorption, getMaxHealth, getMaxRelativeHeadRotation, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPassengerRidingPos, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getProjectileType, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundVolume, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getVisibilityBoundingBox, getWeaponStack, getXpToDrop, getYaw, handleFallDamage, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBlocking, isClimbing, isDead, isExperienceDroppingDisabled, isFallFlying, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInCreativeMode, isInsideWall, isInSwimmingPose, isInvulnerableTo, isMobOrPlayer, isPartOfGame, isSleeping, isTarget, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onEquipStack, onKilledBy, onRemoval, onSpawnPacket, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, playBlockFallSound, playSound, positionInPortal, positionInPortal, processEquippedStack, pushAwayFrom, remove, removePowderSnowSlow, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAbsorptionAmountUnclamped, setAttacker, setAttacking, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNoDrag, setOnFireForTicks, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropXp, shouldDropLoot, shouldDropXp, shouldRenderName, shouldSwimInFluids, sleep, spawnConsumptionEffects, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickHandSwing, tickInVoid, tickItemStackUsage, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, travel, triggerItemPickedUpByEntityCriteria, tryEatFood, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUp, wouldNotSuffocateInPose
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, 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, checkBlockCollision, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, extinguishWithSound, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMinFreezeDamageTicks, getMoveEffect, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getServer, getSplashSound, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getWorldSpawnPos, getX, getY, getYaw, getZ, handleAttack, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasVehicle, interactAt, isAttackable, isCollidable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFrozen, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, lerpPosAndRotation, limitFallDistance, move, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playSwimSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setAngles, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportTo, tickPortalCooldown, tickPortalTeleportation, toNbtList, toNbtList, toString, tryCheckBlockCollision, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateVelocity, updateWaterState, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilenced
Methods inherited from interface net.minecraft.entity.EquipmentHolder
getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTable
Methods inherited from interface net.minecraft.entity.Leashable
applyLeashElasticity, attachLeash, canLeashAttachTo, getLeashHolder, isLeashed, mightBeLeashed, readLeashDataFromNbt, setUnresolvedLeashHolderId, writeLeashDataToNbt
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
VARIANT
- Mappings:
Namespace Name Mixin selector named VARIANT
Lnet/minecraft/entity/passive/ParrotEntity;VARIANT:Lnet/minecraft/entity/data/TrackedData;
intermediary field_6826
Lnet/minecraft/class_1453;field_6826:Lnet/minecraft/class_2940;
official ck
Lcfu;ck:Lajw;
-
CAN_IMITATE
- Mappings:
Namespace Name Mixin selector named CAN_IMITATE
Lnet/minecraft/entity/passive/ParrotEntity;CAN_IMITATE:Ljava/util/function/Predicate;
intermediary field_6821
Lnet/minecraft/class_1453;field_6821:Ljava/util/function/Predicate;
official cl
Lcfu;cl:Ljava/util/function/Predicate;
-
MOB_SOUNDS
- Mappings:
Namespace Name Mixin selector named MOB_SOUNDS
Lnet/minecraft/entity/passive/ParrotEntity;MOB_SOUNDS:Ljava/util/Map;
intermediary field_6822
Lnet/minecraft/class_1453;field_6822:Ljava/util/Map;
official cm
Lcfu;cm:Ljava/util/Map;
-
flapProgress
public float flapProgress- Mappings:
Namespace Name Mixin selector named flapProgress
Lnet/minecraft/entity/passive/ParrotEntity;flapProgress:F
intermediary field_6818
Lnet/minecraft/class_1453;field_6818:F
official cg
Lcfu;cg:F
-
maxWingDeviation
public float maxWingDeviation- Mappings:
Namespace Name Mixin selector named maxWingDeviation
Lnet/minecraft/entity/passive/ParrotEntity;maxWingDeviation:F
intermediary field_6819
Lnet/minecraft/class_1453;field_6819:F
official ch
Lcfu;ch:F
-
prevMaxWingDeviation
public float prevMaxWingDeviation- Mappings:
Namespace Name Mixin selector named prevMaxWingDeviation
Lnet/minecraft/entity/passive/ParrotEntity;prevMaxWingDeviation:F
intermediary field_6827
Lnet/minecraft/class_1453;field_6827:F
official ci
Lcfu;ci:F
-
prevFlapProgress
public float prevFlapProgress- Mappings:
Namespace Name Mixin selector named prevFlapProgress
Lnet/minecraft/entity/passive/ParrotEntity;prevFlapProgress:F
intermediary field_6829
Lnet/minecraft/class_1453;field_6829:F
official cj
Lcfu;cj:F
-
flapSpeed
private float flapSpeed- Mappings:
Namespace Name Mixin selector named flapSpeed
Lnet/minecraft/entity/passive/ParrotEntity;flapSpeed:F
intermediary field_6824
Lnet/minecraft/class_1453;field_6824:F
official cn
Lcfu;cn:F
-
field_28640
private float field_28640- Mappings:
Namespace Name Mixin selector named field_28640
Lnet/minecraft/entity/passive/ParrotEntity;field_28640:F
intermediary field_28640
Lnet/minecraft/class_1453;field_28640:F
official co
Lcfu;co:F
-
songPlaying
private boolean songPlaying- Mappings:
Namespace Name Mixin selector named songPlaying
Lnet/minecraft/entity/passive/ParrotEntity;songPlaying:Z
intermediary field_6823
Lnet/minecraft/class_1453;field_6823:Z
official cp
Lcfu;cp:Z
-
songSource
- Mappings:
Namespace Name Mixin selector named songSource
Lnet/minecraft/entity/passive/ParrotEntity;songSource:Lnet/minecraft/util/math/BlockPos;
intermediary field_6820
Lnet/minecraft/class_1453;field_6820:Lnet/minecraft/class_2338;
official cq
Lcfu;cq:Ljd;
-
-
Constructor Details
-
ParrotEntity
- 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>
Lbsr;<init>(Lbsx;Ldcw;)V
-
-
Method Details
-
initialize
@Nullable public @Nullable 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
Lbtp;a(Lddl;Lbqp;Lbtr;Lbuh;)Lbuh;
-
isBaby
public boolean isBaby()- Overrides:
isBaby
in classPassiveEntity
- Mappings:
Namespace Name Mixin selector named isBaby
Lnet/minecraft/entity/LivingEntity;isBaby()Z
intermediary method_6109
Lnet/minecraft/class_1309;method_6109()Z
official o_
Lbtn;o_()Z
-
initGoals
protected void initGoals() -
createParrotAttributes
- Mappings:
Namespace Name Mixin selector named createParrotAttributes
Lnet/minecraft/entity/passive/ParrotEntity;createParrotAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
intermediary method_26889
Lnet/minecraft/class_1453;method_26889()Lnet/minecraft/class_5132$class_5133;
official gu
Lcfu;gu()Lbuv$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 m_
Lbtn;m_()V
-
setNearbySongPlaying
- Overrides:
setNearbySongPlaying
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named setNearbySongPlaying
Lnet/minecraft/entity/LivingEntity;setNearbySongPlaying(Lnet/minecraft/util/math/BlockPos;Z)V
intermediary method_6006
Lnet/minecraft/class_1309;method_6006(Lnet/minecraft/class_2338;Z)V
official a
Lbtn;a(Ljd;Z)V
-
isSongPlaying
public boolean isSongPlaying()- Mappings:
Namespace Name Mixin selector named isSongPlaying
Lnet/minecraft/entity/passive/ParrotEntity;isSongPlaying()Z
intermediary method_6582
Lnet/minecraft/class_1453;method_6582()Z
official gv
Lcfu;gv()Z
-
flapWings
private void flapWings()- Mappings:
Namespace Name Mixin selector named flapWings
Lnet/minecraft/entity/passive/ParrotEntity;flapWings()V
intermediary method_6578
Lnet/minecraft/class_1453;method_6578()V
official gz
Lcfu;gz()V
-
imitateNearbyMob
- Mappings:
Namespace Name Mixin selector named imitateNearbyMob
Lnet/minecraft/entity/passive/ParrotEntity;imitateNearbyMob(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;)Z
intermediary method_6587
Lnet/minecraft/class_1453;method_6587(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;)Z
official a
Lcfu;a(Ldcw;Lbsr;)Z
-
interactMob
- Overrides:
interactMob
in classAnimalEntity
- 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
Lbtp;b(Lcmx;Lbqq;)Lbqr;
-
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 o
Lcfe;o(Lcuq;)Z
-
canSpawn
public static boolean canSpawn(EntityType<ParrotEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) - Mappings:
Namespace Name Mixin selector named canSpawn
Lnet/minecraft/entity/passive/ParrotEntity;canSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Z
intermediary method_20667
Lnet/minecraft/class_1453;method_20667(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z
official c
Lcfu;c(Lbsx;Ldcx;Lbtr;Ljd;Layw;)Z
-
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
Lbsr;a(DZLdtc;Ljd;)V
-
canBreedWith
- Overrides:
canBreedWith
in classAnimalEntity
- Mappings:
Namespace Name Mixin selector named canBreedWith
Lnet/minecraft/entity/passive/AnimalEntity;canBreedWith(Lnet/minecraft/entity/passive/AnimalEntity;)Z
intermediary method_6474
Lnet/minecraft/class_1429;method_6474(Lnet/minecraft/class_1429;)Z
official a
Lcfe;a(Lcfe;)Z
-
createChild
- Specified by:
createChild
in classPassiveEntity
- Mappings:
Namespace Name Mixin selector named createChild
Lnet/minecraft/entity/passive/PassiveEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/PassiveEntity;
intermediary method_5613
Lnet/minecraft/class_1296;method_5613(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1296;
official a
Lbsl;a(Laqu;Lbsl;)Lbsl;
-
getAmbientSound
- Overrides:
getAmbientSound
in classMobEntity
- Mappings:
Namespace Name Mixin selector named getAmbientSound
Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_5994
Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
official v
Lbtp;v()Lavo;
-
getRandomSound
- Mappings:
Namespace Name Mixin selector named getRandomSound
Lnet/minecraft/entity/passive/ParrotEntity;getRandomSound(Lnet/minecraft/world/World;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/sound/SoundEvent;
intermediary method_6583
Lnet/minecraft/class_1453;method_6583(Lnet/minecraft/class_1937;Lnet/minecraft/class_5819;)Lnet/minecraft/class_3414;
official a
Lcfu;a(Ldcw;Layw;)Lavo;
-
getSound
- Mappings:
Namespace Name Mixin selector named getSound
Lnet/minecraft/entity/passive/ParrotEntity;getSound(Lnet/minecraft/entity/EntityType;)Lnet/minecraft/sound/SoundEvent;
intermediary method_6586
Lnet/minecraft/class_1453;method_6586(Lnet/minecraft/class_1299;)Lnet/minecraft/class_3414;
official b
Lcfu;b(Lbsx;)Lavo;
-
getHurtSound
- Overrides:
getHurtSound
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getHurtSound
Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
intermediary method_6011
Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
official d
Lbtn;d(Lbrk;)Lavo;
-
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 n_
Lbtn;n_()Lavo;
-
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
Lbsr;b(Ljd;Ldtc;)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 aW
Lbsr;aW()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
TameableShoulderEntity.tick()
instead.This is only called when the entity is flapping wings and the entity has any move effect, from
Entity.addAirTravelEffects()
.- Overrides:
addFlapEffects
in classEntity
- Mappings:
Namespace Name Mixin selector named addFlapEffects
Lnet/minecraft/entity/Entity;addFlapEffects()V
intermediary method_5801
Lnet/minecraft/class_1297;method_5801()V
official aV
Lbsr;aV()V
-
getSoundPitch
public float getSoundPitch()- Overrides:
getSoundPitch
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getSoundPitch
Lnet/minecraft/entity/LivingEntity;getSoundPitch()F
intermediary method_6017
Lnet/minecraft/class_1309;method_6017()F
official fb
Lbtn;fb()F
-
getSoundPitch
- Mappings:
Namespace Name Mixin selector named getSoundPitch
Lnet/minecraft/entity/passive/ParrotEntity;getSoundPitch(Lnet/minecraft/util/math/random/Random;)F
intermediary method_6580
Lnet/minecraft/class_1453;method_6580(Lnet/minecraft/class_5819;)F
official a
Lcfu;a(Layw;)F
-
getSoundCategory
Returns the sound category for sounds from this entity.This is used by
Entity.playSound(SoundEvent, float, float)
and defaults toSoundCategory.NEUTRAL
. Hostile entities should override this to returnSoundCategory.HOSTILE
.- Overrides:
getSoundCategory
in classEntity
- Returns:
- the sound category for sounds from this entity
- See Also:
- Mappings:
Namespace Name Mixin selector named getSoundCategory
Lnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;
intermediary method_5634
Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;
official de
Lbsr;de()Lavq;
-
isPushable
public boolean isPushable()Returns whether the entity can be pushed by other entities.- Overrides:
isPushable
in classLivingEntity
- Returns:
- whether the entity can be pushed by other entities
- Mappings:
Namespace Name Mixin selector named isPushable
Lnet/minecraft/entity/Entity;isPushable()Z
intermediary method_5810
Lnet/minecraft/class_1297;method_5810()Z
official bB
Lbsr;bB()Z
-
pushAway
- Overrides:
pushAway
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named pushAway
Lnet/minecraft/entity/LivingEntity;pushAway(Lnet/minecraft/entity/Entity;)V
intermediary method_6087
Lnet/minecraft/class_1309;method_6087(Lnet/minecraft/class_1297;)V
official E
Lbtn;E(Lbsr;)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.entity.damage.DamageSource)
and return early.- Overrides:
damage
in classLivingEntity
- Returns:
- whether the entity was actually damaged
- See Also:
- Mappings:
Namespace Name Mixin selector named damage
Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
intermediary method_5643
Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
official a
Lbsr;a(Lbrk;F)Z
-
getVariant
- Specified by:
getVariant
in interfaceVariantHolder<ParrotEntity.Variant>
- Mappings:
Namespace Name Mixin selector named getVariant
Lnet/minecraft/entity/passive/ParrotEntity;getVariant()Lnet/minecraft/entity/passive/ParrotEntity$Variant;
intermediary method_6584
Lnet/minecraft/class_1453;method_6584()Lnet/minecraft/class_1453$class_7989;
official gw
Lcfu;gw()Lcfu$b;
-
setVariant
- Specified by:
setVariant
in interfaceVariantHolder<ParrotEntity.Variant>
- Mappings:
Namespace Name Mixin selector named setVariant
Lnet/minecraft/entity/passive/ParrotEntity;setVariant(Lnet/minecraft/entity/passive/ParrotEntity$Variant;)V
intermediary method_47848
Lnet/minecraft/class_1453;method_47848(Lnet/minecraft/class_1453$class_7989;)V
official a
Lcfu;a(Lcfu$b;)V
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTracker
in classTameableEntity
- 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
Lbsr;a(Laka$a;)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 classTameableEntity
- 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
Lbsr;b(Lub;)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 classTameableEntity
- 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
Lbsr;a(Lub;)V
-
isInAir
public boolean isInAir() -
canTeleportOntoLeaves
protected boolean canTeleportOntoLeaves()- Overrides:
canTeleportOntoLeaves
in classTameableEntity
- Mappings:
Namespace Name Mixin selector named canTeleportOntoLeaves
Lnet/minecraft/entity/passive/TameableEntity;canTeleportOntoLeaves()Z
intermediary method_60716
Lnet/minecraft/class_1321;method_60716()Z
official go
Lbul;go()Z
-
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 cM
Lbsr;cM()Lexc;
-