Package net.minecraft.entity.passive
Class TameableEntity
- All Implemented Interfaces:
ComponentsAccess,Attackable,DataTracked,EquipmentHolder,Leashable,Tameable,Targeter,ScoreHolder,HeldItemContext,Nameable,DebugTrackable,EntityLike,UniquelyIdentifiable,ServerWaypoint,Waypoint
- Direct Known Subclasses:
AbstractNautilusEntity,CatEntity,TameableShoulderEntity,WolfEntity
- Mappings:
Namespace Name named net/minecraft/entity/passive/TameableEntityintermediary net/minecraft/class_1321official cia
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.entity.passive.PassiveEntity
PassiveEntity.PassiveDataNested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSoundsNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReasonNested classes/interfaces inherited from interface net.minecraft.world.debug.DebugTrackable
DebugTrackable.DebugDataSupplier<T>, DebugTrackable.TrackerNested classes/interfaces inherited from interface net.minecraft.util.HeldItemContext
HeldItemContext.OffsetNested classes/interfaces inherited from interface net.minecraft.entity.Leashable
Leashable.Elasticity, Leashable.LeashDataNested classes/interfaces inherited from interface net.minecraft.world.waypoint.ServerWaypoint
ServerWaypoint.AzimuthWaypointTracker, ServerWaypoint.ChebyshevDistanceValidatedTracker, ServerWaypoint.ChunkWaypointTracker, ServerWaypoint.ManhattanDistanceValidatedTracker, ServerWaypoint.PositionalWaypointTracker, ServerWaypoint.WaypointTrackerNested classes/interfaces inherited from interface net.minecraft.world.waypoint.Waypoint
Waypoint.Config -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final booleanstatic final intprivate static final intprivate static final intprivate static final intprotected static final TrackedData<Optional<LazyEntityReference<LivingEntity>>> private booleanprotected static final TrackedData<Byte> The tracked flags of tameable entities.Fields inherited from class net.minecraft.entity.passive.AnimalEntity
BREEDING_COOLDOWNFields inherited from class net.minecraft.entity.passive.PassiveEntity
BABY_AGE, breedingAge, DEFAULT_AGE, DEFAULT_FORCED_AGE, forcedAge, happyTicksRemainingFields inherited from class net.minecraft.entity.mob.PathAwareEntity
DEFAULT_PATHFINDING_FAVORFields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, ARMOR_UPGRADE_CHANCE, ARMOR_UPGRADE_ROLLS, 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, targetSelectorFields 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, 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, field_63293, field_63294, forwardSpeed, glidingTicks, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, HEALTH_KEY, HURT_BY_TIMESTAMP_KEY, HURT_TIME_KEY, hurtTime, interpolator, itemUseTimeLeft, jumping, lastBodyYaw, lastDamageTaken, lastHandSwingProgress, lastHeadYaw, limbAnimator, LIVING_FLAGS, maxHurtTime, NOT_WEARING_GAZE_DISGUISE_PREDICATE, OFF_HAND_ACTIVE_FLAG, piercingCooldowns, playerHitTimer, preferredHand, riptideAttackDamage, riptideStack, riptideTicks, serverHeadYaw, sidewaysSpeed, SLEEPING_DIMENSIONS, SLEEPING_POS_KEY, stuckArrowTimer, stuckStingerTimer, ticksSinceHandEquipping, ticksSinceLastAttack, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAGFields inherited from class net.minecraft.entity.Entity
age, AIR_KEY, collidedSoftly, CUSTOM_DATA_KEY, CUSTOM_NAME_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, wasInPowderSnowFields 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_POINTSFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAMEFields inherited from interface net.minecraft.world.waypoint.ServerWaypoint
AZIMUTH_THRESHOLDFields inherited from interface net.minecraft.world.waypoint.Waypoint
DEFAULT_PLAYER_RANGE, DISABLE_TRACKING -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTameableEntity(EntityType<? extends TameableEntity> type, World world) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAttackWithOwner(LivingEntity target, LivingEntity owner) booleanfinal booleanbooleancanTarget(LivingEntity target) protected booleanprivate booleancanTeleportTo(BlockPos pos) Returns the scoreboard team the entity belongs to, ornullif there is none.voidhandleStatus(byte status) Called on the client when the entity receives an entity status from the server.protected voidinitDataTracker(DataTracker.Builder builder) Initializes data tracker.protected booleanisInSameTeam(Entity other) booleanbooleanisOwner(LivingEntity entity) booleanbooleanisTamed()voidonDeath(DamageSource damageSource) protected voidreadCustomData(ReadView view) voidsetInSittingPose(boolean inSittingPose) voidvoidsetOwner(@Nullable LivingEntity owner) voidsetSitting(boolean sitting) voidsetTamed(boolean tamed, boolean updateAttributes) voidsetTamedBy(PlayerEntity player) booleanprotected voidshowEmoteParticle(boolean positive) private voidtryTeleportNear(BlockPos pos) private booleantryTeleportTo(int x, int y, int z) voidprotected voidprotected voidwriteCustomData(WriteView view) Methods inherited from class net.minecraft.entity.passive.AnimalEntity
applyDamage, breed, breed, canBreedWith, canEat, canImmediatelyDespawn, createAnimalAttributes, getExperienceToDrop, getLoveTicks, getLovingPlayer, getMinAmbientSoundDelay, getPathfindingFavor, interactMob, isBreedingItem, isInLove, isLightLevelValidForNaturalSpawn, isValidNaturalSpawn, lovePlayer, mobTick, playEatSound, resetLoveTicks, setLoveTicks, tickMovementMethods inherited from class net.minecraft.entity.passive.PassiveEntity
createChild, getBreedingAge, getForcedAge, getHappyTicksRemaining, growUp, growUp, initialize, isBaby, isReadyToBreed, onGrowUp, onTrackedDataSet, setBaby, setBreedingAge, toGrowUpAgeMethods inherited from class net.minecraft.entity.mob.PathAwareEntity
beforeLeashTick, canSpawn, getFollowLeashSpeed, getPathfindingFavor, isNavigating, isPanicking, onShortLeashTick, shouldFollowLeashMethods 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, eat, enchantEquipment, enchantMainHandItem, equipBodyArmor, equipLootStack, getAmbientSound, getAttackBox, getBodyArmor, getControllingPassenger, getDaylightProtectionSlot, 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, isAiDisabled, isAttacking, isInAttackRange, isInPositionTargetRange, isInPositionTargetRange, isInPositionTargetRange, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, loot, movesIndependently, onEatingGrass, onFinishPathfinding, onLeashRemoved, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, registerTracking, removeFromDimension, 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, updateGoalControlsMethods inherited from class net.minecraft.entity.LivingEntity
addDeathParticles, addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyFluidMovingSpeed, applyMovementEffects, areItemsDifferent, attackLivingEntity, becomeAngry, beforePlayerAttack, 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, dropLoot, endCombat, enterCombat, equipStack, fall, forEachBrushedItem, forEachGeneratedItem, forEachGiftedItem, forEachShearedItem, generateLoot, 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, getEntity, getEquippedStack, getEquipSound, getExperienceToDrop, getFallSounds, getGlidingTicks, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getHurtSound, getInterpolator, getItemUseTime, 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, 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, isInPiercingCooldown, isInsideWall, isInSwimmingPose, isInvulnerableTo, isJumping, isMobOrPlayer, isPartOfGame, isPushable, isSleeping, isUsingItem, isUsingRiptide, jump, kill, knockback, knockbackTarget, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, method_75725, modifyAppliedDamage, onAttack, onAttacking, onDamaged, onEquipStack, onKilledBy, onRemoval, onRemove, onSpawnPacket, onStatusEffectApplied, onStatusEffectsRemoved, onStatusEffectUpgraded, pierce, playAttackSound, 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, shouldDrown, shouldRenderName, shouldSwimInFluids, sleep, spawnItemParticles, startPiercingCooldown, 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, wouldNotSuffocateInPoseMethods 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, calcDistanceFromBottomCollision, 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, dropStack, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, findCollisions, 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, getEntityPos, getEntityWorld, getErrorReporterContext, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeadRotationVector, 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, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getSoundCategory, getSplashSound, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWidth, 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, isInteractable, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartlyTouchingWater, 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, 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, updateTrackedAngles, updateTrackedPosition, updateTrackedPosition, updateTrackedPositionAndAngles, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeDataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTypedMethods inherited from interface net.minecraft.entity.EquipmentHolder
equipStack, getEquippedStack, getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTableMethods 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, writeLeashDataMethods inherited from interface net.minecraft.util.Nameable
getStringifiedNameMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayNameMethods inherited from interface net.minecraft.entity.Tameable
getEntityWorld, getOwner, getTopLevelOwner
-
Field Details
-
field_52002
public static final int field_52002- See Also:
- Mappings:
Namespace Name Mixin selector named field_52002Lnet/minecraft/entity/passive/TameableEntity;field_52002:Iintermediary field_52002Lnet/minecraft/class_1321;field_52002:Iofficial cvLcia;cv:I
-
field_52003
private static final int field_52003- See Also:
- Mappings:
Namespace Name Mixin selector named field_52003Lnet/minecraft/entity/passive/TameableEntity;field_52003:Iintermediary field_52003Lnet/minecraft/class_1321;field_52003:Iofficial czLcia;cz:I
-
field_52004
private static final int field_52004- See Also:
- Mappings:
Namespace Name Mixin selector named field_52004Lnet/minecraft/entity/passive/TameableEntity;field_52004:Iintermediary field_52004Lnet/minecraft/class_1321;field_52004:Iofficial cALcia;cA:I
-
field_52005
private static final int field_52005- See Also:
- Mappings:
Namespace Name Mixin selector named field_52005Lnet/minecraft/entity/passive/TameableEntity;field_52005:Iintermediary field_52005Lnet/minecraft/class_1321;field_52005:Iofficial cBLcia;cB:I
-
DEFAULT_SITTING
private static final boolean DEFAULT_SITTING- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_SITTINGLnet/minecraft/entity/passive/TameableEntity;DEFAULT_SITTING:Zintermediary field_57595Lnet/minecraft/class_1321;field_57595:Zofficial cCLcia;cC:Z
-
TAMEABLE_FLAGS
- Mappings:
Namespace Name Mixin selector named TAMEABLE_FLAGSLnet/minecraft/entity/passive/TameableEntity;TAMEABLE_FLAGS:Lnet/minecraft/entity/data/TrackedData;intermediary field_6322Lnet/minecraft/class_1321;field_6322:Lnet/minecraft/class_2940;official cwLcia;cw:Lamb;
-
OWNER_UUID
- Mappings:
Namespace Name Mixin selector named OWNER_UUIDLnet/minecraft/entity/passive/TameableEntity;OWNER_UUID:Lnet/minecraft/entity/data/TrackedData;intermediary field_6320Lnet/minecraft/class_1321;field_6320:Lnet/minecraft/class_2940;official cxLcia;cx:Lamb;
-
sitting
private boolean sitting- Mappings:
Namespace Name Mixin selector named sittingLnet/minecraft/entity/passive/TameableEntity;sitting:Zintermediary field_21974Lnet/minecraft/class_1321;field_21974:Zofficial cDLcia;cD:Z
-
-
Constructor Details
-
TameableEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vofficial <init>Lcgd;<init>(Lcgm;Ldun;)V
-
-
Method Details
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTrackerin 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 initDataTrackerLnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)Vintermediary method_5693Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)Vofficial aLcgd;a(Lamf$a;)V
-
writeCustomData
- Overrides:
writeCustomDatain classAnimalEntity- Mappings:
Namespace Name Mixin selector named writeCustomDataLnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)Vofficial aLcgd;a(Lflm;)V
-
readCustomData
- Overrides:
readCustomDatain classAnimalEntity- Mappings:
Namespace Name Mixin selector named readCustomDataLnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)Vofficial aLcgd;a(Lflk;)V
-
canBeLeashed
public boolean canBeLeashed()- Specified by:
canBeLeashedin interfaceLeashable- Overrides:
canBeLeashedin classMobEntity- Mappings:
Namespace Name Mixin selector named canBeLeashedLnet/minecraft/entity/Leashable;canBeLeashed()Zintermediary method_5931Lnet/minecraft/class_9817;method_5931()Zofficial vLchc;v()Z
-
showEmoteParticle
protected void showEmoteParticle(boolean positive) - Mappings:
Namespace Name Mixin selector named showEmoteParticleLnet/minecraft/entity/passive/TameableEntity;showEmoteParticle(Z)Vintermediary method_6180Lnet/minecraft/class_1321;method_6180(Z)Vofficial xLcia;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:
handleStatusin classAnimalEntity- See Also:
- API Note:
- To send an entity status, use
World.sendEntityStatus(net.minecraft.entity.Entity, byte). - Mappings:
Namespace Name Mixin selector named handleStatusLnet/minecraft/entity/Entity;handleStatus(B)Vintermediary method_5711Lnet/minecraft/class_1297;method_5711(B)Vofficial bLcgd;b(B)V
-
isTamed
public boolean isTamed()- Mappings:
Namespace Name Mixin selector named isTamedLnet/minecraft/entity/passive/TameableEntity;isTamed()Zintermediary method_6181Lnet/minecraft/class_1321;method_6181()Zofficial mLcia;m()Z
-
setTamed
public void setTamed(boolean tamed, boolean updateAttributes) - Mappings:
Namespace Name Mixin selector named setTamedLnet/minecraft/entity/passive/TameableEntity;setTamed(ZZ)Vintermediary method_6173Lnet/minecraft/class_1321;method_6173(ZZ)Vofficial aLcia;a(ZZ)V
-
updateAttributesForTamed
protected void updateAttributesForTamed()- Mappings:
Namespace Name Mixin selector named updateAttributesForTamedLnet/minecraft/entity/passive/TameableEntity;updateAttributesForTamed()Vintermediary method_56996Lnet/minecraft/class_1321;method_56996()Vofficial nLcia;n()V
-
isInSittingPose
public boolean isInSittingPose()- Mappings:
Namespace Name Mixin selector named isInSittingPoseLnet/minecraft/entity/passive/TameableEntity;isInSittingPose()Zintermediary method_6172Lnet/minecraft/class_1321;method_6172()Zofficial sLcia;s()Z
-
setInSittingPose
public void setInSittingPose(boolean inSittingPose) - Mappings:
Namespace Name Mixin selector named setInSittingPoseLnet/minecraft/entity/passive/TameableEntity;setInSittingPose(Z)Vintermediary method_6179Lnet/minecraft/class_1321;method_6179(Z)Vofficial yLcia;y(Z)V
-
getOwnerReference
- Specified by:
getOwnerReferencein interfaceTameable- Mappings:
Namespace Name Mixin selector named getOwnerReferenceLnet/minecraft/entity/Tameable;getOwnerReference()Lnet/minecraft/entity/LazyEntityReference;intermediary method_66287Lnet/minecraft/class_6025;method_66287()Lnet/minecraft/class_10583;official dLchl;d()Lcgj;
-
setOwner
- Mappings:
Namespace Name Mixin selector named setOwnerLnet/minecraft/entity/passive/TameableEntity;setOwner(Lnet/minecraft/entity/LivingEntity;)Vintermediary method_6174Lnet/minecraft/class_1321;method_6174(Lnet/minecraft/class_1309;)Vofficial iLcia;i(Lche;)V
-
setOwner
- Mappings:
Namespace Name Mixin selector named setOwnerLnet/minecraft/entity/passive/TameableEntity;setOwner(Lnet/minecraft/entity/LazyEntityReference;)Vintermediary method_66288Lnet/minecraft/class_1321;method_66288(Lnet/minecraft/class_10583;)Vofficial bLcia;b(Lcgj;)V
-
setTamedBy
- Mappings:
Namespace Name Mixin selector named setTamedByLnet/minecraft/entity/passive/TameableEntity;setTamedBy(Lnet/minecraft/entity/player/PlayerEntity;)Vintermediary method_6170Lnet/minecraft/class_1321;method_6170(Lnet/minecraft/class_1657;)Vofficial gLcia;g(Ldcb;)V
-
canTarget
- Overrides:
canTargetin classLivingEntity- Mappings:
Namespace Name Mixin selector named canTargetLnet/minecraft/entity/LivingEntity;canTarget(Lnet/minecraft/entity/LivingEntity;)Zintermediary method_18395Lnet/minecraft/class_1309;method_18395(Lnet/minecraft/class_1309;)Zofficial cLche;c(Lche;)Z
-
isOwner
- Mappings:
Namespace Name Mixin selector named isOwnerLnet/minecraft/entity/passive/TameableEntity;isOwner(Lnet/minecraft/entity/LivingEntity;)Zintermediary method_6171Lnet/minecraft/class_1321;method_6171(Lnet/minecraft/class_1309;)Zofficial jLcia;j(Lche;)Z
-
canAttackWithOwner
- Mappings:
Namespace Name Mixin selector named canAttackWithOwnerLnet/minecraft/entity/passive/TameableEntity;canAttackWithOwner(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Zintermediary method_6178Lnet/minecraft/class_1321;method_6178(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Zofficial aLcia;a(Lche;Lche;)Z
-
getScoreboardTeam
Returns the scoreboard team the entity belongs to, ornullif there is none.- Overrides:
getScoreboardTeamin classEntity- Returns:
- the scoreboard team the entity belongs to, or
nullif there is none - Mappings:
Namespace Name Mixin selector named getScoreboardTeamLnet/minecraft/entity/Entity;getScoreboardTeam()Lnet/minecraft/scoreboard/Team;intermediary method_5781Lnet/minecraft/class_1297;method_5781()Lnet/minecraft/class_268;official cFLcgd;cF()Lfsd;
-
isInSameTeam
- Overrides:
isInSameTeamin classEntity- Mappings:
Namespace Name Mixin selector named isInSameTeamLnet/minecraft/entity/Entity;isInSameTeam(Lnet/minecraft/entity/Entity;)Zintermediary method_61416Lnet/minecraft/class_1297;method_61416(Lnet/minecraft/class_1297;)Zofficial uLcgd;u(Lcgd;)Z
-
onDeath
- Overrides:
onDeathin classLivingEntity- Mappings:
Namespace Name Mixin selector named onDeathLnet/minecraft/entity/LivingEntity;onDeath(Lnet/minecraft/entity/damage/DamageSource;)Vintermediary method_6078Lnet/minecraft/class_1309;method_6078(Lnet/minecraft/class_1282;)Vofficial aLche;a(Lceq;)V
-
isSitting
public boolean isSitting()- Mappings:
Namespace Name Mixin selector named isSittingLnet/minecraft/entity/passive/TameableEntity;isSitting()Zintermediary method_24345Lnet/minecraft/class_1321;method_24345()Zofficial gMLcia;gM()Z
-
setSitting
public void setSitting(boolean sitting) - Mappings:
Namespace Name Mixin selector named setSittingLnet/minecraft/entity/passive/TameableEntity;setSitting(Z)Vintermediary method_24346Lnet/minecraft/class_1321;method_24346(Z)Vofficial zLcia;z(Z)V
-
tryTeleportToOwner
public void tryTeleportToOwner()- Mappings:
Namespace Name Mixin selector named tryTeleportToOwnerLnet/minecraft/entity/passive/TameableEntity;tryTeleportToOwner()Vintermediary method_60713Lnet/minecraft/class_1321;method_60713()Vofficial gNLcia;gN()V
-
shouldTryTeleportToOwner
public boolean shouldTryTeleportToOwner()- Mappings:
Namespace Name Mixin selector named shouldTryTeleportToOwnerLnet/minecraft/entity/passive/TameableEntity;shouldTryTeleportToOwner()Zintermediary method_60714Lnet/minecraft/class_1321;method_60714()Zofficial gOLcia;gO()Z
-
tryTeleportNear
- Mappings:
Namespace Name Mixin selector named tryTeleportNearLnet/minecraft/entity/passive/TameableEntity;tryTeleportNear(Lnet/minecraft/util/math/BlockPos;)Vintermediary method_60712Lnet/minecraft/class_1321;method_60712(Lnet/minecraft/class_2338;)Vofficial hLcia;h(Liz;)V
-
tryTeleportTo
private boolean tryTeleportTo(int x, int y, int z) - Mappings:
Namespace Name Mixin selector named tryTeleportToLnet/minecraft/entity/passive/TameableEntity;tryTeleportTo(III)Zintermediary method_60711Lnet/minecraft/class_1321;method_60711(III)Zofficial aLcia;a(III)Z
-
canTeleportTo
- Mappings:
Namespace Name Mixin selector named canTeleportToLnet/minecraft/entity/passive/TameableEntity;canTeleportTo(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_60717Lnet/minecraft/class_1321;method_60717(Lnet/minecraft/class_2338;)Zofficial iLcia;i(Liz;)Z
-
cannotFollowOwner
public final boolean cannotFollowOwner()- Mappings:
Namespace Name Mixin selector named cannotFollowOwnerLnet/minecraft/entity/passive/TameableEntity;cannotFollowOwner()Zintermediary method_60715Lnet/minecraft/class_1321;method_60715()Zofficial gPLcia;gP()Z
-
canTeleportOntoLeaves
protected boolean canTeleportOntoLeaves()- Mappings:
Namespace Name Mixin selector named canTeleportOntoLeavesLnet/minecraft/entity/passive/TameableEntity;canTeleportOntoLeaves()Zintermediary method_60716Lnet/minecraft/class_1321;method_60716()Zofficial gQLcia;gQ()Z
-