Package net.minecraft.entity.passive
Class TameableEntity
- All Implemented Interfaces:
CommandSource,EntityCategoryProvider,Tameable
- Direct Known Subclasses:
OcelotEntity,WolfEntity
- Mappings:
Namespace Name official tiintermediary net/minecraft/class_880named net/minecraft/entity/passive/TameableEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.mob.MobEntity
MobEntity.Location -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final TrackedData<Byte>protected static final TrackedData<Optional<UUID>>protected SitGoalFields inherited from class net.minecraft.entity.passive.AnimalEntity
field_11973Fields inherited from class net.minecraft.entity.passive.PassiveEntity
field_11896, field_11898, forcedAgeFields inherited from class net.minecraft.entity.PathAwareEntity
FLEEING_SPEED_BONUS_ID, FLEEING_SPEED_MODIFIERFields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, attackGoals, entityMotionHelper, experiencePoints, field_14559, goals, jumpControl, navigationFields inherited from class net.minecraft.entity.LivingEntity
attackingPlayer, bodyTrackingIncrements, bodyYaw, dead, deathTime, defaultMaxHealth, despawnCounter, distanceTravelled, field_14542, field_14543, field_14546, field_14547, field_14548, field_6748, field_6749, field_6750, field_6752, field_6753, field_6771, field_6776, field_6777, field_6778, field_6782, flyingSpeed, forwardSpeed, handSwinging, handSwingProgress, handSwingTicks, headYaw, hurtTime, jumping, knockbackVelocity, lastHandSwingProgress, mainHand, maxHurtTime, playerHitTimer, prevBodyYaw, prevDistanceTravelled, prevHeadYaw, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, serverPitch, serverY, serverYaw, serverZ, serxerX, sidewaysSpeed, stepBobbingAmountFields inherited from class net.minecraft.entity.Entity
changingDimension, chunkX, chunkY, chunkZ, colliding, dataTracker, dimension, distanceTraveled, fallDistance, field_3223, firstUpdate, FLAGS, height, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inLava, isFireImmune, isGlowing, lastPortalBlockPos, lastPortalVec3d, netherPortalCooldown, netherPortalTime, noClip, onGround, pitch, playerUuid, prevHorizontalSpeed, prevPitch, prevTickX, prevTickY, prevTickZ, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, ridingCooldown, stepHeight, teleportDirection, teleporting, ticksAlive, touchingWater, tracedX, tracedY, tracedZ, updateNeeded, uuidString, velocityDirty, velocityModified, velocityX, velocityY, velocityZ, verticalCollision, width, world, x, y, yaw, z -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAttackWithOwner(LivingEntity target, LivingEntity owner) booleancanBeLeashedBy(PlayerEntity player) getOwner()voidhandleStatus(byte status) protected voidbooleanisOwner(LivingEntity entity) booleanbooleanisTamed()booleanisTeammate(Entity other) voidmethod_13092(UUID uUID) voidonKilled(DamageSource source) protected voidvoidvoidsetSitting(boolean sitting) voidsetTamed(boolean tamed) protected voidshowEmoteParticle(boolean positive) voidMethods inherited from class net.minecraft.entity.passive.AnimalEntity
canBreedWith, canImmediatelyDespawn, canSpawn, damage, eat, getHeightOffset, getLovingPlayer, getMinAmbientSoundDelay, getPathfindingFavor, getXpToDrop, interactMob, isBreedingItem, isInLove, lovePlayer, mobTick, resetLoveTicks, tickMovementMethods inherited from class net.minecraft.entity.passive.PassiveEntity
age, breed, isBaby, method_10925, method_10926, method_13929, method_5377, method_5378, method_6095, onTrackedDataSet, setAge, setBoundsMethods inherited from class net.minecraft.entity.PathAwareEntity
getPositionTarget, getPositionTargetRange, hasPositionTarget, isInWalkTargetRange, isInWalkTargetRange, method_13951, method_6173, method_6175, setPositionTarget, shouldContinue, updateLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
ambientSound, attachLeash, baseTick, canAttackEntity, canBeControlledByRider, canMoveVoluntarily, canPickupItem, canPickUpLoot, checkDespawn, createNavigation, detachLeash, dropLoot, equip, equipStack, getArmorItems, getDefaultDrop, getDurability, getItemsHand, getJumpControl, getLimitPerChunk, getLookControl, getLookPitchSpeed, getLootTableId, getMotionHelper, getNavigation, getSafeFallDistance, getTarget, getVisibilityCache, hasNoAi, initEquipment, initGoals, initialize, initializeAttributes, interact, isLeashed, isPersistent, lookAtEntity, loot, method_13003, method_13043, method_13044, method_13051, method_13075, method_13076, method_13077, method_13078, method_13080, method_13081, method_13082, method_13083, method_13084, method_13086, method_13088, method_13950, method_2469, method_2638, method_4472, method_6162, onEatingGrass, playAmbientSound, playSpawnEffects, setAiDisabled, setCanPickUpLoot, setForwardSpeed, setMovementSpeed, setPersistent, setTarget, startRiding, tick, tickNewAi, turnHead, updateEnchantmentsMethods inherited from class net.minecraft.entity.LivingEntity
addStatusEffect, animateDamage, applyArmorDamage, applyDamage, applyEnchantmentsToDamage, canSee, clearStatusEffects, collides, damageArmor, deathSound, destroy, dropXp, endCombat, enterCombat, fall, getAbsorption, getArmorProtectionValue, getAttacker, getAttacking, getAttributeContainer, getDamageTracker, getEffectInstance, getGroup, getHandSwingProgress, getHeadRotation, getHealth, getJumpVelocity, getLandSound, getLastAttackTime, getLastHurtTimestamp, getMaxHealth, getMovementSpeed, getNextAirUnderwater, getOpponent, getRandom, getRotation, getRotationVector, getSoundPitch, getSoundVolume, getStackInHand, getStatusEffectInstances, getStuckArrows, handleFallDamage, hasStatusEffect, heal, initializeAttribute, isAffectedBySmite, isAlive, isClimbing, isPushable, isSleeping, jump, kill, markEffectsDirty, method_10979, method_10981, method_13038, method_13040, method_13041, method_13042, method_13045, method_13046, method_13048, method_13050, method_13052, method_13053, method_13054, method_13055, method_13056, method_13057, method_13058, method_13059, method_13061, method_13062, method_13063, method_13064, method_13065, method_13066, method_13067, method_13071, method_13072, method_13493, method_13494, method_13946, method_13947, method_13948, method_2582, method_2607, method_2610, method_2634, method_2649, method_2658, method_3217, method_6108, method_6109, method_6111, method_6117, method_6150, method_6152, pushAway, removeStatusEffect, scheduleVelocityUpdate, sendPickup, setAbsorption, setAttacker, setHeadYaw, setHealth, setJumping, setSprinting, setStuckArrows, setYaw, shouldAlwaysDropXp, shouldDropXp, shouldRenderName, stopRiding, tickCramming, tickHandSwing, tickRiding, tickStatusEffects, travel, tryAttack, updatePotionVisibility, updateTrackedPositionAndAnglesMethods inherited from class net.minecraft.entity.Entity
addPassenger, addScoreboardTag, addVelocity, afterSpawn, applyMirror, applyRotation, attemptSprintingParticles, burn, canAddPassenger, canAvoidTraps, canClimb, canExplosionDestroyBlock, canFly, canStartRiding, canUseCommand, canUsePortals, changeDimension, checkBlockCollision, copyPosition, dealDamage, distanceTo, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropItem, entityDataRequiresOperator, equals, extinguish, fromNbt, getAir, getBlastResistance, getBlockPos, getBoundingBox, getBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getCommandStats, getCustomName, getDataTracker, getDefaultNetherPortalCooldown, getEntity, getEntityId, getEntityName, getEyeHeight, getFlag, getHardCollisionBox, getHorizontalDirection, getHoverEvent, getItemsEquipped, getLastNetherPortalDirection, getLastNetherPortalDirectionVector, getLightmapCoordinates, getMaxNetherPortalTime, getMinecraftServer, getMountedHeightOffset, getMovementDirection, getParts, getPassengerList, getPassengersDeep, getPassengersDeep, getPistonBehavior, getPos, getPrimaryPassenger, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVecClient, getRotationVector, getSavedEntityId, getScoreboardTags, getSoundCategory, getTargetingMargin, getTranslatedName, getUuid, getVehicle, getVisibilityBoundingBox, getWorld, handleAttack, hasCustomName, hashCode, hasMount, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, increaseTransforms, interactAt, isAttackable, isConnectedThroughVehicle, isCustomNameVisible, isFireImmune, isGlowing, isImmuneToExplosion, isInsideWall, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isOnFire, isOutsideWorldborder, isPartOf, isSilent, isSneaking, isSpectatedBy, isSprinting, isSubmergedIn, isTeamPlayer, isTouchingLava, isTouchingWater, method_10965, method_12984, method_12985, method_12991, method_13932, method_6344, move, onKilledOther, onLightningStrike, onPassengerLookAround, onPlayerCollision, onStartedTrackingBy, onStoppedTrackingBy, onSwimmingStart, playSound, playStepSound, populateCrashReport, pushAwayFrom, pushOutOfBlocks, rayTrace, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removePassenger, removeScoreboardTag, ride, saveSelfToNbt, saveToNbt, sendCommandFeedback, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFlag, setGlowing, setInLava, setInNetherPortal, setInvisible, setInvulnerable, setNoGravity, setOnFireFor, setOnFireFromLava, setOutsideWorldborder, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setStat, setUuid, setVelocityClient, setWorld, shouldRender, shouldRender, shouldSetPositionOnLoad, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredDistanceToCenter, teleportRequested, tickFire, tickNetherPortalCooldown, toListNbt, toListNbt, toNbt, toString, updateKilledAdvancementCriterion, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSubmergedInWaterState, updateVelocity, updateWaterState
-
Field Details
-
field_14566
- Mappings:
Namespace Name Mixin selector official bwLti;bw:Lkk;intermediary field_14566Lnet/minecraft/class_880;field_14566:Lnet/minecraft/class_2921;named field_14566Lnet/minecraft/entity/passive/TameableEntity;field_14566:Lnet/minecraft/entity/data/TrackedData;
-
field_14567
- Mappings:
Namespace Name Mixin selector official bxLti;bx:Lkk;intermediary field_14567Lnet/minecraft/class_880;field_14567:Lnet/minecraft/class_2921;named field_14567Lnet/minecraft/entity/passive/TameableEntity;field_14567:Lnet/minecraft/entity/data/TrackedData;
-
sitGoal
- Mappings:
Namespace Name Mixin selector official byLti;by:Lvl;intermediary field_3427Lnet/minecraft/class_880;field_3427:Lnet/minecraft/class_920;named sitGoalLnet/minecraft/entity/passive/TameableEntity;sitGoal:Lnet/minecraft/entity/ai/goal/SitGoal;
-
-
Constructor Details
-
TameableEntity
- Mappings:
Namespace Name Mixin selector official <init>Lsn;<init>(Lajs;)Vintermediary <init>Lnet/minecraft/class_864;<init>(Lnet/minecraft/class_1150;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/world/World;)V
-
-
Method Details
-
initDataTracker
protected void initDataTracker()- Overrides:
initDataTrackerin classPassiveEntity- Mappings:
Namespace Name Mixin selector official iLsn;i()Vintermediary method_2484Lnet/minecraft/class_864;method_2484()Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker()V
-
writeCustomDataToNbt
- Overrides:
writeCustomDataToNbtin classAnimalEntity- Mappings:
Namespace Name Mixin selector official bLsn;b(Ldu;)Vintermediary method_2528Lnet/minecraft/class_864;method_2528(Lnet/minecraft/class_322;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
readCustomDataFromNbt
- Overrides:
readCustomDataFromNbtin classAnimalEntity- Mappings:
Namespace Name Mixin selector official aLsn;a(Ldu;)Vintermediary method_2498Lnet/minecraft/class_864;method_2498(Lnet/minecraft/class_322;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
canBeLeashedBy
- Overrides:
canBeLeashedByin classMobEntity- Mappings:
Namespace Name Mixin selector official aLsx;a(Laay;)Zintermediary method_2537Lnet/minecraft/class_871;method_2537(Lnet/minecraft/class_988;)Znamed canBeLeashedByLnet/minecraft/entity/mob/MobEntity;canBeLeashedBy(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
showEmoteParticle
protected void showEmoteParticle(boolean positive) - Mappings:
Namespace Name Mixin selector official pLti;p(Z)Vintermediary method_2714Lnet/minecraft/class_880;method_2714(Z)Vnamed showEmoteParticleLnet/minecraft/entity/passive/TameableEntity;showEmoteParticle(Z)V
-
handleStatus
- Overrides:
handleStatusin classAnimalEntity- Mappings:
Namespace Name Mixin selector official aLsn;a(B)Vintermediary method_2485Lnet/minecraft/class_864;method_2485(B)Vnamed handleStatusLnet/minecraft/entity/Entity;handleStatus(B)V
-
isTamed
public boolean isTamed()- Mappings:
Namespace Name Mixin selector official dhLti;dh()Zintermediary method_2717Lnet/minecraft/class_880;method_2717()Znamed isTamedLnet/minecraft/entity/passive/TameableEntity;isTamed()Z
-
setTamed
public void setTamed(boolean tamed) - Mappings:
Namespace Name Mixin selector official qLti;q(Z)Vintermediary method_2715Lnet/minecraft/class_880;method_2715(Z)Vnamed setTamedLnet/minecraft/entity/passive/TameableEntity;setTamed(Z)V
-
onTamedChanged
protected void onTamedChanged()- Mappings:
Namespace Name Mixin selector official diLti;di()Vintermediary method_10993Lnet/minecraft/class_880;method_10993()Vnamed onTamedChangedLnet/minecraft/entity/passive/TameableEntity;onTamedChanged()V
-
isSitting
public boolean isSitting()- Mappings:
Namespace Name Mixin selector official djLti;dj()Zintermediary method_2718Lnet/minecraft/class_880;method_2718()Znamed isSittingLnet/minecraft/entity/passive/TameableEntity;isSitting()Z
-
setSitting
public void setSitting(boolean sitting) - Mappings:
Namespace Name Mixin selector official rLti;r(Z)Vintermediary method_2716Lnet/minecraft/class_880;method_2716(Z)Vnamed setSittingLnet/minecraft/entity/passive/TameableEntity;setSitting(Z)V
-
method_2719
- Specified by:
method_2719in interfaceTameable- Mappings:
Namespace Name Mixin selector official bLtd;b()Ljava/util/UUID;intermediary method_2719Lnet/minecraft/class_1701;method_2719()Ljava/util/UUID;named method_2719Lnet/minecraft/entity/Tameable;method_2719()Ljava/util/UUID;
-
method_13092
- Mappings:
Namespace Name Mixin selector official bLti;b(Ljava/util/UUID;)Vintermediary method_13092Lnet/minecraft/class_880;method_13092(Ljava/util/UUID;)Vnamed method_13092Lnet/minecraft/entity/passive/TameableEntity;method_13092(Ljava/util/UUID;)V
-
getOwner
- Specified by:
getOwnerin interfaceTameable- Mappings:
Namespace Name Mixin selector official dkLti;dk()Lsw;intermediary method_6183Lnet/minecraft/class_880;method_6183()Lnet/minecraft/class_1699;named getOwnerLnet/minecraft/entity/passive/TameableEntity;getOwner()Lnet/minecraft/entity/LivingEntity;
-
isOwner
- Mappings:
Namespace Name Mixin selector official eLti;e(Lsw;)Zintermediary method_8380Lnet/minecraft/class_880;method_8380(Lnet/minecraft/class_1699;)Znamed isOwnerLnet/minecraft/entity/passive/TameableEntity;isOwner(Lnet/minecraft/entity/LivingEntity;)Z
-
getSitGoal
- Mappings:
Namespace Name Mixin selector official dlLti;dl()Lvl;intermediary method_2721Lnet/minecraft/class_880;method_2721()Lnet/minecraft/class_920;named getSitGoalLnet/minecraft/entity/passive/TameableEntity;getSitGoal()Lnet/minecraft/entity/ai/goal/SitGoal;
-
canAttackWithOwner
- Mappings:
Namespace Name Mixin selector official aLti;a(Lsw;Lsw;)Zintermediary method_6182Lnet/minecraft/class_880;method_6182(Lnet/minecraft/class_1699;Lnet/minecraft/class_1699;)Znamed canAttackWithOwnerLnet/minecraft/entity/passive/TameableEntity;canAttackWithOwner(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
-
getScoreboardTeam
- Overrides:
getScoreboardTeamin classEntity- Mappings:
Namespace Name Mixin selector official method_6135Lsw;method_6135()Lbee;intermediary method_6135Lnet/minecraft/class_1699;method_6135()Lnet/minecraft/class_1599;named getScoreboardTeamLnet/minecraft/entity/LivingEntity;getScoreboardTeam()Lnet/minecraft/scoreboard/AbstractTeam;
-
isTeammate
- Overrides:
isTeammatein classEntity- Mappings:
Namespace Name Mixin selector official rLsn;r(Lsn;)Zintermediary method_13017Lnet/minecraft/class_864;method_13017(Lnet/minecraft/class_864;)Znamed isTeammateLnet/minecraft/entity/Entity;isTeammate(Lnet/minecraft/entity/Entity;)Z
-
onKilled
- Overrides:
onKilledin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLsw;a(Lry;)Vintermediary method_2580Lnet/minecraft/class_1699;method_2580(Lnet/minecraft/class_856;)Vnamed onKilledLnet/minecraft/entity/LivingEntity;onKilled(Lnet/minecraft/entity/damage/DamageSource;)V
-