net.minecraft.world.entity.animal

public class Panda

extends Animal

All mapped superinterfaces:

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

cjd
net.minecraft.world.entity.animal.Panda
net.minecraft.class_1440
net.minecraft.entity.passive.PandaEntity

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Integer>
bH
UNHAPPY_COUNTER
field_6764
ASK_FOR_BAMBOO_TICKS
private static final EntityDataAccessor<Integer>
bJ
SNEEZE_COUNTER
field_6771
SNEEZE_PROGRESS
private static final EntityDataAccessor<Integer>
bK
EAT_COUNTER
field_6780
EATING_TICKS
private static final EntityDataAccessor<Byte>
bL
MAIN_GENE_ID
field_6766
MAIN_GENE
private static final EntityDataAccessor<Byte>
bM
HIDDEN_GENE_ID
field_6781
HIDDEN_GENE
private static final EntityDataAccessor<Byte>
bN
DATA_ID_FLAGS
field_6768
PANDA_FLAGS
static final TargetingConditions
bO
BREED_TARGETING
field_21803
ASK_FOR_BAMBOO_TARGET
private static final EntityDimensions
bP
BABY_DIMENSIONS
field_47773
BABY_BASE_DIMENSIONS
private static final int
bQ
FLAG_SNEEZE
field_30344
SNEEZING_FLAG
private static final int
bR
FLAG_ROLL
field_30345
PLAYING_FLAG
private static final int
bS
FLAG_SIT
field_30346
SITTING_FLAG
private static final int
bT
FLAG_ON_BACK
field_30347
LYING_ON_BACK_FLAG
private static final int
bU
EAT_TICK_INTERVAL
field_30348
EATING_ANIMATION_INTERVAL
public static final int
bF
TOTAL_ROLL_STEPS
field_30343
MAIN_GENE_MUTATION_CHANCE
private static final int
bV
TOTAL_UNHAPPY_TIME
field_30349
HIDDEN_GENE_MUTATION_CHANCE
boolean
bW
gotBamboo
field_6769
shouldGetRevenge
boolean
bX
didBite
field_6770
shouldAttack
public int
bG
rollCounter
field_6767
playingTicks
private Vec3
bY
rollDelta
field_18277
playingJump
private float
bZ
sitAmount
field_6777
sittingAnimationProgress
private float
ca
sitAmountO
field_6779
lastSittingAnimationProgress
private float
cb
onBackAmount
field_6774
lieOnBackAnimationProgress
private float
cc
onBackAmountO
field_6775
lastLieOnBackAnimationProgress
private float
cd
rollAmount
field_6772
rollOverAnimationProgress
private float
ce
rollAmountO
field_6773
lastRollOverAnimationProgress
Panda$PandaLookAtPlayerGoal
cf
lookAtPlayerGoal
field_21804
lookAtPlayerGoal

Constructor summary

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

Method summary

