net.minecraft.world.entity.animal

public class Panda

extends Animal

All mapped superinterfaces:

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

cft
net.minecraft.world.entity.animal.Panda
net.minecraft.class_1440
net.minecraft.entity.passive.PandaEntity
net.minecraft.src.C_864_
net.minecraft.world.entity.animal.EntityPanda

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Integer>
ce
UNHAPPY_COUNTER
field_6764
ASK_FOR_BAMBOO_TICKS
f_29073_
private static final EntityDataAccessor<Integer>
cg
SNEEZE_COUNTER
field_6771
SNEEZE_PROGRESS
f_29074_
private static final EntityDataAccessor<Integer>
ch
EAT_COUNTER
field_6780
EATING_TICKS
f_29075_
private static final EntityDataAccessor<Byte>
ci
MAIN_GENE_ID
field_6766
MAIN_GENE
f_29076_
private static final EntityDataAccessor<Byte>
cj
HIDDEN_GENE_ID
field_6781
HIDDEN_GENE
f_29077_
private static final EntityDataAccessor<Byte>
ck
DATA_ID_FLAGS
field_6768
PANDA_FLAGS
f_29078_
static final TargetingConditions
cl
BREED_TARGETING
field_21803
ASK_FOR_BAMBOO_TARGET
f_29079_
private static final EntityDimensions
cm
BABY_DIMENSIONS
field_47773
BABY_BASE_DIMENSIONS
f_316579_
private static final int
cn
FLAG_SNEEZE
field_30344
SNEEZING_FLAG
f_148960_
private static final int
co
FLAG_ROLL
field_30345
PLAYING_FLAG
f_148961_
private static final int
cp
FLAG_SIT
field_30346
SITTING_FLAG
f_148962_
private static final int
cq
FLAG_ON_BACK
field_30347
LYING_ON_BACK_FLAG
f_148963_
private static final int
cr
EAT_TICK_INTERVAL
field_30348
EATING_ANIMATION_INTERVAL
f_148964_
public static final int
cc
TOTAL_ROLL_STEPS
field_30343
MAIN_GENE_MUTATION_CHANCE
f_148959_
private static final int
cs
TOTAL_UNHAPPY_TIME
field_30349
HIDDEN_GENE_MUTATION_CHANCE
f_148965_
boolean
ct
gotBamboo
field_6769
shouldGetRevenge
f_29080_
boolean
cu
didBite
field_6770
shouldAttack
f_29081_
public int
cd
rollCounter
field_6767
playingTicks
f_29072_
private Vec3
cv
rollDelta
field_18277
playingJump
f_29082_
private float
cw
sitAmount
field_6777
sittingAnimationProgress
f_29083_
private float
cx
sitAmountO
field_6779
lastSittingAnimationProgress
f_29065_
private float
cy
onBackAmount
field_6774
lieOnBackAnimationProgress
f_29066_
private float
cz
onBackAmountO
field_6775
lastLieOnBackAnimationProgress
f_29067_
private float
cA
rollAmount
field_6772
rollOverAnimationProgress
f_29068_
private float
cB
rollAmountO
field_6773
lastRollOverAnimationProgress
f_29069_
Panda$PandaLookAtPlayerGoal
cD
lookAtPlayerGoal
field_21804
lookAtPlayerGoal
f_29070_
static final Predicate<ItemEntity>
cE
PANDA_ITEMS
field_6765
IS_FOOD
f_29071_

Constructor summary

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

Method summary

