net.minecraft.world.entity.animal

public class Panda

extends Animal

All mapped superinterfaces:

SyncedDataHolder, DebugValueSource, Nameable, ItemOwner, SlotProvider, EntityAccess, UniquelyIdentifyable, ScoreHolder, DataComponentGetter, Attackable, WaypointTransmitter, Waypoint, EquipmentUser, Leashable, Targeting

cuc
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>
cx
UNHAPPY_COUNTER
field_6764
ASK_FOR_BAMBOO_TICKS
private static final EntityDataAccessor<Integer>
cz
SNEEZE_COUNTER
field_6771
SNEEZE_PROGRESS
private static final EntityDataAccessor<Integer>
cA
EAT_COUNTER
field_6780
EATING_TICKS
private static final EntityDataAccessor<Byte>
cB
MAIN_GENE_ID
field_6766
MAIN_GENE
private static final EntityDataAccessor<Byte>
cC
HIDDEN_GENE_ID
field_6781
HIDDEN_GENE
private static final EntityDataAccessor<Byte>
cD
DATA_ID_FLAGS
field_6768
PANDA_FLAGS
static final TargetingConditions
cE
BREED_TARGETING
field_21803
ASK_FOR_BAMBOO_TARGET
private static final EntityDimensions
cF
BABY_DIMENSIONS
field_47773
BABY_BASE_DIMENSIONS
private static final int
cG
FLAG_SNEEZE
field_30344
SNEEZING_FLAG
private static final int
cH
FLAG_ROLL
field_30345
PLAYING_FLAG
private static final int
cI
FLAG_SIT
field_30346
SITTING_FLAG
private static final int
cJ
FLAG_ON_BACK
field_30347
LYING_ON_BACK_FLAG
private static final int
cK
EAT_TICK_INTERVAL
field_30348
EATING_ANIMATION_INTERVAL
public static final int
cv
TOTAL_ROLL_STEPS
field_30343
MAIN_GENE_MUTATION_CHANCE
private static final int
cL
TOTAL_UNHAPPY_TIME
field_30349
HIDDEN_GENE_MUTATION_CHANCE
boolean
cM
gotBamboo
field_6769
shouldGetRevenge
boolean
cN
didBite
field_6770
shouldAttack
public int
cw
rollCounter
field_6767
playingTicks
private Vec3
cO
rollDelta
field_18277
playingJump
private float
cP
sitAmount
field_6777
sittingAnimationProgress
private float
cQ
sitAmountO
field_6779
lastSittingAnimationProgress
private float
cR
onBackAmount
field_6774
lieOnBackAnimationProgress
private float
cU
onBackAmountO
field_6775
lastLieOnBackAnimationProgress
private float
cV
rollAmount
field_6772
rollOverAnimationProgress
private float
cW
rollAmountO
field_6773
lastRollOverAnimationProgress
Panda$PandaLookAtPlayerGoal
cX
lookAtPlayerGoal
field_21804
lookAtPlayerGoal

Constructor summary

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

Method summary

