Class ParrotEntity
- All Implemented Interfaces:
ComponentsAccess,Attackable,DataTracked,EquipmentHolder,Flutterer,Leashable,Tameable,Targeter,ScoreHolder,Nameable,EntityLike,UniquelyIdentifiable
- Mappings:
Namespace Name named net/minecraft/entity/passive/ParrotEntityintermediary net/minecraft/class_1453official ckp
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classstatic enumNested classes/interfaces inherited from class net.minecraft.entity.passive.TameableEntity
TameableEntity.TameableEscapeDangerGoalNested classes/interfaces inherited from class net.minecraft.entity.passive.PassiveEntity
PassiveEntity.PassiveDataNested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSoundsNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReasonNested classes/interfaces inherited from interface net.minecraft.entity.Leashable
Leashable.LeashData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatfloatprivate floatfloatfloatfloat(package private) static final Map<EntityType<?>, SoundEvent> private booleanprivate static final TrackedData<Integer> Fields inherited from class net.minecraft.entity.passive.TameableEntity
field_52002, OWNER_UUID, TAMEABLE_FLAGSFields inherited from class net.minecraft.entity.passive.AnimalEntity
BREEDING_COOLDOWNFields inherited from class net.minecraft.entity.passive.PassiveEntity
BABY_AGE, breedingAge, DEFAULT_AGE, DEFAULT_FORCED_AGE, forcedAge, happyTicksRemainingFields inherited from class net.minecraft.entity.mob.PathAwareEntity
DEFAULT_PATHFINDING_FAVORFields 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, targetSelectorFields 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_FLAGFields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, 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, wasInPowderSnowFields inherited from interface net.minecraft.entity.Leashable
LEASH_NBT_KEY, MAX_LEASH_LENGTH, SHORT_LEASH_LENGTHFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds the effects of this entity flapping, usually to the world the entity is in.booleancanBreedWith(AnimalEntity other) static booleancanSpawn(EntityType<ParrotEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) protected booleanprotected voidcreateChild(ServerWorld world, PassiveEntity entity) protected EntityNavigationcreateNavigation(World world) booleandamage(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.protected voidfall(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.private void<T> Tget(ComponentType<? extends T> type) protected SoundEventprotected SoundEventgetHurtSound(DamageSource source) Returns the offset from the entity's position where the leash is attached to.static SoundEventgetRandomSound(World world, Random random) private static SoundEventgetSound(EntityType<?> imitate) Returns the sound category for sounds from this entity.floatstatic floatgetSoundPitch(Random random) static booleanimitateNearbyMob(World world, Entity parrot) protected voidinitDataTracker(DataTracker.Builder builder) Initializes data tracker.protected voidinitialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData) interactMob(PlayerEntity player, Hand hand) booleanisBaby()booleanisBreedingItem(ItemStack stack) protected booleanReturns whether the entity is flapping their wings.booleanisInAir()booleanReturns whether the entity can be pushed by other entities.booleanprotected voidplayStepSound(BlockPos pos, BlockState state) protected voidvoidReads custom data fromnbt.protected <T> booleansetApplicableComponent(ComponentType<T> type, T value) voidsetNearbySongPlaying(BlockPos songPosition, boolean playing) private voidsetVariant(ParrotEntity.Variant variant) voidvoidWrites custom data tonbt.Methods inherited from class net.minecraft.entity.passive.TameableShoulderEntity
isReadyToSitOnPlayer, mountOnto, tickMethods inherited from class net.minecraft.entity.passive.TameableEntity
beforeLeashTick, canAttackWithOwner, canBeLeashed, cannotFollowOwner, canTarget, getOwnerReference, getScoreboardTeam, handleStatus, isInSameTeam, isInSittingPose, isOwner, isSitting, isTamed, onDeath, setInSittingPose, setOwner, setOwner, setSitting, setTamed, setTamedBy, shouldTryTeleportToOwner, showEmoteParticle, tryTeleportToOwner, updateAttributesForTamedMethods inherited from class net.minecraft.entity.passive.AnimalEntity
applyDamage, breed, breed, canEat, canImmediatelyDespawn, createAnimalAttributes, eat, getExperienceToDrop, getLoveTicks, getLovingPlayer, getMinAmbientSoundDelay, getPathfindingFavor, isInLove, isLightLevelValidForNaturalSpawn, isValidNaturalSpawn, lovePlayer, mobTick, playEatSound, resetLoveTicks, setLoveTicksMethods inherited from class net.minecraft.entity.passive.PassiveEntity
getBreedingAge, getForcedAge, getHappyTicksRemaining, growUp, growUp, isReadyToBreed, onGrowUp, onTrackedDataSet, setBaby, setBreedingAge, toGrowUpAgeMethods inherited from class net.minecraft.entity.mob.PathAwareEntity
canSpawn, getFollowLeashSpeed, getPathfindingFavor, isNavigating, isPanicking, onShortLeashTick, shouldFollowLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
baseTick, breakLongLeash, canActVoluntarily, canDispenserEquipSlot, canGather, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canTarget, canUseRangedWeapon, checkDespawn, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, convertTo, createBodyControl, createEquipmentInventory, createMobAttributes, 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, tickNewAi, tryAttack, tryEquip, turnHead, updateAttribute, updateEnchantments, updateGoalControlsMethods 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, canUsePortals, canUseSlot, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createEquipment, createLivingAttributes, damageArmor, damageEquipment, damageHelmet, deserializeBrain, disableExperienceDropping, drop, dropExperience, dropInventory, dropItem, endCombat, enterCombat, equipStack, forEachGeneratedItem, forEachGiftedItem, forEachShearedItem, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttackingPlayer, getAttackKnockbackAgainst, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseDimensions, 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, 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, isSleeping, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onEquipStack, onKilledBy, onRemoval, onSpawnPacket, onStatusEffectApplied, onStatusEffectsRemoved, onStatusEffectUpgraded, playBlockFallSound, playSound, positionInPortal, positionInPortal, pushAwayFrom, remove, removePowderSnowSlow, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAbsorptionAmountUnclamped, setAttacker, setAttacking, setAttacking, setAttackingPlayer, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, 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, wouldNotSuffocateInPoseMethods 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, 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, getServer, getSplashSound, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getWorldSpawnPos, getX, getY, getYaw, getZ, handleAttack, handleFall, 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, 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, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeNbtMethods 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.Leashable
applyLeashElasticity, attachLeash, canLeashAttachTo, detachLeash, detachLeashWithoutDrop, getLeashHolder, isLeashed, mightBeLeashed, readLeashDataFromNbt, setUnresolvedLeashHolderId, writeLeashDataToNbtMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayNameMethods inherited from interface net.minecraft.entity.Tameable
getOwner, getTopLevelOwner, getWorld
-
Field Details
-
VARIANT
- Mappings:
Namespace Name Mixin selector named VARIANTLnet/minecraft/entity/passive/ParrotEntity;VARIANT:Lnet/minecraft/entity/data/TrackedData;intermediary field_6826Lnet/minecraft/class_1453;field_6826:Lnet/minecraft/class_2940;official bQLckp;bQ:Laku;
-
CAN_IMITATE
- Mappings:
Namespace Name Mixin selector named CAN_IMITATELnet/minecraft/entity/passive/ParrotEntity;CAN_IMITATE:Ljava/util/function/Predicate;intermediary field_6821Lnet/minecraft/class_1453;field_6821:Ljava/util/function/Predicate;official bRLckp;bR:Ljava/util/function/Predicate;
-
MOB_SOUNDS
- Mappings:
Namespace Name Mixin selector named MOB_SOUNDSLnet/minecraft/entity/passive/ParrotEntity;MOB_SOUNDS:Ljava/util/Map;intermediary field_6822Lnet/minecraft/class_1453;field_6822:Ljava/util/Map;official bSLckp;bS:Ljava/util/Map;
-
flapProgress
public float flapProgress- Mappings:
Namespace Name Mixin selector named flapProgressLnet/minecraft/entity/passive/ParrotEntity;flapProgress:Fintermediary field_6818Lnet/minecraft/class_1453;field_6818:Fofficial bMLckp;bM:F
-
maxWingDeviation
public float maxWingDeviation- Mappings:
Namespace Name Mixin selector named maxWingDeviationLnet/minecraft/entity/passive/ParrotEntity;maxWingDeviation:Fintermediary field_6819Lnet/minecraft/class_1453;field_6819:Fofficial bNLckp;bN:F
-
lastMaxWingDeviation
public float lastMaxWingDeviation- Mappings:
Namespace Name Mixin selector named lastMaxWingDeviationLnet/minecraft/entity/passive/ParrotEntity;lastMaxWingDeviation:Fintermediary field_6827Lnet/minecraft/class_1453;field_6827:Fofficial bOLckp;bO:F
-
lastFlapProgress
public float lastFlapProgress- Mappings:
Namespace Name Mixin selector named lastFlapProgressLnet/minecraft/entity/passive/ParrotEntity;lastFlapProgress:Fintermediary field_6829Lnet/minecraft/class_1453;field_6829:Fofficial bPLckp;bP:F
-
flapSpeed
private float flapSpeed- Mappings:
Namespace Name Mixin selector named flapSpeedLnet/minecraft/entity/passive/ParrotEntity;flapSpeed:Fintermediary field_6824Lnet/minecraft/class_1453;field_6824:Fofficial bTLckp;bT:F
-
field_28640
private float field_28640- Mappings:
Namespace Name Mixin selector named field_28640Lnet/minecraft/entity/passive/ParrotEntity;field_28640:Fintermediary field_28640Lnet/minecraft/class_1453;field_28640:Fofficial bULckp;bU:F
-
songPlaying
private boolean songPlaying- Mappings:
Namespace Name Mixin selector named songPlayingLnet/minecraft/entity/passive/ParrotEntity;songPlaying:Zintermediary field_6823Lnet/minecraft/class_1453;field_6823:Zofficial bVLckp;bV:Z
-
songSource
- Mappings:
Namespace Name Mixin selector named songSourceLnet/minecraft/entity/passive/ParrotEntity;songSource:Lnet/minecraft/util/math/BlockPos;intermediary field_6820Lnet/minecraft/class_1453;field_6820:Lnet/minecraft/class_2338;official bWLckp;bW:Liw;
-
-
Constructor Details
-
ParrotEntity
- 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>Lbxe;<init>(Lbxn;Ldkj;)V
-
-
Method Details
-
initialize
@Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData) - Overrides:
initializein classPassiveEntity- Mappings:
Namespace Name Mixin selector named initializeLnet/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_5943Lnet/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 aLbyh;a(Ldla;Lbva;Lbxm;Lbyx;)Lbyx;
-
isBaby
public boolean isBaby()- Overrides:
isBabyin classPassiveEntity- Mappings:
Namespace Name Mixin selector named isBabyLnet/minecraft/entity/LivingEntity;isBaby()Zintermediary method_6109Lnet/minecraft/class_1309;method_6109()Zofficial e_Lbyf;e_()Z
-
initGoals
protected void initGoals() -
createParrotAttributes
- Mappings:
Namespace Name Mixin selector named createParrotAttributesLnet/minecraft/entity/passive/ParrotEntity;createParrotAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;intermediary method_26889Lnet/minecraft/class_1453;method_26889()Lnet/minecraft/class_5132$class_5133;official gGLckp;gG()Lbzk$a;
-
tickMovement
public void tickMovement()- Overrides:
tickMovementin classAnimalEntity- Mappings:
Namespace Name Mixin selector named tickMovementLnet/minecraft/entity/LivingEntity;tickMovement()Vintermediary method_6007Lnet/minecraft/class_1309;method_6007()Vofficial d_Lbyf;d_()V
-
setNearbySongPlaying
- Overrides:
setNearbySongPlayingin classLivingEntity- Mappings:
Namespace Name Mixin selector named setNearbySongPlayingLnet/minecraft/entity/LivingEntity;setNearbySongPlaying(Lnet/minecraft/util/math/BlockPos;Z)Vintermediary method_6006Lnet/minecraft/class_1309;method_6006(Lnet/minecraft/class_2338;Z)Vofficial aLbyf;a(Liw;Z)V
-
isSongPlaying
public boolean isSongPlaying()- Mappings:
Namespace Name Mixin selector named isSongPlayingLnet/minecraft/entity/passive/ParrotEntity;isSongPlaying()Zintermediary method_6582Lnet/minecraft/class_1453;method_6582()Zofficial gHLckp;gH()Z
-
flapWings
private void flapWings()- Mappings:
Namespace Name Mixin selector named flapWingsLnet/minecraft/entity/passive/ParrotEntity;flapWings()Vintermediary method_6578Lnet/minecraft/class_1453;method_6578()Vofficial gLLckp;gL()V
-
imitateNearbyMob
- Mappings:
Namespace Name Mixin selector named imitateNearbyMobLnet/minecraft/entity/passive/ParrotEntity;imitateNearbyMob(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;)Zintermediary method_6587Lnet/minecraft/class_1453;method_6587(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;)Zofficial aLckp;a(Ldkj;Lbxe;)Z
-
interactMob
- Overrides:
interactMobin classAnimalEntity- 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 bLbyh;b(Lcsi;Lbvb;)Lbvc;
-
isBreedingItem
- Specified by:
isBreedingItemin classAnimalEntity- Mappings:
Namespace Name Mixin selector named isBreedingItemLnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Zintermediary method_6481Lnet/minecraft/class_1429;method_6481(Lnet/minecraft/class_1799;)Zofficial iLcjv;i(Ldak;)Z
-
canSpawn
public static boolean canSpawn(EntityType<ParrotEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) - Mappings:
Namespace Name Mixin selector named canSpawnLnet/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;)Zintermediary method_20667Lnet/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;)Zofficial cLckp;c(Lbxn;Ldkk;Lbxm;Liw;Lbai;)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:
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 aLbxe;a(DZLebq;Liw;)V
-
canBreedWith
- Overrides:
canBreedWithin classAnimalEntity- Mappings:
Namespace Name Mixin selector named canBreedWithLnet/minecraft/entity/passive/AnimalEntity;canBreedWith(Lnet/minecraft/entity/passive/AnimalEntity;)Zintermediary method_6474Lnet/minecraft/class_1429;method_6474(Lnet/minecraft/class_1429;)Zofficial aLcjv;a(Lcjv;)Z
-
createChild
- Specified by:
createChildin classPassiveEntity- Mappings:
Namespace Name Mixin selector named createChildLnet/minecraft/entity/passive/PassiveEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/PassiveEntity;intermediary method_5613Lnet/minecraft/class_1296;method_5613(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1296;official aLbwu;a(Lasb;Lbwu;)Lbwu;
-
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 sLbyh;s()Lawx;
-
getRandomSound
- Mappings:
Namespace Name Mixin selector named getRandomSoundLnet/minecraft/entity/passive/ParrotEntity;getRandomSound(Lnet/minecraft/world/World;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/sound/SoundEvent;intermediary method_6583Lnet/minecraft/class_1453;method_6583(Lnet/minecraft/class_1937;Lnet/minecraft/class_5819;)Lnet/minecraft/class_3414;official aLckp;a(Ldkj;Lbai;)Lawx;
-
getSound
- Mappings:
Namespace Name Mixin selector named getSoundLnet/minecraft/entity/passive/ParrotEntity;getSound(Lnet/minecraft/entity/EntityType;)Lnet/minecraft/sound/SoundEvent;intermediary method_6586Lnet/minecraft/class_1453;method_6586(Lnet/minecraft/class_1299;)Lnet/minecraft/class_3414;official bLckp;b(Lbxn;)Lawx;
-
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 eLbyf;e(Lbvt;)Lawx;
-
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 j_Lbyf;j_()Lawx;
-
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 bLbxe;b(Liw;Lebq;)V
-
isFlappingWings
protected boolean isFlappingWings()Returns whether the entity is flapping their wings.Entities flapping their wings will call
addFlapEffects()insideEntity.addAirTravelEffects().- Overrides:
isFlappingWingsin classEntity- Returns:
- whether the entity is flapping their wings
- Mappings:
Namespace Name Mixin selector named isFlappingWingsLnet/minecraft/entity/Entity;isFlappingWings()Zintermediary method_5776Lnet/minecraft/class_1297;method_5776()Zofficial aZLbxe;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
TameableShoulderEntity.tick()instead.This is only called when the entity is flapping wings and the entity has any move effect, from
Entity.addAirTravelEffects().- Overrides:
addFlapEffectsin classEntity- Mappings:
Namespace Name Mixin selector named addFlapEffectsLnet/minecraft/entity/Entity;addFlapEffects()Vintermediary method_5801Lnet/minecraft/class_1297;method_5801()Vofficial aYLbxe;aY()V
-
getSoundPitch
public float getSoundPitch()- Overrides:
getSoundPitchin classLivingEntity- Mappings:
Namespace Name Mixin selector named getSoundPitchLnet/minecraft/entity/LivingEntity;getSoundPitch()Fintermediary method_6017Lnet/minecraft/class_1309;method_6017()Fofficial ffLbyf;ff()F
-
getSoundPitch
- Mappings:
Namespace Name Mixin selector named getSoundPitchLnet/minecraft/entity/passive/ParrotEntity;getSoundPitch(Lnet/minecraft/util/math/random/Random;)Fintermediary method_6580Lnet/minecraft/class_1453;method_6580(Lnet/minecraft/class_5819;)Fofficial aLckp;a(Lbai;)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:
getSoundCategoryin classEntity- Returns:
- the sound category for sounds from this entity
- See Also:
- Mappings:
Namespace Name Mixin selector named getSoundCategoryLnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;intermediary method_5634Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;official dmLbxe;dm()Lawz;
-
isPushable
public boolean isPushable()Returns whether the entity can be pushed by other entities.- Overrides:
isPushablein classLivingEntity- Returns:
- whether the entity can be pushed by other entities
- Mappings:
Namespace Name Mixin selector named isPushableLnet/minecraft/entity/Entity;isPushable()Zintermediary method_5810Lnet/minecraft/class_1297;method_5810()Zofficial bGLbxe;bG()Z
-
pushAway
- Overrides:
pushAwayin classLivingEntity- Mappings:
Namespace Name Mixin selector named pushAwayLnet/minecraft/entity/LivingEntity;pushAway(Lnet/minecraft/entity/Entity;)Vintermediary method_6087Lnet/minecraft/class_1309;method_6087(Lnet/minecraft/class_1297;)Vofficial DLbyf;D(Lbxe;)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 aLbxe;a(Lasb;Lbvt;F)Z
-
getVariant
- Mappings:
Namespace Name Mixin selector named getVariantLnet/minecraft/entity/passive/ParrotEntity;getVariant()Lnet/minecraft/entity/passive/ParrotEntity$Variant;intermediary method_6584Lnet/minecraft/class_1453;method_6584()Lnet/minecraft/class_1453$class_7989;official gILckp;gI()Lckp$b;
-
setVariant
- Mappings:
Namespace Name Mixin selector named setVariantLnet/minecraft/entity/passive/ParrotEntity;setVariant(Lnet/minecraft/entity/passive/ParrotEntity$Variant;)Vintermediary method_47848Lnet/minecraft/class_1453;method_47848(Lnet/minecraft/class_1453$class_7989;)Vofficial aLckp;a(Lckp$b;)V
-
get
- Specified by:
getin interfaceComponentsAccess- Overrides:
getin classEntity- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/component/ComponentsAccess;get(Lnet/minecraft/component/ComponentType;)Ljava/lang/Object;intermediary method_58694Lnet/minecraft/class_9473;method_58694(Lnet/minecraft/class_9331;)Ljava/lang/Object;official aLkg;a(Lkk;)Ljava/lang/Object;
-
copyComponentsFrom
- Overrides:
copyComponentsFromin classEntity- Mappings:
Namespace Name Mixin selector named copyComponentsFromLnet/minecraft/entity/Entity;copyComponentsFrom(Lnet/minecraft/component/ComponentsAccess;)Vintermediary method_66649Lnet/minecraft/class_1297;method_66649(Lnet/minecraft/class_9473;)Vofficial aLbxe;a(Lkg;)V
-
setApplicableComponent
- Overrides:
setApplicableComponentin classEntity- Mappings:
Namespace Name Mixin selector named setApplicableComponentLnet/minecraft/entity/Entity;setApplicableComponent(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)Zintermediary method_66654Lnet/minecraft/class_1297;method_66654(Lnet/minecraft/class_9331;Ljava/lang/Object;)Zofficial bLbxe;b(Lkk;Ljava/lang/Object;)Z
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTrackerin 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 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 aLbxe;a(Laky$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:
writeCustomDataToNbtin classTameableEntity- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vofficial bLbxe;b(Lua;)V
-
readCustomDataFromNbt
Reads custom data fromnbt. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
nbtmight not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readCustomDataFromNbtin classTameableEntity- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vofficial aLbxe;a(Lua;)V
-
isInAir
public boolean isInAir() -
canTeleportOntoLeaves
protected boolean canTeleportOntoLeaves()- Overrides:
canTeleportOntoLeavesin classTameableEntity- Mappings:
Namespace Name Mixin selector named canTeleportOntoLeavesLnet/minecraft/entity/passive/TameableEntity;canTeleportOntoLeaves()Zintermediary method_60716Lnet/minecraft/class_1321;method_60716()Zofficial gyLbzb;gy()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:
getLeashOffsetin classEntity- Returns:
- the offset from the entity's position where the leash is attached to
- See Also:
- Mappings:
Namespace Name Mixin selector named getLeashOffsetLnet/minecraft/entity/Entity;getLeashOffset()Lnet/minecraft/util/math/Vec3d;intermediary method_29919Lnet/minecraft/class_1297;method_29919()Lnet/minecraft/class_243;official cTLbxe;cT()Lfgc;
-