net.minecraft.world.entity.animal

public class Panda

extends Animal

All mapped superinterfaces:

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

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

Constructor summary

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

Method summary

Modifier and TypeMethod
protected boolean
f(buu 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
gs()
isOnBack()
method_6514()
isLyingOnBack()
public void
y(boolean arg0)
setOnBack(boolean arg0)
method_6505(boolean arg0)
setLyingOnBack(boolean lyingOnBack)
public boolean
gt()
isEating()
method_6527()
isEating()
public void
z(boolean arg0)
eat(boolean arg0)
method_6552(boolean arg0)
setEating(boolean eating)
private int
gP()
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
gu()
getSneezeCounter()
method_6532()
getSneezeProgress()
public void
t(int arg0)
setSneezeCounter(int arg0)
method_6539(int arg0)
setSneezeProgress(int sneezeProgress)
public Panda$Gene
gv()
getMainGene()
method_6525()
getMainGene()
public void
a(cho$a arg0)
setMainGene(Panda$Gene arg0)
method_6529(class_1440$class_1443 arg0)
setMainGene(PandaEntity$Gene gene)
public Panda$Gene
gw()
getHiddenGene()
method_6508()
getHiddenGene()
public void
b(cho$a arg0)
setHiddenGene(Panda$Gene arg0)
method_6547(class_1440$class_1443 arg0)
setHiddenGene(PandaEntity$Gene gene)
public boolean
gE()
isRolling()
method_6526()
isPlaying()
public void
B(boolean arg0)
roll(boolean arg0)
method_6541(boolean arg0)
setPlaying(boolean playing)
protected void
a(akc$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(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 AgeableMob
a(ard arg0, bud arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
protected void
E()
registerGoals()
method_5959()
initGoals()
public static AttributeSupplier$Builder
gF()
createAttributes()
method_26888()
createPandaAttributes()
public Panda$Gene
gG()
getVariant()
method_6554()
getProductGene()
public boolean
gH()
isLazy()
method_6549()
isLazy()
public boolean
gI()
isWorried()
method_6509()
isWorried()
public boolean
gJ()
isPlayful()
method_6522()
isPlayful()
public boolean
gK()
isBrown()
method_35173()
isBrown()
public boolean
gL()
isWeak()
method_6550()
isWeak()
public boolean
gh()
isAggressive()
method_6510()
isAttacking()
public boolean
y()
canBeLeashed()
method_5931()
canBeLeashed()
public boolean
c(ard arg0, bum 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
gM()
isScared()
method_6524()
isScaredByThunderstorm()
private void
gQ()
handleEating()
method_6536()
updateEatingAnimation()
private void
gR()
addEatingParticles()
method_6512()
playEatingAnimation()
private void
gS()
updateSitAmount()
method_6544()
updateSittingAnimation()
private void
gT()
updateOnBackAnimation()
method_6503()
updateLieOnBackAnimation()
private void
gU()
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
gV()
handleRoll()
method_6537()
updatePlaying()
private void
gW()
afterSneeze()
method_6548()
sneeze()
protected void
a(ard arg0, cld arg1)
pickUpItem(ServerLevel arg0, ItemEntity arg1)
method_5949(class_3218 arg0, class_1542 arg1)
loot(ServerWorld arg0, ItemEntity arg1)
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 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 void
a(cho arg0, cho arg1)
setGeneFromParents(Panda arg0, Panda arg1)
method_6515(class_1440 arg0, class_1440 arg1)
initGenes(PandaEntity mother, PandaEntity father)
private Panda$Gene
gX()
getOneOfGenesRandomly()
method_6519()
getRandomGene()
public void
gN()
setAttributes()
method_6538()
resetAttributes()
void
gY()
tryToSit()
method_18057()
stop()
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)
protected SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
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)
public boolean
j(cwq arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
protected SoundEvent
o_()
getDeathSound()
method_6002()
getDeathSound()
protected SoundEvent
e(btc arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
public boolean
gO()
canPerformAction()
method_18442()
isIdle()
public EntityDimensions
e(bvu arg0)
getDefaultDimensions(Pose arg0)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
private static boolean
b(cld arg0)
canPickUpAndEat(ItemEntity arg0)
method_64177(class_1542 arg0)
canEatFromGround(ItemEntity itemEntity)