Modifier and TypeMethod
protected boolean
f(cgt arg0)
canDispenserEquipIntoSlot(EquipmentSlot arg0)
method_63626(class_1304 arg0)
canDispenserEquipSlot(EquipmentSlot arg0)
public int
m()
getUnhappyCounter()
method_6521()
getAskForBambooTicks()
public void
s(int arg0)
setUnhappyCounter(int arg0)
method_6517(int arg0)
setAskForBambooTicks(int askForBambooTicks)
public boolean
n()
isSneezing()
method_6545()
isSneezing()
public boolean
s()
isSitting()
method_6535()
isSitting()
public void
x(boolean arg0)
sit(boolean arg0)
method_6513(boolean arg0)
setSitting(boolean sitting)
public boolean
gQ()
isOnBack()
method_6514()
isLyingOnBack()
public void
y(boolean arg0)
setOnBack(boolean arg0)
method_6505(boolean arg0)
setLyingOnBack(boolean lyingOnBack)
public boolean
gR()
isEating()
method_6527()
isEating()
public void
z(boolean arg0)
eat(boolean arg0)
method_6552(boolean arg0)
setEating(boolean eating)
private int
hn()
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
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(cuc$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(cuc$a arg0)
setHiddenGene(Panda$Gene arg0)
method_6547(class_1440$class_1443 arg0)
setHiddenGene(PandaEntity$Gene gene)
public boolean
hc()
isRolling()
method_6526()
isPlaying()
public void
B(boolean arg0)
roll(boolean arg0)
method_6541(boolean arg0)
setPlaying(boolean playing)
protected void
a(ama$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)
protected void
a(fmk arg0)
addAdditionalSaveData(ValueOutput arg0)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
a(fmi arg0)
readAdditionalSaveData(ValueInput arg0)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public AgeableMob
a(axf arg0, cfw arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
protected void
H()
registerGoals()
method_5959()
initGoals()
public static AttributeSupplier$Builder
hd()
createAttributes()
method_26888()
createPandaAttributes()
public Panda$Gene
he()
getVariant()
method_6554()
getProductGene()
public boolean
hf()
isLazy()
method_6549()
isLazy()
public boolean
hg()
isWorried()
method_6509()
isWorried()
public boolean
hh()
isPlayful()
method_6522()
isPlayful()
public boolean
hi()
isBrown()
method_35173()
isBrown()
public boolean
hj()
isWeak()
method_6550()
isWeak()
public boolean
gI()
isAggressive()
method_6510()
isAttacking()
public boolean
v()
canBeLeashed()
method_5931()
canBeLeashed()
public boolean
c(axf arg0, cgi arg1)
doHurtTarget(ServerLevel arg0, Entity arg1)
method_6121(class_3218 arg0, class_1297 arg1)
tryAttack(ServerWorld arg0, Entity arg1)
public void
fJ()
playAttackSound()
method_59928()
playAttackSound()
public void
g()
tick()
method_5773()
tick()
public boolean
hk()
isScared()
method_6524()
isScaredByThunderstorm()
private void
ho()
handleEating()
method_6536()
updateEatingAnimation()
private void
hp()
addEatingParticles()
method_6512()
playEatingAnimation()
private void
hq()
updateSitAmount()
method_6544()
updateSittingAnimation()
private void
hr()
updateOnBackAnimation()
method_6503()
updateLieOnBackAnimation()
private void
hs()
updateRollAmount()
method_6523()
updateRollOverAnimation()
public float
L(float arg0)
getSitAmount(float arg0)
method_6534(float arg0)
getSittingAnimationProgress(float tickProgress)
public float
M(float arg0)
getLieOnBackAmount(float arg0)
method_6555(float arg0)
getLieOnBackAnimationProgress(float tickProgress)
public float
N(float arg0)
getRollAmount(float arg0)
method_6560(float arg0)
getRollOverAnimationProgress(float tickProgress)
private void
ht()
handleRoll()
method_6537()
updatePlaying()
private void
hu()
afterSneeze()
method_6548()
sneeze()
protected void
a(axf arg0, cyr arg1)
pickUpItem(ServerLevel arg0, ItemEntity arg1)
method_5949(class_3218 arg0, class_1542 arg1)
loot(ServerWorld arg0, ItemEntity arg1)
public boolean
a(axf arg0, cev 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(dvx arg0, ccy arg1, cgr arg2, cid 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(cuc arg0, cuc arg1)
setGeneFromParents(Panda arg0, Panda arg1)
method_6515(class_1440 arg0, class_1440 arg1)
initGenes(PandaEntity mother, PandaEntity father)
private Panda$Gene
hv()
getOneOfGenesRandomly()
method_6519()
getRandomGene()
public void
hl()
setAttributes()
method_6538()
resetAttributes()
void
hw()
tryToSit()
method_18057()
stop()
public InteractionResult
b(dcm arg0, ccz arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
protected SoundEvent
p()
getAmbientSound()
method_5994()
getAmbientSound()
protected void
b(is arg0, emz arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
public boolean
i(dkm arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
protected SoundEvent
e_()
getDeathSound()
method_6002()
getDeathSound()
protected SoundEvent
e(cev arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
public boolean
hm()
canPerformAction()
method_18442()
isIdle()
public EntityDimensions
b(chw arg0)
getDefaultDimensions(Pose arg0)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
private static boolean
b(cyr arg0)
canPickUpAndEat(ItemEntity arg0)
method_64177(class_1542 arg0)
canEatFromGround(ItemEntity itemEntity)