Modifier and TypeMethod
public boolean
f(cuq arg0)
canTakeItem(ItemStack arg0)
method_18397(class_1799 arg0)
canEquip(ItemStack arg0)
m_7066_(C_1391_ arg0)
public int
s()
getUnhappyCounter()
method_6521()
getAskForBambooTicks()
m_29148_()
public void
t(int arg0)
setUnhappyCounter(int arg0)
method_6517(int arg0)
setAskForBambooTicks(int askForBambooTicks)
m_29206_(int arg0)
public boolean
t()
isSneezing()
method_6545()
isSneezing()
m_29149_()
public boolean
x()
isSitting()
method_6535()
isSitting()
m_29150_()
public void
x(boolean arg0)
sit(boolean arg0)
method_6513(boolean arg0)
setSitting(boolean sitting)
m_29208_(boolean arg0)
public boolean
gk()
isOnBack()
method_6514()
isLyingOnBack()
m_29151_()
public void
y(boolean arg0)
setOnBack(boolean arg0)
method_6505(boolean arg0)
setLyingOnBack(boolean lyingOnBack)
m_29212_(boolean arg0)
public boolean
gl()
isEating()
method_6527()
isEating()
m_29152_()
public void
z(boolean arg0)
eat(boolean arg0)
method_6552(boolean arg0)
setEating(boolean eating)
m_29216_(boolean arg0)
private int
gF()
getEatCounter()
method_6528()
getEatingTicks()
m_29170_()
private void
v(int arg0)
setEatCounter(int arg0)
method_6558(int arg0)
setEatingTicks(int eatingTicks)
m_29214_(int arg0)
public void
A(boolean arg0)
sneeze(boolean arg0)
method_6546(boolean arg0)
setSneezing(boolean sneezing)
m_29220_(boolean arg0)
public int
gm()
getSneezeCounter()
method_6532()
getSneezeProgress()
m_29153_()
public void
u(int arg0)
setSneezeCounter(int arg0)
method_6539(int arg0)
setSneezeProgress(int sneezeProgress)
m_29210_(int arg0)
public Panda$Gene
gn()
getMainGene()
method_6525()
getMainGene()
m_29154_()
public void
a(cft$a arg0)
setMainGene(Panda$Gene arg0)
method_6529(class_1440$class_1443 arg0)
setMainGene(PandaEntity$Gene gene)
m_29099_(C_864_$C_865_ arg0)
public Panda$Gene
go()
getHiddenGene()
method_6508()
getHiddenGene()
m_29155_()
public void
b(cft$a arg0)
setHiddenGene(Panda$Gene arg0)
method_6547(class_1440$class_1443 arg0)
setHiddenGene(PandaEntity$Gene gene)
m_29116_(C_864_$C_865_ arg0)
public boolean
gu()
isRolling()
method_6526()
isPlaying()
m_29156_()
public void
B(boolean arg0)
roll(boolean arg0)
method_6541(boolean arg0)
setPlaying(boolean playing)
m_29222_(boolean arg0)
protected void
a(aka$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
private boolean
w(int arg0)
getFlag(int arg0)
method_6533(int arg0)
hasPandaFlag(int bitmask)
m_29218_(int arg0)
private void
d(int arg0, boolean arg1)
setFlag(int arg0, boolean arg1)
method_6557(int arg0, boolean arg1)
setPandaFlag(int mask, boolean value)
m_29134_(int p_29136_, boolean arg1)
public void
b(ub arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(ub arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public AgeableMob
a(aqu arg0, bsl arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
m_142606_(C_12_ p_148968_, C_141062_ arg1)
protected void
B()
registerGoals()
method_5959()
initGoals()
m_8099_()
public static AttributeSupplier$Builder
gv()
createAttributes()
method_26888()
createPandaAttributes()
m_29157_()
public Panda$Gene
gw()
getVariant()
method_6554()
getProductGene()
m_29158_()
public boolean
gx()
isLazy()
method_6549()
isLazy()
m_29161_()
public boolean
gy()
isWorried()
method_6509()
isWorried()
m_29162_()
public boolean
gz()
isPlayful()
method_6522()
isPlayful()
m_29163_()
public boolean
gA()
isBrown()
method_35173()
isBrown()
m_148973_()
public boolean
gB()
isWeak()
method_6550()
isWeak()
m_29164_()
public boolean
gb()
isAggressive()
method_6510()
isAttacking()
m_5912_()
public boolean
y()
canBeLeashed()
method_5931()
canBeLeashed()
m_6573_()
public boolean
D(bsr arg0)
doHurtTarget(Entity arg0)
method_6121(class_1297 arg0)
tryAttack(Entity arg0)
m_7327_(C_507_ arg0)
public void
gd()
playAttackSound()
method_59928()
playAttackSound()
m_339982_()
public void
l()
tick()
method_5773()
tick()
m_8119_()
public boolean
gC()
isScared()
method_6524()
isScaredByThunderstorm()
m_29165_()
private void
gG()
handleEating()
method_6536()
updateEatingAnimation()
m_29171_()
private void
gH()
addEatingParticles()
method_6512()
playEatingAnimation()
m_29172_()
private void
gI()
updateSitAmount()
method_6544()
updateSittingAnimation()
m_29173_()
private void
gJ()
updateOnBackAnimation()
method_6503()
updateLieOnBackAnimation()
m_29174_()
private void
gK()
updateRollAmount()
method_6523()
updateRollOverAnimation()
m_29175_()
public float
H(float arg0)
getSitAmount(float arg0)
method_6534(float arg0)
getSittingAnimationProgress(float tickDelta)
m_29224_(float arg0)
public float
I(float arg0)
getLieOnBackAmount(float arg0)
method_6555(float arg0)
getLieOnBackAnimationProgress(float tickDelta)
m_29226_(float arg0)
public float
J(float arg0)
getRollAmount(float arg0)
method_6560(float arg0)
getRollOverAnimationProgress(float tickDelta)
m_29088_(float arg0)
private void
gL()
handleRoll()
method_6537()
updatePlaying()
m_29176_()
private void
gM()
afterSneeze()
method_6548()
sneeze()
m_29177_()
protected void
b(cjh arg0)
pickUpItem(ItemEntity arg0)
method_5949(class_1542 arg0)
loot(ItemEntity arg0)
m_7581_(C_976_ arg0)
public boolean
a(brk arg0, float arg1)
hurt(DamageSource arg0, float arg1)
method_5643(class_1282 arg0, float arg1)
damage(DamageSource arg0, float arg1)
m_6469_(C_489_ p_29098_, float arg1)
public SpawnGroupData
a(ddl arg0, bqp arg1, btr arg2, buh arg3)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, MobSpawnType 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)
m_6518_(C_1618_ p_29110_, C_469_ p_29111_, C_529_ p_29112_, C_542_ arg3)
public void
a(cft arg0, cft arg1)
setGeneFromParents(Panda arg0, Panda arg1)
method_6515(class_1440 arg0, class_1440 arg1)
initGenes(PandaEntity mother, PandaEntity father)
m_29103_(C_864_ p_29105_, C_864_ arg1)
private Panda$Gene
gN()
getOneOfGenesRandomly()
method_6519()
getRandomGene()
m_29178_()
public void
gD()
setAttributes()
method_6538()
resetAttributes()
m_29166_()
void
gO()
tryToSit()
method_18057()
stop()
m_29179_()
public InteractionResult
b(cmx arg0, bqq arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
m_6071_(C_1141_ p_29124_, C_470_ arg1)
protected SoundEvent
v()
getAmbientSound()
method_5994()
getAmbientSound()
m_7515_()
protected void
b(jd arg0, dtc arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
m_7355_(C_4675_ p_29127_, C_2064_ arg1)
public boolean
o(cuq arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
m_6898_(C_1391_ arg0)
private boolean
n(cuq arg0)
isFoodOrCake(ItemStack arg0)
method_16106(class_1799 arg0)
canEat(ItemStack stack)
m_29195_(C_1391_ arg0)
protected SoundEvent
n_()
getDeathSound()
method_6002()
getDeathSound()
m_5592_()
protected SoundEvent
d(brk arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
public boolean
gE()
canPerformAction()
method_18442()
isIdle()
m_29167_()
public EntityDimensions
e(bua arg0)
getDefaultDimensions(Pose arg0)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
m_31586_(C_535_ arg0)