net.minecraft.world.entity.animal

public class Cat

extends TamableAnimal

All mapped superinterfaces:

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

cir
net.minecraft.world.entity.animal.Cat
net.minecraft.class_1451
net.minecraft.entity.passive.CatEntity

Field summary

Modifier and TypeField
public static final double
bJ
TEMPT_SPEED_MOD
field_30310
CROUCHING_SPEED
public static final double
bK
WALK_SPEED_MOD
field_30311
NORMAL_SPEED
public static final double
bL
SPRINT_SPEED_MOD
field_30312
SPRINTING_SPEED
private static final EntityDataAccessor<Holder<CatVariant>>
bM
DATA_VARIANT_ID
field_6811
CAT_VARIANT
private static final EntityDataAccessor<Boolean>
bN
IS_LYING
field_16284
IN_SLEEPING_POSE
private static final EntityDataAccessor<Boolean>
bO
RELAX_STATE_ONE
field_16292
HEAD_DOWN
private static final EntityDataAccessor<Integer>
bP
DATA_COLLAR_COLOR
field_16285
COLLAR_COLOR
private static final ResourceKey<CatVariant>
bQ
DEFAULT_VARIANT
field_49979
DEFAULT_VARIANT
private Cat$CatAvoidEntityGoal<Player>
bR
avoidPlayersGoal
field_6808
fleeGoal
private TemptGoal
bS
temptGoal
field_6810
temptGoal
private float
bT
lieDownAmount
field_16290
sleepAnimation
private float
bU
lieDownAmountO
field_16291
lastSleepAnimation
private float
bV
lieDownAmountTail
field_16288
tailCurlAnimation
private float
bW
lieDownAmountOTail
field_16289
lastTailCurlAnimation
private boolean
bX
isLyingOnTopOfSleepingPlayer
field_52466
nearSleepingPlayer
private float
bY
relaxStateOneAmount
field_16286
headDownAnimation
private float
bZ
relaxStateOneAmountO
field_16287
lastHeadDownAnimation

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
D()
registerGoals()
method_5959()
initGoals()
public Holder<CatVariant>
gC()
getVariant()
method_47843()
getVariant()
private void
j(je<cis> arg0)
setVariant(Holder<CatVariant> arg0)
method_47842(class_6880<class_7375> arg0)
setVariant(RegistryEntry<CatVariant> variant)
public <T> T
a(ki<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
protected void
a(ke arg0)
applyImplicitComponents(DataComponentGetter arg0)
method_66649(class_9473 arg0)
copyComponentsFrom(ComponentsAccess arg0)
protected <T> boolean
b(ki<T> arg0, T arg1)
applyImplicitComponent(DataComponentType<T> arg0, T arg1)
method_66654(class_9331<T> arg0, T arg1)
setApplicableComponent(ComponentType<T> arg0, T arg1)
public void
z(boolean arg0)
setLying(boolean arg0)
method_16088(boolean arg0)
setInSleepingPose(boolean sleeping)
public boolean
gD()
isLying()
method_16086()
isInSleepingPose()
void
A(boolean arg0)
setRelaxStateOne(boolean arg0)
method_16087(boolean arg0)
setHeadDown(boolean headDown)
boolean
gJ()
isRelaxStateOne()
method_16093()
isHeadDown()
public DyeColor
gE()
getCollarColor()
method_16096()
getCollarColor()
private void
a(cxq arg0)
setCollarColor(DyeColor arg0)
method_16094(class_1767 arg0)
setCollarColor(DyeColor color)
protected void
a(akl$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
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 void
a(aro arg0)
customServerAiStep(ServerLevel arg0)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
protected SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
public int
S()
getAmbientSoundInterval()
method_5970()
getMinAmbientSoundDelay()
public void
gF()
hiss()
method_16089()
hiss()
protected SoundEvent
e(bup arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
l_()
getDeathSound()
method_6002()
getDeathSound()
public static AttributeSupplier$Builder
gG()
createAttributes()
method_26881()
createCatAttributes()
protected void
gw()
playEatingSound()
method_61458()
playEatSound()
public void
h()
tick()
method_5773()
tick()
private void
gK()
handleLieDown()
method_16085()
updateAnimations()
public boolean
gH()
isLyingOnTopOfSleepingPlayer()
method_61467()
isNearSleepingPlayer()
private void
gL()
updateLieDownAmount()
method_16090()
updateSleepAnimation()
private void
gM()
updateRelaxStateOneAmount()
method_16084()
updateHeadDownAnimation()
public float
J(float arg0)
getLieDownAmount(float arg0)
method_16082(float arg0)
getSleepAnimationProgress(float tickDelta)
public float
K(float arg0)
getLieDownAmountTail(float arg0)
method_16091(float arg0)
getTailCurlAnimationProgress(float tickDelta)
public float
L(float arg0)
getRelaxStateOneAmount(float arg0)
method_16095(float arg0)
getHeadDownAnimationProgress(float tickDelta)
public Cat
b(aro arg0, bvq arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_6573(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public boolean
a(cio arg0)
canMate(Animal arg0)
method_6474(class_1429 arg0)
canBreedWith(AnimalEntity arg0)
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 InteractionResult
b(cqs arg0, btx arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
public boolean
k(cys arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
public boolean
h(double arg0)
removeWhenFarAway(double arg0)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
public void
a(boolean arg0, boolean arg1)
setTame(boolean arg0, boolean arg1)
method_6173(boolean arg0, boolean arg1)
setTamed(boolean arg0, boolean arg1)
protected void
gI()
reassessTameGoals()
method_6175()
onTamedChanged()
private void
f(cqs arg0)
tryToTame(Player arg0)
method_58168(class_1657 arg0)
tryTame(PlayerEntity player)
public boolean
ce()
isSteppingCarefully()
method_21749()
bypassesSteppingEffects()