net.minecraft.entity.passive

public class OcelotEntity

extends AnimalEntity

All mapped superinterfaces:

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

net.minecraft.world.entity.animal.feline.Ocelot
net.minecraft.class_3701
net.minecraft.entity.passive.OcelotEntity

Field summary

Modifier and TypeField
public static final double
CROUCH_SPEED_MOD
field_30340
CROUCHING_SPEED
public static final double
WALK_SPEED_MOD
field_30341
NORMAL_SPEED
public static final double
SPRINT_SPEED_MOD
field_30342
SPRINTING_SPEED
private static final TrackedData<Boolean>
DATA_TRUSTING
field_16301
TRUSTING
private static final boolean
DEFAULT_TRUSTING
field_57613
DEFAULT_TRUSTING
private static final EntityDimensions
BABY_DIMENSIONS
field_1_6081
field_1_6081
private OcelotEntity$FleeGoal<PlayerEntity>
ocelotAvoidPlayersGoal
field_16300
fleeGoal
private OcelotEntity$OcelotTemptGoal
temptGoal
field_16302
temptGoal

Constructor summary

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

Method summary

Modifier and TypeMethod
private boolean
isTrusting()
method_16099()
isTrusting()
private void
setTrusting(boolean trusting)
method_16102(boolean arg0)
setTrusting(boolean trusting)
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)
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected void
registerGoals()
method_5959()
initGoals()
public void
customServerAiStep(ServerLevel level)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public boolean
removeWhenFarAway(double distSqr)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
public static DefaultAttributeContainer$Builder
createAttributes()
method_26887()
createOcelotAttributes()
protected SoundEvent
getAmbientSound()
method_5994()
getAmbientSound()
public int
getAmbientSoundInterval()
method_5970()
getMinAmbientSoundDelay()
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
public ActionResult
mobInteract(Player player, InteractionHand hand)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
public void
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
private void
spawnTrustingParticles(boolean success)
method_16100(boolean arg0)
showEmoteParticle(boolean positive)
protected void
reassessTrustingGoals()
method_16103()
updateFleeing()
public EntityDimensions
getDefaultDimensions(Pose pose)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
public OcelotEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public boolean
isFood(ItemStack itemStack)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
public static boolean
checkOcelotSpawnRules(EntityType<Ocelot> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random)
method_20666(class_1299<class_3701> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawn(EntityType<OcelotEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
public boolean
checkSpawnObstruction(LevelReader level)
method_5957(class_4538 arg0)
canSpawn(WorldView 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 Vec3d
getLeashOffset()
method_29919()
getLeashOffset()
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_58370(class_1799 arg0)
method_58370(ItemStack stack)