net.minecraft.world.entity.animal

public class Parrot

extends ShoulderRidingEntity implements VariantHolder<Parrot$Variant>, FlyingAnimal

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder, Attackable, EquipmentUser, Leashable, Targeting, OwnableEntity, VariantHolder, FlyingAnimal

cin
net.minecraft.world.entity.animal.Parrot
net.minecraft.class_1453
net.minecraft.entity.passive.ParrotEntity
net.minecraft.world.entity.animal.EntityParrot

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Integer>
ch
DATA_VARIANT_ID
field_6826
VARIANT
private static final Predicate<Mob>
ci
NOT_PARROT_PREDICATE
field_6821
CAN_IMITATE
static final Map<EntityType<?>, SoundEvent>
cj
MOB_SOUND_MAP
field_6822
MOB_SOUNDS
public float
cd
flap
field_6818
flapProgress
public float
ce
flapSpeed
field_6819
maxWingDeviation
public float
cf
oFlapSpeed
field_6827
prevMaxWingDeviation
public float
cg
oFlap
field_6829
prevFlapProgress
private float
ck
flapping
field_6824
flapSpeed
private float
cl
nextFlap
field_28640
field_28640
private boolean
cm
partyParrot
field_6823
songPlaying
private BlockPos
cn
jukebox
field_6820
songSource

Constructor summary

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

Method summary

Modifier and TypeMethod
public SpawnGroupData
a(dhz arg0, bth arg1, bvq arg2, bwz 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
e_()
isBaby()
method_6109()
isBaby()
protected void
B()
registerGoals()
method_5959()
initGoals()
public static AttributeSupplier$Builder
gA()
createAttributes()
method_26889()
createParrotAttributes()
protected PathNavigation
b(dhi arg0)
createNavigation(Level arg0)
method_5965(class_1937 arg0)
createNavigation(World arg0)
public void
d_()
aiStep()
method_6007()
tickMovement()
public void
a(jh arg0, boolean arg1)
setRecordPlayingNearby(BlockPos arg0, boolean arg1)
method_6006(class_2338 arg0, boolean arg1)
setNearbySongPlaying(BlockPos arg0, boolean arg1)
public boolean
gB()
isPartyParrot()
method_6582()
isSongPlaying()
private void
gF()
calculateFlapping()
method_6578()
flapWings()
public static boolean
a(dhi arg0, bvk arg1)
imitateNearbyMobs(Level arg0, Entity arg1)
method_6587(class_1937 arg0, class_1297 arg1)
imitateNearbyMob(World world, Entity parrot)
public InteractionResult
b(cpx arg0, bti arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
public boolean
j(cxp arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
public static boolean
c(bvr<cin> arg0, dhj arg1, bvq arg2, jh arg3, bam 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, dxv arg2, jh 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(chx arg0)
canMate(Animal arg0)
method_6474(class_1429 arg0)
canBreedWith(AnimalEntity arg0)
public AgeableMob
a(ash arg0, bvb 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(dhi arg0, bam arg1)
getAmbient(Level arg0, RandomSource arg1)
method_6583(class_1937 arg0, class_5819 arg1)
getRandomSound(World world, Random random)
private static SoundEvent
b(bvr<?> arg0)
getImitatedSound(EntityType<?> arg0)
method_6586(class_1299<?> arg0)
getSound(EntityType<?> imitate)
protected SoundEvent
e(bua arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
o_()
getDeathSound()
method_6002()
getDeathSound()
protected void
b(jh arg0, dxv 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
fh()
getVoicePitch()
method_6017()
getSoundPitch()
public static float
a(bam arg0)
getPitch(RandomSource arg0)
method_6580(class_5819 arg0)
getSoundPitch(Random random)
public SoundSource
dn()
getSoundSource()
method_5634()
getSoundCategory()
public boolean
bI()
isPushable()
method_5810()
isPushable()
protected void
D(bvk arg0)
doPush(Entity arg0)
method_6087(class_1297 arg0)
pushAway(Entity arg0)
public boolean
a(ash arg0, bua 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
gC()
getVariant()
method_6584()
getVariant()
public void
a(cin$b arg0)
setVariant(Parrot$Variant arg0)
method_47848(class_1453$class_7989 arg0)
setVariant(ParrotEntity$Variant arg0)
protected void
a(alg$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
b(ux arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(ux arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public boolean
gD()
isFlying()
method_6581()
isInAir()
protected boolean
gs()
canFlyToOwner()
method_60716()
canTeleportOntoLeaves()
public Vec3
cT()
getLeashOffset()
method_29919()
getLeashOffset()