net.minecraft.entity.passive

public class CatEntity

extends TameableEntity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, Attackable, ServerWaypoint, Waypoint, Targeter, EquipmentHolder, Leashable, Tameable

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

Field summary

Modifier and TypeField
public static final double
TEMPT_SPEED_MOD
field_30310
CROUCHING_SPEED
public static final double
WALK_SPEED_MOD
field_30311
NORMAL_SPEED
public static final double
SPRINT_SPEED_MOD
field_30312
SPRINTING_SPEED
private static final TrackedData<RegistryEntry<CatVariant>>
DATA_VARIANT_ID
field_6811
CAT_VARIANT
private static final TrackedData<Boolean>
IS_LYING
field_16284
IN_SLEEPING_POSE
private static final TrackedData<Boolean>
RELAX_STATE_ONE
field_16292
HEAD_DOWN
private static final TrackedData<Integer>
DATA_COLLAR_COLOR
field_16285
COLLAR_COLOR
private static final RegistryKey<CatVariant>
DEFAULT_VARIANT
field_49979
DEFAULT_VARIANT
private static final DyeColor
DEFAULT_COLLAR_COLOR
field_56650
DEFAULT_COLLAR_COLOR
private CatEntity$CatFleeGoal<PlayerEntity>
avoidPlayersGoal
field_6808
fleeGoal
private TemptGoal
temptGoal
field_6810
temptGoal
private float
lieDownAmount
field_16290
sleepAnimation
private float
lieDownAmountO
field_16291
lastSleepAnimation
private float
lieDownAmountTail
field_16288
tailCurlAnimation
private float
lieDownAmountOTail
field_16289
lastTailCurlAnimation
private boolean
isLyingOnTopOfSleepingPlayer
field_52466
nearSleepingPlayer
private float
relaxStateOneAmount
field_16286
headDownAnimation
private float
relaxStateOneAmountO
field_16287
lastHeadDownAnimation

Constructor summary

ModifierConstructor
public (EntityType<? extends CatEntity> type, World level)

Method summary

Modifier and TypeMethod
protected void
registerGoals()
method_5959()
initGoals()
public RegistryEntry<CatVariant>
getVariant()
method_47843()
getVariant()
private void
setVariant(Holder<CatVariant> variant)
method_47842(class_6880<class_7375> arg0)
setVariant(RegistryEntry<CatVariant> variant)
public <T> T
get(DataComponentType<? extends T> type)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
protected void
applyImplicitComponents(DataComponentGetter components)
method_66649(class_9473 arg0)
copyComponentsFrom(ComponentsAccess arg0)
protected <T> boolean
applyImplicitComponent(DataComponentType<T> type, T value)
method_66654(class_9331<T> arg0, T arg1)
setApplicableComponent(ComponentType<T> arg0, T arg1)
public void
setLying(boolean value)
method_16088(boolean arg0)
setInSleepingPose(boolean sleeping)
public boolean
isLying()
method_16086()
isInSleepingPose()
private void
setRelaxStateOne(boolean value)
method_16087(boolean arg0)
setHeadDown(boolean headDown)
private boolean
isRelaxStateOne()
method_16093()
isHeadDown()
public DyeColor
getCollarColor()
method_16096()
getCollarColor()
private void
setCollarColor(DyeColor color)
method_16094(class_1767 arg0)
setCollarColor(DyeColor color)
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public void
customServerAiStep(ServerLevel level)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
protected SoundEvent
getAmbientSound()
method_5994()
getAmbientSound()
public int
getAmbientSoundInterval()
method_5970()
getMinAmbientSoundDelay()
public void
hiss()
method_16089()
hiss()
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
public static DefaultAttributeContainer$Builder
createAttributes()
method_26881()
createCatAttributes()
protected void
playEatingSound()
method_61458()
playEatSound()
public void
tick()
method_5773()
tick()
private void
handleLieDown()
method_16085()
updateAnimations()
public boolean
isLyingOnTopOfSleepingPlayer()
method_61467()
isNearSleepingPlayer()
private void
updateLieDownAmount()
method_16090()
updateSleepAnimation()
private void
updateRelaxStateOneAmount()
method_16084()
updateHeadDownAnimation()
public float
getLieDownAmount(float a)
method_16082(float arg0)
getSleepAnimationProgress(float tickProgress)
public float
getLieDownAmountTail(float a)
method_16091(float arg0)
getTailCurlAnimationProgress(float tickProgress)
public float
getRelaxStateOneAmount(float a)
method_16095(float arg0)
getHeadDownAnimationProgress(float tickProgress)
public CatEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public boolean
canMate(Animal partner)
method_6474(class_1429 arg0)
canBreedWith(AnimalEntity arg0)
public EntityData
finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, SpawnGroupData groupData)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
public ActionResult
mobInteract(Player player, InteractionHand hand)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
public boolean
isFood(ItemStack itemStack)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
public boolean
removeWhenFarAway(double distSqr)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
public void
setTame(boolean isTame, boolean includeSideEffects)
method_6173(boolean arg0, boolean arg1)
setTamed(boolean arg0, boolean arg1)
protected void
reassessTameGoals()
method_6175()
onTamedChanged()
private void
tryToTame(Player player)
method_58168(class_1657 arg0)
tryTame(PlayerEntity player)
public boolean
isSteppingCarefully()
method_21749()
bypassesSteppingEffects()
public PassiveEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
private static boolean
lambda$registerGoals$0(ItemStack arg0)
method_58365(class_1799 arg0)
method_58365(ItemStack stack)