Package net.minecraft.entity.passive
Class TameableEntity
- All Implemented Interfaces:
ComponentsAccess
,Attackable
,DataTracked
,EquipmentHolder
,Leashable
,Tameable
,Targeter
,ScoreHolder
,Nameable
,EntityLike
,UniquelyIdentifiable
,ServerWaypoint
,Waypoint
- Direct Known Subclasses:
CatEntity
,TameableShoulderEntity
,WolfEntity
- Mappings:
Namespace Name named net/minecraft/entity/passive/TameableEntity
intermediary net/minecraft/class_1321
official cbi
-
Nested Class Summary
Nested ClassesNested 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
Nested classes/interfaces inherited from interface net.minecraft.entity.Leashable
Leashable.Elasticity, Leashable.LeashData
Nested classes/interfaces inherited from interface net.minecraft.world.waypoint.ServerWaypoint
ServerWaypoint.AzimuthWaypointTracker, ServerWaypoint.ChebyshevDistanceValidatedTracker, ServerWaypoint.ChunkWaypointTracker, ServerWaypoint.ManhattanDistanceValidatedTracker, ServerWaypoint.PositionalWaypointTracker, ServerWaypoint.WaypointTracker
Nested classes/interfaces inherited from interface net.minecraft.world.waypoint.Waypoint
Waypoint.Config
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final boolean
static final int
private static final int
private static final int
private static final int
protected static final TrackedData
<Optional<LazyEntityReference<LivingEntity>>> private boolean
protected static final TrackedData
<Byte> The tracked flags of tameable entities.Fields inherited from class net.minecraft.entity.passive.AnimalEntity
BREEDING_COOLDOWN
Fields inherited from class net.minecraft.entity.passive.PassiveEntity
BABY_AGE, breedingAge, DEFAULT_AGE, DEFAULT_FORCED_AGE, forcedAge, happyTicksRemaining
Fields inherited from class net.minecraft.entity.mob.PathAwareEntity
DEFAULT_PATHFINDING_FAVOR
Fields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, CAN_PICK_UP_LOOT_KEY, DEFAULT_CAN_PICKUP_LOOT_CHANCE, DROP_CHANCES_KEY, experiencePoints, field_35039, goalSelector, jumpControl, LEFT_HANDED_KEY, lookControl, MINIMUM_DROPPED_EXPERIENCE_PER_EQUIPMENT, moveControl, navigation, NO_AI_KEY, RANDOM_SPAWN_BONUS_MODIFIER_ID, targetSelector
Fields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, ATTRIBUTES_KEY, BABY_SCALE_FACTOR, bodyYaw, brain, BRAIN_KEY, dead, DEATH_TICKS, DEATH_TIME_KEY, deathTime, defaultMaxHealth, despawnCounter, elytraFlightController, equipment, EQUIPMENT_KEY, EQUIPMENT_SLOT_ID, FALL_FLYING_KEY, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, field_55952, field_56256, forwardSpeed, glidingTicks, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, HEALTH_KEY, HURT_BY_TIMESTAMP_KEY, HURT_TIME_KEY, hurtTime, interpolator, itemUseTimeLeft, jumping, lastAttackedTicks, lastBodyYaw, lastDamageTaken, lastHandSwingProgress, lastHeadYaw, limbAnimator, LIVING_FLAGS, maxHurtTime, NOT_WEARING_GAZE_DISGUISE_PREDICATE, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, riptideAttackDamage, riptideStack, riptideTicks, serverHeadYaw, sidewaysSpeed, SLEEPING_DIMENSIONS, SLEEPING_POS_KEY, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAG
Fields inherited from class net.minecraft.entity.Entity
age, AIR_KEY, collidedSoftly, CUSTOM_DATA_KEY, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_DISTANCE_KEY, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, FIRE_KEY, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, GLOWING_KEY, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, INVULNERABLE_KEY, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_QUEUED_COLLISION_CHECKS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, MOTION_KEY, movementMultiplier, NO_GRAVITY_KEY, noClip, ON_FIRE_FLAG_INDEX, ON_GROUND_KEY, PASSENGERS_KEY, PORTAL_COOLDOWN_KEY, portalManager, POS_KEY, POSE, random, ridingCooldown, ROTATION_KEY, SILENT_KEY, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow
Fields inherited from interface net.minecraft.entity.Leashable
DEFAULT_ELASTIC_DISTANCE, DEFAULT_SNAPPING_DISTANCE, ELASTICITY_MULTIPLIER, field_59997, field_59998, field_59999, field_60003, HELD_ENTITY_ATTACHMENT_POINT, LEASH_HOLDER_ATTACHMENT_POINT, LEASH_NBT_KEY, QUAD_LEASH_ATTACHMENT_POINTS
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
Fields inherited from interface net.minecraft.world.waypoint.ServerWaypoint
AZIMUTH_THRESHOLD
Fields inherited from interface net.minecraft.world.waypoint.Waypoint
DEFAULT_PLAYER_RANGE, DISABLE_TRACKING
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TameableEntity
(EntityType<? extends TameableEntity> type, World world) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canAttackWithOwner
(LivingEntity target, LivingEntity owner) boolean
final boolean
boolean
canTarget
(LivingEntity target) protected boolean
private boolean
canTeleportTo
(BlockPos pos) Returns the scoreboard team the entity belongs to, ornull
if there is none.void
handleStatus
(byte status) Called on the client when the entity receives an entity status from the server.protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.protected boolean
isInSameTeam
(Entity other) boolean
boolean
isOwner
(LivingEntity entity) boolean
boolean
isTamed()
void
onDeath
(DamageSource damageSource) protected void
readCustomData
(ReadView view) void
setInSittingPose
(boolean inSittingPose) void
void
setOwner
(@Nullable LivingEntity owner) void
setSitting
(boolean sitting) void
setTamed
(boolean tamed, boolean updateAttributes) void
setTamedBy
(PlayerEntity player) boolean
protected void
showEmoteParticle
(boolean positive) private void
tryTeleportNear
(BlockPos pos) private boolean
tryTeleportTo
(int x, int y, int z) void
protected void
protected void
writeCustomData
(WriteView view) Methods inherited from class net.minecraft.entity.passive.AnimalEntity
applyDamage, breed, breed, canBreedWith, canEat, canImmediatelyDespawn, createAnimalAttributes, eat, getExperienceToDrop, getLoveTicks, getLovingPlayer, getMinAmbientSoundDelay, getPathfindingFavor, interactMob, isBreedingItem, isInLove, isLightLevelValidForNaturalSpawn, isValidNaturalSpawn, lovePlayer, mobTick, playEatSound, resetLoveTicks, setLoveTicks, tickMovement
Methods inherited from class net.minecraft.entity.passive.PassiveEntity
createChild, getBreedingAge, getForcedAge, getHappyTicksRemaining, growUp, growUp, initialize, isBaby, isReadyToBreed, onGrowUp, onTrackedDataSet, setBaby, setBreedingAge, toGrowUpAge
Methods inherited from class net.minecraft.entity.mob.PathAwareEntity
beforeLeashTick, canSpawn, getFollowLeashSpeed, getPathfindingFavor, isNavigating, isPanicking, onShortLeashTick, shouldFollowLeash
Methods inherited from class net.minecraft.entity.mob.MobEntity
baseTick, canActVoluntarily, canDispenserEquipSlot, canGather, canMobSpawn, cannotDespawn, canPickupItem, canPickUpLoot, canRemoveSaddle, canSpawn, canTarget, canUseRangedWeapon, checkDespawn, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, convertTo, createBodyControl, createEquipmentInventory, createMobAttributes, createNavigation, dropAllForeignEquipment, dropEquipment, dropForeignEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipBodyArmor, equipLootStack, getAmbientSound, getAttackBox, getBodyArmor, getControllingPassenger, getEquipmentDropChances, getEquipmentForSlot, getItemPickUpRangeExpander, getJumpControl, getLeashData, getLimitPerChunk, getLookControl, getLootTableKey, getLootTableSeed, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getPreferredWeapons, getSafeFallDistance, getTarget, getTargetInBrain, getVisibilityCache, hasPositionTarget, hasSaddleEquipped, initEquipment, initGoals, interact, isAffectedByDaylight, isAiDisabled, isAttacking, isDisallowedInPeaceful, isInAttackRange, isInPositionTargetRange, isInPositionTargetRange, isInPositionTargetRange, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, loot, movesIndependently, onEatingGrass, onFinishPathfinding, onLeashRemoved, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playAttackSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, sendAiDebugData, setAiDisabled, setAttacking, setCanPickUpLoot, setDropGuaranteed, setEquipmentDropChance, setEquipmentFromTable, setEquipmentFromTable, setForwardSpeed, setLeashData, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, snapLongLeash, spawnsTooManyForEachTry, startRiding, stopMovement, swimUpward, tick, tickNewAi, tryAttack, tryEquip, turnHead, updateAttribute, updateEnchantments, updateGoalControls
Methods inherited from class net.minecraft.entity.LivingEntity
addDeathParticles, addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyFluidMovingSpeed, applyMovementEffects, areItemsDifferent, attackLivingEntity, becomeAngry, canBreatheInWater, canEquip, canEquipFromDispenser, canFreeze, canGlide, canGlideWith, canHaveStatusEffect, canHit, canSee, canSee, canTakeDamage, canUsePortals, canUseSlot, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createEquipment, createLivingAttributes, createTracker, damage, damageArmor, damageEquipment, damageHelmet, deserializeBrain, disableExperienceDropping, drop, dropExperience, dropInventory, dropItem, endCombat, enterCombat, equipStack, fall, forEachGeneratedItem, forEachGiftedItem, forEachShearedItem, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttackingPlayer, getAttackKnockbackAgainst, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseDimensions, getBaseWaterMovementSpeedMultiplier, getBlockingItem, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageBlockedAmount, getDamageTiltYaw, getDamageTracker, getDeathSound, getDespawnCounter, getDimensions, getEffectFadeFactor, getEffectiveGravity, getEquippedStack, getEquipSound, getExperienceToDrop, getFallSounds, getGlidingTicks, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getHurtSound, getInterpolator, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getJumpVelocity, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLocationBasedEnchantmentEffects, getLuck, getMainHandStack, getMaxAbsorption, getMaxHealth, getMaxRelativeHeadRotation, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPassengerRidingPos, getPlayerHitTimer, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getProjectileType, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getSoundVolume, getStackInArm, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getWaypointConfig, getWeaponDisableBlockingForSeconds, getWeaponStack, getYaw, giveOrDropStack, handleFallDamage, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, hasWaypoint, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBlocking, isClimbing, isDead, isEntityLookingAtMe, isExperienceDroppingDisabled, isGliding, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInCreativeMode, isInsideWall, isInSwimmingPose, isInvulnerableTo, isJumping, isMobOrPlayer, isPartOfGame, isPushable, isSleeping, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onEquipStack, onKilledBy, onRemoval, onRemove, onSpawnPacket, onStatusEffectApplied, onStatusEffectsRemoved, onStatusEffectUpgraded, playBlockFallSound, playSound, positionInPortal, positionInPortal, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAbsorptionAmountUnclamped, setAttacker, setAttacking, setAttacking, setAttackingPlayer, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setOnFireForTicks, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropExperience, shouldDropExperience, shouldDropLoot, shouldRenderName, shouldSwimInFluids, sleep, spawnItemParticles, stopGliding, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickGliding, tickHandSwing, tickInVoid, tickItemStackUsage, tickMovementInput, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, travel, travelFlying, travelFlying, triggerItemPickedUpByEntityCriteria, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, wakeUp, wouldNotSuffocateInPose
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyBubbleColumnEffects, applyBubbleColumnSurfaceEffects, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canTeleportBetween, castComponentValue, changeLookDirection, clearQueuedCollisionChecks, clientDamage, collides, collidesWith, collidesWithFluid, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyComponentsFrom, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, defrost, detach, detachAllHeldLeashes, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, get, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyX, getBodyY, getBodyZ, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getErrorReporterContext, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHeldQuadLeashOffsets, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getMaxAir, getMinFreezeDamageTicks, getMoveEffect, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getWorldSpawnPos, getX, getY, getYaw, getZ, handleAttack, handleFall, handleFallDamageForPassengers, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasQuadLeashAttachmentPoints, hasVehicle, igniteByLava, interactAt, isAlwaysInvulnerableTo, isAtCloudHeight, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFlyingVehicle, isFrozen, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSneakingPose, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, lerpPosAndRotation, limitFallDistance, move, movementInputToVelocity, occludeVibrationSignals, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, onHeldLeashUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, pushOutOfBlocks, raycast, readData, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveData, saveSelfData, scheduleVelocityUpdate, serverDamage, setAir, setAlwaysSyncAbsolute, setAngles, setApplicableComponent, setBoundingBox, setChangeListener, setComponent, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, setInPowderSnow, setInvisible, setInvulnerable, setLastPositionAndAngles, setMovement, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldAlwaysSyncAbsolute, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, snipAllHeldLeashes, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportSpectatingPlayers, teleportTo, tickBlockCollision, tickBlockCollision, tickHeldLeash, tickPortalCooldown, tickPortalTeleportation, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeData
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTyped
Methods inherited from interface net.minecraft.entity.EquipmentHolder
equipStack, getEquippedStack, getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTable
Methods inherited from interface net.minecraft.entity.Leashable
applyElasticity, attachLeash, canBeLeashedTo, canUseQuadLeashAttachmentPoint, detachLeash, detachLeashWithoutDrop, getDistanceToCenter, getElasticLeashDistance, getLeashHolder, getLeashOffset, getLeashOffset, getLeashSnappingDistance, getQuadLeashOffsets, isLeashed, mightBeLeashed, onLongLeashTick, readLeashData, setUnresolvedLeashHolderId, writeLeashData
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
Methods inherited from interface net.minecraft.entity.Tameable
getOwner, getTopLevelOwner, getWorld
-
Field Details
-
field_52002
public static final int field_52002- See Also:
- Mappings:
Namespace Name Mixin selector named field_52002
Lnet/minecraft/entity/passive/TameableEntity;field_52002:I
intermediary field_52002
Lnet/minecraft/class_1321;field_52002:I
official ck
Lcbi;ck:I
-
field_52003
private static final int field_52003- See Also:
- Mappings:
Namespace Name Mixin selector named field_52003
Lnet/minecraft/entity/passive/TameableEntity;field_52003:I
intermediary field_52003
Lnet/minecraft/class_1321;field_52003:I
official co
Lcbi;co:I
-
field_52004
private static final int field_52004- See Also:
- Mappings:
Namespace Name Mixin selector named field_52004
Lnet/minecraft/entity/passive/TameableEntity;field_52004:I
intermediary field_52004
Lnet/minecraft/class_1321;field_52004:I
official cp
Lcbi;cp:I
-
field_52005
private static final int field_52005- See Also:
- Mappings:
Namespace Name Mixin selector named field_52005
Lnet/minecraft/entity/passive/TameableEntity;field_52005:I
intermediary field_52005
Lnet/minecraft/class_1321;field_52005:I
official cq
Lcbi;cq:I
-
DEFAULT_SITTING
private static final boolean DEFAULT_SITTING- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_SITTING
Lnet/minecraft/entity/passive/TameableEntity;DEFAULT_SITTING:Z
intermediary field_57595
Lnet/minecraft/class_1321;field_57595:Z
official cr
Lcbi;cr:Z
-
TAMEABLE_FLAGS
- Mappings:
Namespace Name Mixin selector named TAMEABLE_FLAGS
Lnet/minecraft/entity/passive/TameableEntity;TAMEABLE_FLAGS:Lnet/minecraft/entity/data/TrackedData;
intermediary field_6322
Lnet/minecraft/class_1321;field_6322:Lnet/minecraft/class_2940;
official cl
Lcbi;cl:Lalh;
-
OWNER_UUID
- Mappings:
Namespace Name Mixin selector named OWNER_UUID
Lnet/minecraft/entity/passive/TameableEntity;OWNER_UUID:Lnet/minecraft/entity/data/TrackedData;
intermediary field_6320
Lnet/minecraft/class_1321;field_6320:Lnet/minecraft/class_2940;
official cm
Lcbi;cm:Lalh;
-
sitting
private boolean sitting- Mappings:
Namespace Name Mixin selector named sitting
Lnet/minecraft/entity/passive/TameableEntity;sitting:Z
intermediary field_21974
Lnet/minecraft/class_1321;field_21974:Z
official cs
Lcbi;cs:Z
-
-
Constructor Details
-
TameableEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
official <init>
Lbzm;<init>(Lbzv;Ldmu;)V
-
-
Method Details
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTracker
in classPassiveEntity
- API Note:
- Subclasses should override this and add to the builder any data that needs to be tracked.
- Mappings:
Namespace Name Mixin selector named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
official a
Lbzm;a(Lall$a;)V
-
writeCustomData
- Overrides:
writeCustomData
in classAnimalEntity
- Mappings:
Namespace Name Mixin selector named writeCustomData
Lnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)V
official a
Lbzm;a(Lfdc;)V
-
readCustomData
- Overrides:
readCustomData
in classAnimalEntity
- Mappings:
Namespace Name Mixin selector named readCustomData
Lnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)V
official a
Lbzm;a(Lfda;)V
-
canBeLeashed
public boolean canBeLeashed()- Specified by:
canBeLeashed
in interfaceLeashable
- Overrides:
canBeLeashed
in classMobEntity
- Mappings:
Namespace Name Mixin selector named canBeLeashed
Lnet/minecraft/entity/Leashable;canBeLeashed()Z
intermediary method_5931
Lnet/minecraft/class_9817;method_5931()Z
official v
Lcak;v()Z
-
showEmoteParticle
protected void showEmoteParticle(boolean positive) - Mappings:
Namespace Name Mixin selector named showEmoteParticle
Lnet/minecraft/entity/passive/TameableEntity;showEmoteParticle(Z)V
intermediary method_6180
Lnet/minecraft/class_1321;method_6180(Z)V
official x
Lcbi;x(Z)V
-
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:
- API Note:
- To send an entity status, use
World.sendEntityStatus(net.minecraft.entity.Entity, byte)
. - Mappings:
Namespace Name Mixin selector named handleStatus
Lnet/minecraft/entity/Entity;handleStatus(B)V
intermediary method_5711
Lnet/minecraft/class_1297;method_5711(B)V
official b
Lbzm;b(B)V
-
isTamed
public boolean isTamed()- Mappings:
Namespace Name Mixin selector named isTamed
Lnet/minecraft/entity/passive/TameableEntity;isTamed()Z
intermediary method_6181
Lnet/minecraft/class_1321;method_6181()Z
official m
Lcbi;m()Z
-
setTamed
public void setTamed(boolean tamed, boolean updateAttributes) - Mappings:
Namespace Name Mixin selector named setTamed
Lnet/minecraft/entity/passive/TameableEntity;setTamed(ZZ)V
intermediary method_6173
Lnet/minecraft/class_1321;method_6173(ZZ)V
official a
Lcbi;a(ZZ)V
-
updateAttributesForTamed
protected void updateAttributesForTamed()- Mappings:
Namespace Name Mixin selector named updateAttributesForTamed
Lnet/minecraft/entity/passive/TameableEntity;updateAttributesForTamed()V
intermediary method_56996
Lnet/minecraft/class_1321;method_56996()V
official n
Lcbi;n()V
-
isInSittingPose
public boolean isInSittingPose()- Mappings:
Namespace Name Mixin selector named isInSittingPose
Lnet/minecraft/entity/passive/TameableEntity;isInSittingPose()Z
intermediary method_6172
Lnet/minecraft/class_1321;method_6172()Z
official t
Lcbi;t()Z
-
setInSittingPose
public void setInSittingPose(boolean inSittingPose) - Mappings:
Namespace Name Mixin selector named setInSittingPose
Lnet/minecraft/entity/passive/TameableEntity;setInSittingPose(Z)V
intermediary method_6179
Lnet/minecraft/class_1321;method_6179(Z)V
official y
Lcbi;y(Z)V
-
getOwnerReference
- Specified by:
getOwnerReference
in interfaceTameable
- Mappings:
Namespace Name Mixin selector named getOwnerReference
Lnet/minecraft/entity/Tameable;getOwnerReference()Lnet/minecraft/entity/LazyEntityReference;
intermediary method_66287
Lnet/minecraft/class_6025;method_66287()Lnet/minecraft/class_10583;
official d
Lcat;d()Lbzs;
-
setOwner
- Mappings:
Namespace Name Mixin selector named setOwner
Lnet/minecraft/entity/passive/TameableEntity;setOwner(Lnet/minecraft/entity/LivingEntity;)V
intermediary method_6174
Lnet/minecraft/class_1321;method_6174(Lnet/minecraft/class_1309;)V
official i
Lcbi;i(Lcam;)V
-
setOwner
- Mappings:
Namespace Name Mixin selector named setOwner
Lnet/minecraft/entity/passive/TameableEntity;setOwner(Lnet/minecraft/entity/LazyEntityReference;)V
intermediary method_66288
Lnet/minecraft/class_1321;method_66288(Lnet/minecraft/class_10583;)V
official a
Lcbi;a(Lbzs;)V
-
setTamedBy
- Mappings:
Namespace Name Mixin selector named setTamedBy
Lnet/minecraft/entity/passive/TameableEntity;setTamedBy(Lnet/minecraft/entity/player/PlayerEntity;)V
intermediary method_6170
Lnet/minecraft/class_1321;method_6170(Lnet/minecraft/class_1657;)V
official g
Lcbi;g(Lcut;)V
-
canTarget
- Overrides:
canTarget
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named canTarget
Lnet/minecraft/entity/LivingEntity;canTarget(Lnet/minecraft/entity/LivingEntity;)Z
intermediary method_18395
Lnet/minecraft/class_1309;method_18395(Lnet/minecraft/class_1309;)Z
official c
Lcam;c(Lcam;)Z
-
isOwner
- Mappings:
Namespace Name Mixin selector named isOwner
Lnet/minecraft/entity/passive/TameableEntity;isOwner(Lnet/minecraft/entity/LivingEntity;)Z
intermediary method_6171
Lnet/minecraft/class_1321;method_6171(Lnet/minecraft/class_1309;)Z
official j
Lcbi;j(Lcam;)Z
-
canAttackWithOwner
- Mappings:
Namespace Name Mixin selector named canAttackWithOwner
Lnet/minecraft/entity/passive/TameableEntity;canAttackWithOwner(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
intermediary method_6178
Lnet/minecraft/class_1321;method_6178(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
official a
Lcbi;a(Lcam;Lcam;)Z
-
getScoreboardTeam
Returns the scoreboard team the entity belongs to, ornull
if there is none.- Overrides:
getScoreboardTeam
in classEntity
- Returns:
- the scoreboard team the entity belongs to, or
null
if there is none - Mappings:
Namespace Name Mixin selector named getScoreboardTeam
Lnet/minecraft/entity/Entity;getScoreboardTeam()Lnet/minecraft/scoreboard/Team;
intermediary method_5781
Lnet/minecraft/class_1297;method_5781()Lnet/minecraft/class_268;
official cu
Lbzm;cu()Lfjs;
-
isInSameTeam
- Overrides:
isInSameTeam
in classEntity
- Mappings:
Namespace Name Mixin selector named isInSameTeam
Lnet/minecraft/entity/Entity;isInSameTeam(Lnet/minecraft/entity/Entity;)Z
intermediary method_61416
Lnet/minecraft/class_1297;method_61416(Lnet/minecraft/class_1297;)Z
official u
Lbzm;u(Lbzm;)Z
-
onDeath
- Overrides:
onDeath
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named onDeath
Lnet/minecraft/entity/LivingEntity;onDeath(Lnet/minecraft/entity/damage/DamageSource;)V
intermediary method_6078
Lnet/minecraft/class_1309;method_6078(Lnet/minecraft/class_1282;)V
official a
Lcam;a(Lbyb;)V
-
isSitting
public boolean isSitting()- Mappings:
Namespace Name Mixin selector named isSitting
Lnet/minecraft/entity/passive/TameableEntity;isSitting()Z
intermediary method_24345
Lnet/minecraft/class_1321;method_24345()Z
official gH
Lcbi;gH()Z
-
setSitting
public void setSitting(boolean sitting) - Mappings:
Namespace Name Mixin selector named setSitting
Lnet/minecraft/entity/passive/TameableEntity;setSitting(Z)V
intermediary method_24346
Lnet/minecraft/class_1321;method_24346(Z)V
official z
Lcbi;z(Z)V
-
tryTeleportToOwner
public void tryTeleportToOwner()- Mappings:
Namespace Name Mixin selector named tryTeleportToOwner
Lnet/minecraft/entity/passive/TameableEntity;tryTeleportToOwner()V
intermediary method_60713
Lnet/minecraft/class_1321;method_60713()V
official gI
Lcbi;gI()V
-
shouldTryTeleportToOwner
public boolean shouldTryTeleportToOwner()- Mappings:
Namespace Name Mixin selector named shouldTryTeleportToOwner
Lnet/minecraft/entity/passive/TameableEntity;shouldTryTeleportToOwner()Z
intermediary method_60714
Lnet/minecraft/class_1321;method_60714()Z
official gJ
Lcbi;gJ()Z
-
tryTeleportNear
- Mappings:
Namespace Name Mixin selector named tryTeleportNear
Lnet/minecraft/entity/passive/TameableEntity;tryTeleportNear(Lnet/minecraft/util/math/BlockPos;)V
intermediary method_60712
Lnet/minecraft/class_1321;method_60712(Lnet/minecraft/class_2338;)V
official h
Lcbi;h(Ljb;)V
-
tryTeleportTo
private boolean tryTeleportTo(int x, int y, int z) - Mappings:
Namespace Name Mixin selector named tryTeleportTo
Lnet/minecraft/entity/passive/TameableEntity;tryTeleportTo(III)Z
intermediary method_60711
Lnet/minecraft/class_1321;method_60711(III)Z
official a
Lcbi;a(III)Z
-
canTeleportTo
- Mappings:
Namespace Name Mixin selector named canTeleportTo
Lnet/minecraft/entity/passive/TameableEntity;canTeleportTo(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_60717
Lnet/minecraft/class_1321;method_60717(Lnet/minecraft/class_2338;)Z
official i
Lcbi;i(Ljb;)Z
-
cannotFollowOwner
public final boolean cannotFollowOwner()- Mappings:
Namespace Name Mixin selector named cannotFollowOwner
Lnet/minecraft/entity/passive/TameableEntity;cannotFollowOwner()Z
intermediary method_60715
Lnet/minecraft/class_1321;method_60715()Z
official gK
Lcbi;gK()Z
-
canTeleportOntoLeaves
protected boolean canTeleportOntoLeaves()- Mappings:
Namespace Name Mixin selector named canTeleportOntoLeaves
Lnet/minecraft/entity/passive/TameableEntity;canTeleportOntoLeaves()Z
intermediary method_60716
Lnet/minecraft/class_1321;method_60716()Z
official gL
Lcbi;gL()Z
-