net.minecraft.world.entity.animal

public class Panda

extends Animal

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder, Attackable, EquipmentUser, Leashable, Targeting

cim
net.minecraft.world.entity.animal.Panda
net.minecraft.class_1440
net.minecraft.entity.passive.PandaEntity
net.minecraft.world.entity.animal.EntityPanda

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Integer>
cb
UNHAPPY_COUNTER
field_6764
ASK_FOR_BAMBOO_TICKS
private static final EntityDataAccessor<Integer>
cd
SNEEZE_COUNTER
field_6771
SNEEZE_PROGRESS
private static final EntityDataAccessor<Integer>
ce
EAT_COUNTER
field_6780
EATING_TICKS
private static final EntityDataAccessor<Byte>
cf
MAIN_GENE_ID
field_6766
MAIN_GENE
private static final EntityDataAccessor<Byte>
cg
HIDDEN_GENE_ID
field_6781
HIDDEN_GENE
private static final EntityDataAccessor<Byte>
ch
DATA_ID_FLAGS
field_6768
PANDA_FLAGS
static final TargetingConditions
ci
BREED_TARGETING
field_21803
ASK_FOR_BAMBOO_TARGET
private static final EntityDimensions
cj
BABY_DIMENSIONS
field_47773
BABY_BASE_DIMENSIONS
private static final int
ck
FLAG_SNEEZE
field_30344
SNEEZING_FLAG
private static final int
cl
FLAG_ROLL
field_30345
PLAYING_FLAG
private static final int
cm
FLAG_SIT
field_30346
SITTING_FLAG
private static final int
cn
FLAG_ON_BACK
field_30347
LYING_ON_BACK_FLAG
private static final int
co
EAT_TICK_INTERVAL
field_30348
EATING_ANIMATION_INTERVAL
public static final int
bZ
TOTAL_ROLL_STEPS
field_30343
MAIN_GENE_MUTATION_CHANCE
private static final int
cp
TOTAL_UNHAPPY_TIME
field_30349
HIDDEN_GENE_MUTATION_CHANCE
boolean
cq
gotBamboo
field_6769
shouldGetRevenge
boolean
cr
didBite
field_6770
shouldAttack
public int
ca
rollCounter
field_6767
playingTicks
private Vec3
cs
rollDelta
field_18277
playingJump
private float
ct
sitAmount
field_6777
sittingAnimationProgress
private float
cu
sitAmountO
field_6779
lastSittingAnimationProgress
private float
cv
onBackAmount
field_6774
lieOnBackAnimationProgress
private float
cw
onBackAmountO
field_6775
lastLieOnBackAnimationProgress
private float
cx
rollAmount
field_6772
rollOverAnimationProgress
private float
cy
rollAmountO
field_6773
lastRollOverAnimationProgress
Panda$PandaLookAtPlayerGoal
cz
lookAtPlayerGoal
field_21804
lookAtPlayerGoal

Constructor summary

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

Method summary

