Class OcelotEntity
- All Implemented Interfaces:
CommandOutput
,Nameable
,EntityLike
- Mappings:
Namespace Name official bqc
intermediary net/minecraft/class_3701
named net/minecraft/entity/passive/OcelotEntity
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
OcelotEntity.FleeGoal<T extends LivingEntity>
private static class
Nested classes/interfaces inherited from class net.minecraft.entity.passive.PassiveEntity
PassiveEntity.PassiveData
Nested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSounds
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
private @Nullable OcelotEntity.FleeGoal<PlayerEntity>
static final double
static final double
private static final Ingredient
private static final TrackedData<Boolean>
Fields inherited from class net.minecraft.entity.passive.AnimalEntity
BREEDING_COOLDOWN
Fields inherited from class net.minecraft.entity.passive.PassiveEntity
BABY_AGE, breedingAge, forcedAge, happyTicksRemaining
Fields inherited from class net.minecraft.entity.mob.PathAwareEntity
DEFAULT_PATHFINDING_FAVOR
Fields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, DEFAULT_CAN_PICKUP_LOOT_CHANCE, DEFAULT_DROP_CHANCE, experiencePoints, field_35039, field_38932, goalSelector, handDropChances, jumpControl, LEASH_KEY, lookControl, MINIMUM_DROPPED_XP_PER_EQUIPMENT, moveControl, navigation, targetSelector
Fields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, airStrafingSpeed, attackingPlayer, BABY_SCALE_FACTOR, bodyTrackingIncrements, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, EQUIPMENT_SLOT_ID, field_30063, field_30067, field_30069, field_30070, field_30072, field_30074, field_30075, field_6215, forwardSpeed, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, knockbackVelocity, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, lastLimbDistance, limbAngle, limbDistance, LIVING_FLAGS, lookDirection, maxHurtTime, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideTicks, roll, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAG
Fields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_29991, field_36331, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inNetherPortal, inPowderSnow, intersectionChecked, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, MAX_RIDING_COOLDOWN, MAX_SCOREBOARD_TAGS, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, onGround, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, stepHeight, submergedInWater, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, VELOCITY_AFFECTING_POS_Y_OFFSET, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFire, world
Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether the entity should bypass effects caused by stepping.boolean
canImmediatelyDespawn
(double distanceSquared) static boolean
canSpawn
(EntityType<OcelotEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) boolean
createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) protected @Nullable SoundEvent
private float
protected SoundEvent
protected SoundEvent
getHurtSound
(DamageSource source) Returns the offset from the entity's position where the leash is attached to.int
boolean
handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) Called when an entity falls.void
handleStatus
(byte status) Called on the client when the entity receives an entity status from the server.protected void
Initializes data tracker.protected void
initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) interactMob
(PlayerEntity player, Hand hand) boolean
isBreedingItem
(ItemStack stack) (package private) boolean
void
mobTick()
void
Reads custom data fromnbt
.private void
setTrusting
(boolean trusting) private void
showEmoteParticle
(boolean positive) boolean
protected void
void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.passive.AnimalEntity
breed, canBreedWith, canEat, damage, eat, getHeightOffset, getLoveTicks, getLovingPlayer, getPathfindingFavor, getXpToDrop, isInLove, isLightLevelValidForNaturalSpawn, isValidNaturalSpawn, lovePlayer, resetLoveTicks, setLoveTicks, tickMovement
Methods inherited from class net.minecraft.entity.passive.PassiveEntity
getBreedingAge, growUp, growUp, isBaby, isReadyToBreed, onGrowUp, onTrackedDataSet, setBaby, setBreedingAge, toGrowUpAge
Methods inherited from class net.minecraft.entity.mob.PathAwareEntity
canSpawn, getFollowLeashSpeed, getPathfindingFavor, isNavigating, shouldFollowLeash, updateForLeashLength, updateLeash
Methods inherited from class net.minecraft.entity.mob.MobEntity
attachLeash, baseTick, canBeLeashedBy, canEquip, canGather, canJumpToNextPathNode, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canTarget, canUseRangedWeapon, checkDespawn, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, createBodyControl, createMobAttributes, createNavigation, detachLeash, dropEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipLootStack, equipStack, getArmorItems, getDropChance, getEquipmentForSlot, getEquippedStack, getHandItems, getHoldingEntity, getItemPickUpRangeExpander, getJumpControl, getLimitPerChunk, getLookControl, getLootContextBuilder, getLootTable, getLootTableId, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getSafeFallDistance, getSquaredDistanceToAttackPosOf, getTarget, getVisibilityCache, hasPositionTarget, initEquipment, interact, isAffectedByDaylight, isAiDisabled, isAttacking, isDisallowedInPeaceful, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeashed, isLeftHanded, isLogicalSideForUpdatingMovement, isPersistent, lookAtEntity, loot, movesIndependently, onEatingGrass, onPlayerSpawnedChild, playAmbientSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, sendAiDebugData, setAiDisabled, setAttacking, setCanPickUpLoot, setEquipmentDropChance, setForwardSpeed, setHoldingEntityId, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, squaredAttackRange, startRiding, swimUpward, tick, tickNewAi, tryEquip, turnHead, updateDropChances, updateEnchantments, updateGoalControls
Methods inherited from class net.minecraft.entity.LivingEntity
addPowderSnowSlowIfNeeded, addSoulSpeedBoostIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyFluidMovingSpeed, applyMovementEffects, applyMovementInput, areItemsDifferent, attackLivingEntity, blockedByShield, canBeRiddenInWater, canBreatheInWater, canFreeze, canHaveStatusEffect, canHit, canSee, canTakeDamage, canTarget, canWalkOnFluid, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, damageArmor, damageHelmet, damageShield, deserializeBrain, disableExperienceDropping, disablesShield, displaySoulSpeedEffects, drop, dropInventory, dropXp, eatFood, endCombat, enterCombat, fall, getAbsorptionAmount, getActiveEyeHeight, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getArrowType, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttackPos, getAttributeBaseValue, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getAttributeValue, getBaseMovementSpeedMultiplier, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getDamageTracker, getDespawnCounter, getDimensions, getDrinkSound, getEatSound, getEyeHeight, getFallSounds, getGroup, getHandSwingProgress, getHeadYaw, getHealth, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getLastAttackedTime, getLastAttackTime, getLeaningPitch, getMainHandStack, getMaxHealth, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffHandStack, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getRandom, getRecentDamageSource, getRoll, getScaleFactor, getSleepingDirection, getSleepingPosition, getSoundPitch, getSoundVolume, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getVisibilityBoundingBox, getYaw, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBlocking, isClimbing, isDead, isExperienceDroppingDisabled, isFallFlying, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInsideWall, isInSwimmingPose, isMobOrPlayer, isOnSoulSpeedBlock, isPartOfGame, isPushable, isSleeping, isTarget, isUndead, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDeath, onEquipStack, onKilledBy, onSpawnPacket, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, playBlockFallSound, playEquipSound, positionInPortal, positionInPortal, processEquippedStack, pushAway, pushAwayFrom, removePowderSnowSlow, removeSoulSpeedBoost, removeStatusEffect, removeStatusEffectInternal, sendEquipmentBreakStatus, sendPickup, sendToolBreakStatus, setAbsorptionAmount, setAttacker, setAttacking, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setOnGround, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropXp, shouldDisplaySoulSpeedEffects, shouldDropLoot, shouldDropXp, shouldRemoveSoulSpeedBoost, shouldRenderName, shouldSwimInFluids, sleep, spawnConsumptionEffects, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickCramming, tickHandSwing, tickInVoid, tickItemStackUsage, tickRiding, tickRiptide, tickStatusEffects, travel, triggerItemPickedUpByEntityCriteria, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUp
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addFlapEffects, addPassenger, addScoreboardTag, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyDamageEffects, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, calculateBoundingBox, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, createSpawnPacket, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, extinguishWithSound, getAir, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMoveEffect, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPortalRect, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getX, getY, getYaw, getZ, handleAttack, hasCollidedSoftly, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasPrimaryPassenger, hasVehicle, interactAt, isAttackable, isCollidable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowingLocal, isImmuneToExplosion, isInLava, isInPose, isInRange, isInRange, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isOnFire, isOnGround, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, limitFallDistance, method_45320, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playExtinguishSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, remove, removeAllPassengers, removePassenger, removeScoreboardTag, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setPitch, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setYaw, shouldBroadcastConsoleToOps, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, tickPortal, tickPortalCooldown, toNbtList, toNbtList, toString, tryCheckBlockCollision, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilenced
-
Field Details
-
CROUCHING_SPEED
public static final double CROUCHING_SPEED- See Also:
- Mappings:
Namespace Name Mixin selector official bX
Lbqc;bX:D
intermediary field_30340
Lnet/minecraft/class_3701;field_30340:D
named CROUCHING_SPEED
Lnet/minecraft/entity/passive/OcelotEntity;CROUCHING_SPEED:D
-
NORMAL_SPEED
public static final double NORMAL_SPEED- See Also:
- Mappings:
Namespace Name Mixin selector official bY
Lbqc;bY:D
intermediary field_30341
Lnet/minecraft/class_3701;field_30341:D
named NORMAL_SPEED
Lnet/minecraft/entity/passive/OcelotEntity;NORMAL_SPEED:D
-
SPRINTING_SPEED
public static final double SPRINTING_SPEED- See Also:
- Mappings:
Namespace Name Mixin selector official ca
Lbqc;ca:D
intermediary field_30342
Lnet/minecraft/class_3701;field_30342:D
named SPRINTING_SPEED
Lnet/minecraft/entity/passive/OcelotEntity;SPRINTING_SPEED:D
-
TAMING_INGREDIENT
- Mappings:
Namespace Name Mixin selector official cb
Lbqc;cb:Lcgl;
intermediary field_16299
Lnet/minecraft/class_3701;field_16299:Lnet/minecraft/class_1856;
named TAMING_INGREDIENT
Lnet/minecraft/entity/passive/OcelotEntity;TAMING_INGREDIENT:Lnet/minecraft/recipe/Ingredient;
-
TRUSTING
- Mappings:
Namespace Name Mixin selector official cc
Lbqc;cc:Labn;
intermediary field_16301
Lnet/minecraft/class_3701;field_16301:Lnet/minecraft/class_2940;
named TRUSTING
Lnet/minecraft/entity/passive/OcelotEntity;TRUSTING:Lnet/minecraft/entity/data/TrackedData;
-
fleeGoal
- Mappings:
Namespace Name Mixin selector official cd
Lbqc;cd:Lbqc$a;
intermediary field_16300
Lnet/minecraft/class_3701;field_16300:Lnet/minecraft/class_3701$class_3702;
named fleeGoal
Lnet/minecraft/entity/passive/OcelotEntity;fleeGoal:Lnet/minecraft/entity/passive/OcelotEntity$FleeGoal;
-
temptGoal
- Mappings:
Namespace Name Mixin selector official ce
Lbqc;ce:Lbqc$b;
intermediary field_16302
Lnet/minecraft/class_3701;field_16302:Lnet/minecraft/class_3701$class_3703;
named temptGoal
Lnet/minecraft/entity/passive/OcelotEntity;temptGoal:Lnet/minecraft/entity/passive/OcelotEntity$OcelotTemptGoal;
-
-
Constructor Details
-
OcelotEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lbdr;<init>(Lbdv;Lcjw;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
-
Method Details
-
isTrusting
boolean isTrusting()- Mappings:
Namespace Name Mixin selector official fM
Lbqc;fM()Z
intermediary method_16099
Lnet/minecraft/class_3701;method_16099()Z
named isTrusting
Lnet/minecraft/entity/passive/OcelotEntity;isTrusting()Z
-
setTrusting
private void setTrusting(boolean trusting) - Mappings:
Namespace Name Mixin selector official v
Lbqc;v(Z)V
intermediary method_16102
Lnet/minecraft/class_3701;method_16102(Z)V
named setTrusting
Lnet/minecraft/entity/passive/OcelotEntity;setTrusting(Z)V
-
writeCustomDataToNbt
Writes custom data tonbt
. Subclasses has to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
- Overrides:
writeCustomDataToNbt
in classAnimalEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lbdr;b(Lqp;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
named writeCustomDataToNbt
Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
readCustomDataFromNbt
Reads custom data fromnbt
. Subclasses has to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
nbt
might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readCustomDataFromNbt
in classAnimalEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbdr;a(Lqp;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
named readCustomDataFromNbt
Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
initDataTracker
protected void initDataTracker()Initializes data tracker.- Overrides:
initDataTracker
in classPassiveEntity
- Mappings:
Namespace Name Mixin selector official a_
Lbdr;a_()V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693()V
named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker()V
-
initGoals
protected void initGoals() -
mobTick
public void mobTick()- Overrides:
mobTick
in classAnimalEntity
- Mappings:
Namespace Name Mixin selector official U
Lbei;U()V
intermediary method_5958
Lnet/minecraft/class_1308;method_5958()V
named mobTick
Lnet/minecraft/entity/mob/MobEntity;mobTick()V
-
canImmediatelyDespawn
public boolean canImmediatelyDespawn(double distanceSquared) - Overrides:
canImmediatelyDespawn
in classAnimalEntity
- Mappings:
Namespace Name Mixin selector official h
Lbei;h(D)Z
intermediary method_5974
Lnet/minecraft/class_1308;method_5974(D)Z
named canImmediatelyDespawn
Lnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Z
-
createOcelotAttributes
- Mappings:
Namespace Name Mixin selector official p
Lbqc;p()Lbfi$a;
intermediary method_26887
Lnet/minecraft/class_3701;method_26887()Lnet/minecraft/class_5132$class_5133;
named createOcelotAttributes
Lnet/minecraft/entity/passive/OcelotEntity;createOcelotAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
-
handleFallDamage
public boolean handleFallDamage(float fallDistance, float damageMultiplier, DamageSource damageSource) Called when an entity falls.Flying mobs and mobs immune to fall damage should override this to do nothing. Mobs with reduced fall damage should override this method to apply reduced damage instead. Some entities explode instead of applying fall damage, like
TntMinecartEntity
.- Overrides:
handleFallDamage
in classLivingEntity
- Returns:
- whether to play the sound when falling on honey block;
false
for all entities except horses and llamas - Mappings:
Namespace Name Mixin selector official a
Lbdr;a(FFLbcz;)Z
intermediary method_5747
Lnet/minecraft/class_1297;method_5747(FFLnet/minecraft/class_1282;)Z
named handleFallDamage
Lnet/minecraft/entity/Entity;handleFallDamage(FFLnet/minecraft/entity/damage/DamageSource;)Z
-
getAmbientSound
- Overrides:
getAmbientSound
in classMobEntity
- Mappings:
Namespace Name Mixin selector official r
Lbei;r()Laln;
intermediary method_5994
Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
named getAmbientSound
Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
-
getMinAmbientSoundDelay
public int getMinAmbientSoundDelay()- Overrides:
getMinAmbientSoundDelay
in classAnimalEntity
- Mappings:
Namespace Name Mixin selector official K
Lbei;K()I
intermediary method_5970
Lnet/minecraft/class_1308;method_5970()I
named getMinAmbientSoundDelay
Lnet/minecraft/entity/mob/MobEntity;getMinAmbientSoundDelay()I
-
getHurtSound
- Overrides:
getHurtSound
in classLivingEntity
- Mappings:
Namespace Name Mixin selector official c
Lbeg;c(Lbcz;)Laln;
intermediary method_6011
Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
named getHurtSound
Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
-
getDeathSound
- Overrides:
getDeathSound
in classLivingEntity
- Mappings:
Namespace Name Mixin selector official c_
Lbeg;c_()Laln;
intermediary method_6002
Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
named getDeathSound
Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
-
getAttackDamage
private float getAttackDamage()- Mappings:
Namespace Name Mixin selector official fN
Lbqc;fN()F
intermediary method_22329
Lnet/minecraft/class_3701;method_22329()F
named getAttackDamage
Lnet/minecraft/entity/passive/OcelotEntity;getAttackDamage()F
-
tryAttack
-
interactMob
- Overrides:
interactMob
in classAnimalEntity
- Mappings:
Namespace Name Mixin selector official b
Lbei;b(Lbwp;Lbcl;)Lbcm;
intermediary method_5992
Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
named interactMob
Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
-
handleStatus
public void handleStatus(byte status) Called on the client when the entity receives an entity status from the server. They are often used to spawn particles or play sounds. Subclasses can override this method to handle custom entity status.- Overrides:
handleStatus
in classAnimalEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbdr;a(B)V
intermediary method_5711
Lnet/minecraft/class_1297;method_5711(B)V
named handleStatus
Lnet/minecraft/entity/Entity;handleStatus(B)V
-
showEmoteParticle
private void showEmoteParticle(boolean positive) - Mappings:
Namespace Name Mixin selector official w
Lbqc;w(Z)V
intermediary method_16100
Lnet/minecraft/class_3701;method_16100(Z)V
named showEmoteParticle
Lnet/minecraft/entity/passive/OcelotEntity;showEmoteParticle(Z)V
-
updateFleeing
protected void updateFleeing()- Mappings:
Namespace Name Mixin selector official t
Lbqc;t()V
intermediary method_16103
Lnet/minecraft/class_3701;method_16103()V
named updateFleeing
Lnet/minecraft/entity/passive/OcelotEntity;updateFleeing()V
-
createChild
@Nullable public @Nullable OcelotEntity createChild(ServerWorld serverWorld, PassiveEntity passiveEntity) - Specified by:
createChild
in classPassiveEntity
- Mappings:
Namespace Name Mixin selector official b
Lbqc;b(Lahm;Lbdo;)Lbqc;
intermediary method_16104
Lnet/minecraft/class_3701;method_16104(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_3701;
named createChild
Lnet/minecraft/entity/passive/OcelotEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/OcelotEntity;
-
isBreedingItem
- Overrides:
isBreedingItem
in classAnimalEntity
- Mappings:
Namespace Name Mixin selector official n
Lbpo;n(Lcdt;)Z
intermediary method_6481
Lnet/minecraft/class_1429;method_6481(Lnet/minecraft/class_1799;)Z
named isBreedingItem
Lnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
-
canSpawn
public static boolean canSpawn(EntityType<OcelotEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) - Mappings:
Namespace Name Mixin selector official c
Lbqc;c(Lbdv;Lcjx;Lbek;Lgp;Laoh;)Z
intermediary method_20666
Lnet/minecraft/class_3701;method_20666(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z
named canSpawn
Lnet/minecraft/entity/passive/OcelotEntity;canSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Z
-
canSpawn
-
initialize
@Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData, @Nullable @Nullable NbtCompound entityNbt) - Overrides:
initialize
in classPassiveEntity
- Mappings:
Namespace Name Mixin selector official a
Lbei;a(Lckl;Lbck;Lbek;Lbez;Lqp;)Lbez;
intermediary method_5943
Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;Lnet/minecraft/class_2487;)Lnet/minecraft/class_1315;
named initialize
Lnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/entity/EntityData;
-
getLeashOffset
Returns the offset from the entity's position where the leash is attached to.This is different from
Entity.getLeashPos(float)
; this method is called on the entity which a leash is attached to.- Overrides:
getLeashOffset
in classEntity
- Returns:
- the offset from the entity's position where the leash is attached to
- See Also:
- Mappings:
Namespace Name Mixin selector official cG
Lbdr;cG()Leae;
intermediary method_29919
Lnet/minecraft/class_1297;method_29919()Lnet/minecraft/class_243;
named getLeashOffset
Lnet/minecraft/entity/Entity;getLeashOffset()Lnet/minecraft/util/math/Vec3d;
-
bypassesSteppingEffects
public boolean bypassesSteppingEffects()Returns whether the entity should bypass effects caused by stepping.This returns
Entity.isSneaking()
by default.- Overrides:
bypassesSteppingEffects
in classEntity
- Returns:
- whether the entity should bypass effects caused by stepping
- See Also:
- Mappings:
Namespace Name Mixin selector official bP
Lbdr;bP()Z
intermediary method_21749
Lnet/minecraft/class_1297;method_21749()Z
named bypassesSteppingEffects
Lnet/minecraft/entity/Entity;bypassesSteppingEffects()Z
-