net.minecraft.world.entity.animal

public class Parrot

extends ShoulderRidingEntity implements FlyingAnimal

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, UniquelyIdentifyable, ScoreHolder, DataComponentGetter, Attackable, EquipmentUser, Leashable, Targeting, OwnableEntity, FlyingAnimal

cje
net.minecraft.world.entity.animal.Parrot
net.minecraft.class_1453
net.minecraft.entity.passive.ParrotEntity

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Integer>
bN
DATA_VARIANT_ID
field_6826
VARIANT
private static final Predicate<Mob>
bO
NOT_PARROT_PREDICATE
field_6821
CAN_IMITATE
static final Map<EntityType<?>, SoundEvent>
bP
MOB_SOUND_MAP
field_6822
MOB_SOUNDS
public float
bJ
flap
field_6818
flapProgress
public float
bK
flapSpeed
field_6819
maxWingDeviation
public float
bL
oFlapSpeed
field_6827
lastMaxWingDeviation
public float
bM
oFlap
field_6829
lastFlapProgress
private float
bQ
flapping
field_6824
flapSpeed
private float
bR
nextFlap
field_28640
field_28640
private boolean
bS
partyParrot
field_6823
songPlaying
private BlockPos
bT
jukebox
field_6820
songSource

Constructor summary

ModifierConstructor
public (EntityType<? extends Parrot> arg0, Level arg1)

Method summary

Modifier and TypeMethod
public SpawnGroupData
a(djg arg0, btw arg1, bwi arg2, bxr arg3)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, EntitySpawnReason arg2, SpawnGroupData arg3)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
public boolean
n_()
isBaby()
method_6109()
isBaby()
protected void
D()
registerGoals()
method_5959()
initGoals()
public static AttributeSupplier$Builder
gC()
createAttributes()
method_26889()
createParrotAttributes()
protected PathNavigation
b(dip arg0)
createNavigation(Level arg0)
method_5965(class_1937 arg0)
createNavigation(World arg0)
public void
k_()
aiStep()
method_6007()
tickMovement()
public void
a(iu arg0, boolean arg1)
setRecordPlayingNearby(BlockPos arg0, boolean arg1)
method_6006(class_2338 arg0, boolean arg1)
setNearbySongPlaying(BlockPos arg0, boolean arg1)
public boolean
gD()
isPartyParrot()
method_6582()
isSongPlaying()
private void
gH()
calculateFlapping()
method_6578()
flapWings()
public static boolean
a(dip arg0, bwa arg1)
imitateNearbyMobs(Level arg0, Entity arg1)
method_6587(class_1937 arg0, class_1297 arg1)
imitateNearbyMob(World world, Entity parrot)
public InteractionResult
b(cqs arg0, btx arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
public boolean
k(cys arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
public static boolean
c(bwj<cje> arg0, diq arg1, bwi arg2, iu arg3, azt arg4)
checkParrotSpawnRules(EntityType<Parrot> arg0, LevelAccessor arg1, EntitySpawnReason arg2, BlockPos arg3, RandomSource arg4)
method_20667(class_1299<class_1453> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawn(EntityType<ParrotEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
protected void
a(double arg0, boolean arg1, dzo arg2, iu arg3)
checkFallDamage(double arg0, boolean arg1, BlockState arg2, BlockPos arg3)
method_5623(double arg0, boolean arg1, class_2680 arg2, class_2338 arg3)
fall(double arg0, boolean arg1, BlockState arg2, BlockPos arg3)
public boolean
a(cio arg0)
canMate(Animal arg0)
method_6474(class_1429 arg0)
canBreedWith(AnimalEntity arg0)
public AgeableMob
a(aro arg0, bvq arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
public static SoundEvent
a(dip arg0, azt arg1)
getAmbient(Level arg0, RandomSource arg1)
method_6583(class_1937 arg0, class_5819 arg1)
getRandomSound(World world, Random random)
private static SoundEvent
b(bwj<?> arg0)
getImitatedSound(EntityType<?> arg0)
method_6586(class_1299<?> arg0)
getSound(EntityType<?> imitate)
protected SoundEvent
e(bup arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
l_()
getDeathSound()
method_6002()
getDeathSound()
protected void
b(iu arg0, dzo arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
protected boolean
ba()
isFlapping()
method_5776()
isFlappingWings()
protected void
aZ()
onFlap()
method_5801()
addFlapEffects()
public float
fe()
getVoicePitch()
method_6017()
getSoundPitch()
public static float
a(azt arg0)
getPitch(RandomSource arg0)
method_6580(class_5819 arg0)
getSoundPitch(Random random)
public SoundSource
dm()
getSoundSource()
method_5634()
getSoundCategory()
public boolean
bH()
isPushable()
method_5810()
isPushable()
protected void
D(bwa arg0)
doPush(Entity arg0)
method_6087(class_1297 arg0)
pushAway(Entity arg0)
public boolean
a(aro arg0, bup arg1, float arg2)
hurtServer(ServerLevel arg0, DamageSource arg1, float arg2)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
public Parrot$Variant
gE()
getVariant()
method_6584()
getVariant()
private void
a(cje$b arg0)
setVariant(Parrot$Variant arg0)
method_47848(class_1453$class_7989 arg0)
setVariant(ParrotEntity$Variant variant)
public <T> T
a(ki<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
protected void
a(ke arg0)
applyImplicitComponents(DataComponentGetter arg0)
method_66649(class_9473 arg0)
copyComponentsFrom(ComponentsAccess arg0)
protected <T> boolean
b(ki<T> arg0, T arg1)
applyImplicitComponent(DataComponentType<T> arg0, T arg1)
method_66654(class_9331<T> arg0, T arg1)
setApplicableComponent(ComponentType<T> arg0, T arg1)
protected void
a(akl$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
b(tx arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tx arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public boolean
gF()
isFlying()
method_6581()
isInAir()
protected boolean
gu()
canFlyToOwner()
method_60716()
canTeleportOntoLeaves()
public Vec3
cT()
getLeashOffset()
method_29919()
getLeashOffset()