Modifier and TypeMethod
protected boolean
f(bvs arg0)
canDispenserEquipIntoSlot(EquipmentSlot arg0)
method_63626(class_1304 arg0)
canDispenserEquipSlot(EquipmentSlot arg0)
public int
p()
getUnhappyCounter()
method_6521()
getAskForBambooTicks()
public void
s(int arg0)
setUnhappyCounter(int arg0)
method_6517(int arg0)
setAskForBambooTicks(int askForBambooTicks)
public boolean
t()
isSneezing()
method_6545()
isSneezing()
public boolean
x()
isSitting()
method_6535()
isSitting()
public void
x(boolean arg0)
sit(boolean arg0)
method_6513(boolean arg0)
setSitting(boolean sitting)
public boolean
go()
isOnBack()
method_6514()
isLyingOnBack()
public void
y(boolean arg0)
setOnBack(boolean arg0)
method_6505(boolean arg0)
setLyingOnBack(boolean lyingOnBack)
public boolean
gp()
isEating()
method_6527()
isEating()
public void
z(boolean arg0)
eat(boolean arg0)
method_6552(boolean arg0)
setEating(boolean eating)
private int
gL()
getEatCounter()
method_6528()
getEatingTicks()
private void
u(int arg0)
setEatCounter(int arg0)
method_6558(int arg0)
setEatingTicks(int eatingTicks)
public void
A(boolean arg0)
sneeze(boolean arg0)
method_6546(boolean arg0)
setSneezing(boolean sneezing)
public int
gq()
getSneezeCounter()
method_6532()
getSneezeProgress()
public void
t(int arg0)
setSneezeCounter(int arg0)
method_6539(int arg0)
setSneezeProgress(int sneezeProgress)
public Panda$Gene
gr()
getMainGene()
method_6525()
getMainGene()
public void
a(cim$a arg0)
setMainGene(Panda$Gene arg0)
method_6529(class_1440$class_1443 arg0)
setMainGene(PandaEntity$Gene gene)
public Panda$Gene
gs()
getHiddenGene()
method_6508()
getHiddenGene()
public void
b(cim$a arg0)
setHiddenGene(Panda$Gene arg0)
method_6547(class_1440$class_1443 arg0)
setHiddenGene(PandaEntity$Gene gene)
public boolean
gA()
isRolling()
method_6526()
isPlaying()
public void
B(boolean arg0)
roll(boolean arg0)
method_6541(boolean arg0)
setPlaying(boolean playing)
protected void
a(alg$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
private boolean
v(int arg0)
getFlag(int arg0)
method_6533(int arg0)
hasPandaFlag(int bitmask)
private void
d(int arg0, boolean arg1)
setFlag(int arg0, boolean arg1)
method_6557(int arg0, boolean arg1)
setPandaFlag(int mask, boolean value)
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 AgeableMob
a(ash arg0, bvb arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
protected void
B()
registerGoals()
method_5959()
initGoals()
public static AttributeSupplier$Builder
gB()
createAttributes()
method_26888()
createPandaAttributes()
public Panda$Gene
gC()
getVariant()
method_6554()
getProductGene()
public boolean
gD()
isLazy()
method_6549()
isLazy()
public boolean
gE()
isWorried()
method_6509()
isWorried()
public boolean
gF()
isPlayful()
method_6522()
isPlayful()
public boolean
gG()
isBrown()
method_35173()
isBrown()
public boolean
gH()
isWeak()
method_6550()
isWeak()
public boolean
gd()
isAggressive()
method_6510()
isAttacking()
public boolean
y()
canBeLeashed()
method_5931()
canBeLeashed()
public boolean
c(ash arg0, bvk arg1)
doHurtTarget(ServerLevel arg0, Entity arg1)
method_6121(class_3218 arg0, class_1297 arg1)
tryAttack(ServerWorld arg0, Entity arg1)
public void
gf()
playAttackSound()
method_59928()
playAttackSound()
public void
h()
tick()
method_5773()
tick()
public boolean
gI()
isScared()
method_6524()
isScaredByThunderstorm()
private void
gM()
handleEating()
method_6536()
updateEatingAnimation()
private void
gN()
addEatingParticles()
method_6512()
playEatingAnimation()
private void
gO()
updateSitAmount()
method_6544()
updateSittingAnimation()
private void
gP()
updateOnBackAnimation()
method_6503()
updateLieOnBackAnimation()
private void
gQ()
updateRollAmount()
method_6523()
updateRollOverAnimation()
public float
J(float arg0)
getSitAmount(float arg0)
method_6534(float arg0)
getSittingAnimationProgress(float tickDelta)
public float
K(float arg0)
getLieOnBackAmount(float arg0)
method_6555(float arg0)
getLieOnBackAnimationProgress(float tickDelta)
public float
L(float arg0)
getRollAmount(float arg0)
method_6560(float arg0)
getRollOverAnimationProgress(float tickDelta)
private void
gR()
handleRoll()
method_6537()
updatePlaying()
private void
gS()
afterSneeze()
method_6548()
sneeze()
protected void
a(ash arg0, cmb arg1)
pickUpItem(ServerLevel arg0, ItemEntity arg1)
method_5949(class_3218 arg0, class_1542 arg1)
loot(ServerWorld arg0, ItemEntity arg1)
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 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 void
a(cim arg0, cim arg1)
setGeneFromParents(Panda arg0, Panda arg1)
method_6515(class_1440 arg0, class_1440 arg1)
initGenes(PandaEntity mother, PandaEntity father)
private Panda$Gene
gT()
getOneOfGenesRandomly()
method_6519()
getRandomGene()
public void
gJ()
setAttributes()
method_6538()
resetAttributes()
void
gU()
tryToSit()
method_18057()
stop()
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)
protected SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
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)
public boolean
j(cxp arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
protected SoundEvent
o_()
getDeathSound()
method_6002()
getDeathSound()
protected SoundEvent
e(bua arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
public boolean
gK()
canPerformAction()
method_18442()
isIdle()
public EntityDimensions
e(bws arg0)
getDefaultDimensions(Pose arg0)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
private static boolean
b(cmb arg0)
canPickUpAndEat(ItemEntity arg0)
method_64177(class_1542 arg0)
canEatFromGround(ItemEntity itemEntity)