Modifier and TypeMethod
protected boolean
f(bwk arg0)
canDispenserEquipIntoSlot(EquipmentSlot arg0)
method_63626(class_1304 arg0)
canDispenserEquipSlot(EquipmentSlot arg0)
public int
q()
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
w(boolean arg0)
sit(boolean arg0)
method_6513(boolean arg0)
setSitting(boolean sitting)
public boolean
gq()
isOnBack()
method_6514()
isLyingOnBack()
public void
x(boolean arg0)
setOnBack(boolean arg0)
method_6505(boolean arg0)
setLyingOnBack(boolean lyingOnBack)
public boolean
gr()
isEating()
method_6527()
isEating()
public void
y(boolean arg0)
eat(boolean arg0)
method_6552(boolean arg0)
setEating(boolean eating)
private int
gN()
getEatCounter()
method_6528()
getEatingTicks()
private void
u(int arg0)
setEatCounter(int arg0)
method_6558(int arg0)
setEatingTicks(int eatingTicks)
public void
z(boolean arg0)
sneeze(boolean arg0)
method_6546(boolean arg0)
setSneezing(boolean sneezing)
public int
gs()
getSneezeCounter()
method_6532()
getSneezeProgress()
public void
t(int arg0)
setSneezeCounter(int arg0)
method_6539(int arg0)
setSneezeProgress(int sneezeProgress)
public Panda$Gene
gt()
getMainGene()
method_6525()
getMainGene()
public void
a(cjd$a arg0)
setMainGene(Panda$Gene arg0)
method_6529(class_1440$class_1443 arg0)
setMainGene(PandaEntity$Gene gene)
public Panda$Gene
gu()
getHiddenGene()
method_6508()
getHiddenGene()
public void
b(cjd$a arg0)
setHiddenGene(Panda$Gene arg0)
method_6547(class_1440$class_1443 arg0)
setHiddenGene(PandaEntity$Gene gene)
public boolean
gC()
isRolling()
method_6526()
isPlaying()
public void
A(boolean arg0)
roll(boolean arg0)
method_6541(boolean arg0)
setPlaying(boolean playing)
protected void
a(akl$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(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 AgeableMob
a(aro arg0, bvq arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
protected void
D()
registerGoals()
method_5959()
initGoals()
public static AttributeSupplier$Builder
gD()
createAttributes()
method_26888()
createPandaAttributes()
public Panda$Gene
gE()
getVariant()
method_6554()
getProductGene()
public boolean
gF()
isLazy()
method_6549()
isLazy()
public boolean
gG()
isWorried()
method_6509()
isWorried()
public boolean
gH()
isPlayful()
method_6522()
isPlayful()
public boolean
gI()
isBrown()
method_35173()
isBrown()
public boolean
gJ()
isWeak()
method_6550()
isWeak()
public boolean
gh()
isAggressive()
method_6510()
isAttacking()
public boolean
w()
canBeLeashed()
method_5931()
canBeLeashed()
public boolean
c(aro arg0, bwa arg1)
doHurtTarget(ServerLevel arg0, Entity arg1)
method_6121(class_3218 arg0, class_1297 arg1)
tryAttack(ServerWorld arg0, Entity arg1)
public void
gj()
playAttackSound()
method_59928()
playAttackSound()
public void
h()
tick()
method_5773()
tick()
public boolean
gK()
isScared()
method_6524()
isScaredByThunderstorm()
private void
gO()
handleEating()
method_6536()
updateEatingAnimation()
private void
gP()
addEatingParticles()
method_6512()
playEatingAnimation()
private void
gQ()
updateSitAmount()
method_6544()
updateSittingAnimation()
private void
gR()
updateOnBackAnimation()
method_6503()
updateLieOnBackAnimation()
private void
gS()
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
gT()
handleRoll()
method_6537()
updatePlaying()
private void
gU()
afterSneeze()
method_6548()
sneeze()
protected void
a(aro arg0, cmx arg1)
pickUpItem(ServerLevel arg0, ItemEntity arg1)
method_5949(class_3218 arg0, class_1542 arg1)
loot(ServerWorld arg0, ItemEntity arg1)
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 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 void
a(cjd arg0, cjd arg1)
setGeneFromParents(Panda arg0, Panda arg1)
method_6515(class_1440 arg0, class_1440 arg1)
initGenes(PandaEntity mother, PandaEntity father)
private Panda$Gene
gV()
getOneOfGenesRandomly()
method_6519()
getRandomGene()
public void
gL()
setAttributes()
method_6538()
resetAttributes()
void
gW()
tryToSit()
method_18057()
stop()
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)
protected SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
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)
public boolean
k(cys arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
protected SoundEvent
l_()
getDeathSound()
method_6002()
getDeathSound()
protected SoundEvent
e(bup arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
public boolean
gM()
canPerformAction()
method_18442()
isIdle()
public EntityDimensions
e(bxl arg0)
getDefaultDimensions(Pose arg0)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
private static boolean
b(cmx arg0)
canPickUpAndEat(ItemEntity arg0)
method_64177(class_1542 arg0)
canEatFromGround(ItemEntity itemEntity)