net.minecraft.world.entity.animal

public class Cat

extends TamableAnimal implements VariantHolder<Holder<CatVariant>>

All mapped superinterfaces:

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

cia
net.minecraft.world.entity.animal.Cat
net.minecraft.class_1451
net.minecraft.entity.passive.CatEntity
net.minecraft.src.C_819_
net.minecraft.world.entity.animal.EntityCat

Field summary

Modifier and TypeField
public static final double
cd
TEMPT_SPEED_MOD
field_30310
CROUCHING_SPEED
f_148842_
public static final double
ce
WALK_SPEED_MOD
field_30311
NORMAL_SPEED
f_148843_
public static final double
cf
SPRINT_SPEED_MOD
field_30312
SPRINTING_SPEED
f_148844_
private static final EntityDataAccessor<Holder<CatVariant>>
cg
DATA_VARIANT_ID
field_6811
CAT_VARIANT
f_218131_
private static final EntityDataAccessor<Boolean>
ch
IS_LYING
field_16284
IN_SLEEPING_POSE
f_28105_
private static final EntityDataAccessor<Boolean>
ci
RELAX_STATE_ONE
field_16292
HEAD_DOWN
f_28106_
private static final EntityDataAccessor<Integer>
cj
DATA_COLLAR_COLOR
field_16285
COLLAR_COLOR
f_28107_
private static final ResourceKey<CatVariant>
ck
DEFAULT_VARIANT
field_49979
DEFAULT_VARIANT
f_314571_
private Cat$CatAvoidEntityGoal<Player>
cl
avoidPlayersGoal
field_6808
fleeGoal
f_28108_
private TemptGoal
cm
temptGoal
field_6810
temptGoal
f_28109_
private float
cn
lieDownAmount
field_16290
sleepAnimation
f_28110_
private float
co
lieDownAmountO
field_16291
prevSleepAnimation
f_28111_
private float
cp
lieDownAmountTail
field_16288
tailCurlAnimation
f_28098_
private float
cq
lieDownAmountOTail
field_16289
prevTailCurlAnimation
f_28099_
private boolean
cr
isLyingOnTopOfSleepingPlayer
field_52466
nearSleepingPlayer
f_348634_
private float
cs
relaxStateOneAmount
field_16286
headDownAnimation
f_28100_
private float
ct
relaxStateOneAmountO
field_16287
prevHeadDownAnimation
f_28101_

Constructor summary

ModifierConstructor
public (EntityType<? extends Cat> p_28115_, Level arg1)

Method summary

Modifier and TypeMethod
protected void
B()
registerGoals()
method_5959()
initGoals()
m_8099_()
public Holder<CatVariant>
gA()
getVariant()
method_47843()
getVariant()
m_28554_()
public void
j(jq<cib> arg0)
setVariant(Holder<CatVariant> arg0)
method_47842(class_6880<class_7375> arg0)
setVariant(RegistryEntry<CatVariant> arg0)
m_28464_(C_203228_<C_213033_> arg0)
public void
A(boolean arg0)
setLying(boolean arg0)
method_16088(boolean arg0)
setInSleepingPose(boolean sleeping)
m_28181_(boolean arg0)
public boolean
gB()
isLying()
method_16086()
isInSleepingPose()
m_28164_()
void
B(boolean arg0)
setRelaxStateOne(boolean arg0)
method_16087(boolean arg0)
setHeadDown(boolean headDown)
m_28185_(boolean arg0)
boolean
gH()
isRelaxStateOne()
method_16093()
isHeadDown()
m_28165_()
public DyeColor
gC()
getCollarColor()
method_16096()
getCollarColor()
m_28166_()
private void
a(cwm arg0)
setCollarColor(DyeColor arg0)
method_16094(class_1767 arg0)
setCollarColor(DyeColor color)
m_28131_(C_1353_ arg0)
protected void
a(alg$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
public void
b(ux arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(ux arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public void
a(ash arg0)
customServerAiStep(ServerLevel arg0)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
m_8024_(C_12_ arg0)
protected SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
m_7515_()
public int
Q()
getAmbientSoundInterval()
method_5970()
getMinAmbientSoundDelay()
m_8100_()
public void
gD()
hiss()
method_16089()
hiss()
m_28167_()
protected SoundEvent
e(bua arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
protected SoundEvent
o_()
getDeathSound()
method_6002()
getDeathSound()
m_5592_()
public static AttributeSupplier$Builder
gE()
createAttributes()
method_26881()
createCatAttributes()
m_28168_()
protected void
gu()
playEatingSound()
method_61458()
playEatSound()
m_351932_()
public void
h()
tick()
method_5773()
tick()
m_8119_()
private void
gI()
handleLieDown()
method_16085()
updateAnimations()
m_28170_()
public boolean
gF()
isLyingOnTopOfSleepingPlayer()
method_61467()
isNearSleepingPlayer()
m_352587_()
private void
gJ()
updateLieDownAmount()
method_16090()
updateSleepAnimation()
m_28171_()
private void
gK()
updateRelaxStateOneAmount()
method_16084()
updateHeadDownAnimation()
m_28172_()
public float
J(float arg0)
getLieDownAmount(float arg0)
method_16082(float arg0)
getSleepAnimationProgress(float tickDelta)
m_28183_(float arg0)
public float
K(float arg0)
getLieDownAmountTail(float arg0)
method_16091(float arg0)
getTailCurlAnimationProgress(float tickDelta)
m_28187_(float arg0)
public float
L(float arg0)
getRelaxStateOneAmount(float arg0)
method_16095(float arg0)
getHeadDownAnimationProgress(float tickDelta)
m_28116_(float arg0)
public Cat
b(ash arg0, bvb arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_6573(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
m_142606_(C_12_ p_148871_, C_141062_ arg1)
public boolean
a(chx arg0)
canMate(Animal arg0)
method_6474(class_1429 arg0)
canBreedWith(AnimalEntity arg0)
m_7848_(C_801_ arg0)
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)
m_6518_(C_1618_ p_28135_, C_469_ p_361576_, C_345845_ p_28137_, C_542_ arg3)
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)
m_6071_(C_1141_ p_28154_, C_470_ arg1)
public boolean
j(cxp arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
m_6898_(C_1391_ arg0)
public boolean
h(double arg0)
removeWhenFarAway(double arg0)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
m_6785_(double arg0)
public void
b(boolean arg0, boolean arg1)
setTame(boolean arg0, boolean arg1)
method_6173(boolean arg0, boolean arg1)
setTamed(boolean arg0, boolean arg1)
m_7105_(boolean p_330053_, boolean arg1)
protected void
gG()
reassessTameGoals()
method_6175()
onTamedChanged()
m_28161_()
private void
g(cpx arg0)
tryToTame(Player arg0)
method_58168(class_1657 arg0)
tryTame(PlayerEntity player)
m_320972_(C_1141_ arg0)
public boolean
ce()
isSteppingCarefully()
method_21749()
bypassesSteppingEffects()
m_20161_()