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

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public SpawnGroupData
a(dha arg0, bsj arg1, bus arg2, bwb 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
E()
registerGoals()
method_5959()
initGoals()
public static AttributeSupplier$Builder
gE()
createAttributes()
method_26889()
createParrotAttributes()
protected PathNavigation
b(dgj arg0)
createNavigation(Level arg0)
method_5965(class_1937 arg0)
createNavigation(World arg0)
public void
d_()
aiStep()
method_6007()
tickMovement()
public void
a(ji arg0, boolean arg1)
setRecordPlayingNearby(BlockPos arg0, boolean arg1)
method_6006(class_2338 arg0, boolean arg1)
setNearbySongPlaying(BlockPos arg0, boolean arg1)
public boolean
gF()
isPartyParrot()
method_6582()
isSongPlaying()
private void
gJ()
calculateFlapping()
method_6578()
flapWings()
public static boolean
a(dgj arg0, bum arg1)
imitateNearbyMobs(Level arg0, Entity arg1)
method_6587(class_1937 arg0, class_1297 arg1)
imitateNearbyMob(World world, Entity parrot)
public InteractionResult
b(coy arg0, bsk arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
public boolean
j(cwq arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
public static boolean
c(but<chp> arg0, dgk arg1, bus arg2, ji arg3, azh 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, dwy arg2, ji 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(cgz arg0)
canMate(Animal arg0)
method_6474(class_1429 arg0)
canBreedWith(AnimalEntity arg0)
public AgeableMob
a(ard arg0, bud 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(dgj arg0, azh arg1)
getAmbient(Level arg0, RandomSource arg1)
method_6583(class_1937 arg0, class_5819 arg1)
getRandomSound(World world, Random random)
private static SoundEvent
b(but<?> arg0)
getImitatedSound(EntityType<?> arg0)
method_6586(class_1299<?> arg0)
getSound(EntityType<?> imitate)
protected SoundEvent
e(btc arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
o_()
getDeathSound()
method_6002()
getDeathSound()
protected void
b(ji arg0, dwy 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(azh arg0)
getPitch(RandomSource arg0)
method_6580(class_5819 arg0)
getSoundPitch(Random random)
public SoundSource
dm()
getSoundSource()
method_5634()
getSoundCategory()
public boolean
bI()
isPushable()
method_5810()
isPushable()
protected void
D(bum arg0)
doPush(Entity arg0)
method_6087(class_1297 arg0)
pushAway(Entity arg0)
public boolean
a(ard arg0, btc 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
gG()
getVariant()
method_6584()
getVariant()
public void
a(chp$b arg0)
setVariant(Parrot$Variant arg0)
method_47848(class_1453$class_7989 arg0)
setVariant(ParrotEntity$Variant arg0)
protected void
a(akc$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
b(tq arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tq arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public boolean
gH()
isFlying()
method_6581()
isInAir()
protected boolean
gw()
canFlyToOwner()
method_60716()
canTeleportOntoLeaves()
public Vec3
cT()
getLeashOffset()
method_29919()
getLeashOffset()