Package net.minecraft.entity.passive
Class TameableEntity
- All Implemented Interfaces:
CommandSource,EntityCategoryProvider,Tameable
- Direct Known Subclasses:
OcelotEntity,WolfEntity
public abstract class TameableEntity extends AnimalEntity implements Tameable
- Mappings:
Namespace Name official qaintermediary net/minecraft/class_1764named net/minecraft/entity/passive/TameableEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.mob.MobEntity
MobEntity.Location -
Field Summary
Fields inherited from class net.minecraft.entity.passive.AnimalEntity
field_7884Fields inherited from class net.minecraft.entity.passive.AgeableEntity
field_7327, field_7331, forcedAgeFields inherited from class net.minecraft.entity.PassivePathFindingEntity
FLEEING_SPEED_BONUS_ID, FLEEING_SPEED_MODIFIERFields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, attackGoals, entityMotionHelper, experiencePoints, goals, jumpControl, navigationFields inherited from class net.minecraft.entity.LivingEntity
attackingPlayer, bodyTrackingIncrements, bodyYaw, dead, deathTime, defaultMaxHealth, despawnCounter, distanceTravelled, field_7434, field_7435, field_7436, field_7438, field_7439, field_7456, field_7457, field_7458, field_7462, field_7463, field_7472, flyingSpeed, forwardSpeed, handSwinging, handSwingProgress, headYaw, hurtTime, jumping, knockbackVelocity, lastHandSwingProgress, maxHurtTime, playerHitTimer, prevBodyYaw, prevDistanceTravelled, prevHeadYaw, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, serverPitch, serverY, serverYaw, serverZ, serxerX, sidewaysSpeed, stepBobbingAmountFields inherited from class net.minecraft.entity.Entity
changingDimension, colliding, dataTracker, dimension, distanceTraveled, fallDistance, field_7357, field_7362, field_7363, field_7364, field_7365, field_7370, field_7390, fireResistance, firstUpdate, height, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inLava, isFireImmune, lastPortalBlockPos, lastPortalVec3d, netherPortalCooldown, noClip, onGround, pitch, playerUuid, prevHorizontalSpeed, prevPitch, prevTickX, prevTickY, prevTickZ, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, renderDistanceMultiplier, rider, stepHeight, teleportDirection, teleporting, ticksAlive, touchingWater, trackedX, trackedY, trackedZ, vehicle, velocityDirty, velocityModified, velocityX, velocityY, velocityZ, verticalCollision, width, world, x, y, yaw, z -
Constructor Summary
Constructors Constructor Description TameableEntity(World world) -
Method Summary
Modifier and Type Method Description voiddeserialize(CompoundTag tag)LivingEntitygetOwner()StringgetOwnerId()AbstractTeamgetScoreboardTeam()SitGoalgetSitGoal()voidhandleStatus(byte status)protected voidinitDataTracker()booleanisInSameTeam(LivingEntity entity)booleanisSitting()booleanisTamed()booleanmethod_7279(LivingEntity livingEntity, LivingEntity livingEntity2)voidmethod_7280(String string)booleanmethod_7286(LivingEntity livingEntity)voidonKilled(DamageSource source)protected voidonTamedChanged()voidserialize(CompoundTag tag)voidsetSitting(boolean sitting)voidsetTamed(boolean tamed)protected voidshowEmoteParticle(boolean positive)Methods inherited from class net.minecraft.entity.passive.AnimalEntity
canBreedWith, damage, eat, getMinAmbientSoundDelay, isBreedingItem, isInLove, lovePlayer, method_7104, method_7184, method_7195, method_7202, method_7239, method_7515, mobTick, resetLoveTicks, tickMovementMethods inherited from class net.minecraft.entity.passive.AgeableEntity
age, isBaby, method_6887, method_6888, method_6889, method_6890, method_6891, method_6894, setAge, setBoundsMethods inherited from class net.minecraft.entity.PassivePathFindingEntity
method_7240, method_7241, method_7242, method_7243, method_7244, method_7245, method_7246, method_7247, method_7248, updateLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
attachLeash, baseTick, canAttackEntity, canMoveVoluntarily, canPickupItem, canPickUpLoot, checkDespawn, detachLeash, equip, getAmbientSound, getArmorStacks, getAttackTarget, getDefaultDrop, getJumpControl, getLimitPerChunk, getLookControl, getLookPitchSpeed, getMainSlot, getMotionHelper, getNavigation, getSafeFallDistance, getStackInHand, getVisibilityCache, hasNoAi, hasPositionTarget, initEquipment, initializeAttributes, isPersistent, isTameable, lookAtEntity, loot, method_7096, method_7106, method_7156, method_7164, method_7177, method_7187, method_7188, method_7191, method_7203, method_7204, method_7206, method_7210, method_7214, newNavigation, onEatingGrass, openInventory, playAmbientSound, playSpawnEffects, setAiDisabled, setArmorSlot, setAttackTarget, setCanPickUpLoot, setForwardSpeed, setPersistent, tick, tickNewAi, updateEnchantmentsMethods inherited from class net.minecraft.entity.LivingEntity
addStatusEffect, animateDamage, applyDamage, canSee, clearStatusEffects, collides, damageArmor, destroy, endCombat, enterCombat, fall, getAbsorption, getArmorProtectionValue, getAttributeContainer, getDamageEnchantmentTarget, getDamageTracker, getDeathSound, getEffectInstance, getFallSound, getHandSwingProgress, getHeadRotation, getHealth, getHurtSound, getLastHurtTimestamp, getMaxHealth, getRandom, getRotationVector, getStuckArrows, handleFallDamage, hasStatusEffect, hasStatusEffect, heal, initializeAttribute, isAffectedBySmite, isAlive, isInTeam, isPushable, isSleeping, jump, kill, markEffectsDirty, method_6985, method_7087, method_7091, method_7092, method_7093, method_7098, method_7099, method_7100, method_7102, method_7105, method_7108, method_7109, method_7110, method_7111, method_7113, method_7114, method_7115, method_7118, method_7123, method_7124, method_7126, method_7128, method_7129, method_7130, method_7132, method_7134, method_7139, method_7142, method_7146, method_7149, method_7153, method_7154, method_7162, method_7166, method_7171, method_7176, method_7178, method_7179, pushAway, removeEffect, scheduleVelocityUpdate, sendPickup, setAbsorption, setAttacker, setHeadYaw, setHealth, setJumping, setSprinting, setStuckArrows, setYaw, shouldRenderName, startRiding, swingHand, tickRiding, tickStatusEffects, updateTrackedPositionAndAnglesMethods inherited from class net.minecraft.entity.Entity
addVelocity, afterSpawn, attemptSprintingParticles, burn, canAvoidTraps, canClimb, canFly, canUseCommand, checkBlockCollision, copyPortalInfo, copyPosition, doesNotCollide, doesRenderOnFire, equals, extinguish, fromClientTag, fromTag, getAir, getBlastResistance, getBlockPos, getBoundingBox, getBox, getCameraPosVec, getCommandStats, getCustomName, getDataTracker, getDefaultNetherPortalCooldown, getDistanceTo, getEntity, getEntityId, getEyeHeight, getFlag, getHardCollisionBox, getHeightOffset, getHorizontalDirection, getHoverEvent, getLastNetherPortalDirection, getLastNetherPortalDirectionVector, getMaxNetherPortalTime, getMountedHeightOffset, getName, getPos, getRotationVector, getSavedEntityId, getSplashSound, getSwimSound, getTranslationKey, getUuid, getWorld, handleAttack, hasCustomName, hashCode, hasVehicle, increaseTransforms, interactAt, isAttackable, isCustomNameVisible, isFireImmune, isImmuneToExplosion, isInsideWall, isInvisible, isInvisibleTo, isInvulnerableTo, isOnFire, isOutsideWorldborder, isPartOf, isSilent, isSneaking, isSpectatedBy, isSprinting, isSubmergedIn, isTouchingWater, method_6912, method_6924, method_6926, method_6939, method_6940, method_6943, method_6944, method_6945, method_6948, method_6949, method_6968, method_6971, method_6977, method_6981, method_6984, method_6994, method_6998, method_7008, method_7020, method_7049, method_7051, method_7058, move, onLightningStrike, onPlayerCollision, onSwimmingStart, playSound, playStepSound, populateCrashReport, pushAwayFrom, rayTrace, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, saveSelfToTag, sendCommandFeedback, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFlag, setInNetherPortal, setInvisible, setOnFireFor, setOnFireFromLava, setOutsideWorldborder, setRotation, setSilent, setSneaking, setStat, setSwimming, setVelocityClient, setWorld, shouldRender, shouldRender, shouldSetPositionOnLoad, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredDistanceToCenter, squaredDistanceToEntity, teleportToDimension, tickFire, toListTag, toListTag, toString, updateKilledAdvancementCriterion, updatePosition, updatePositionAndAngles, writePlayerData
-
Field Details
-
sitGoal
- Mappings:
Namespace Name Mixin selector official bmLqa;bm:Lse;intermediary field_7546Lnet/minecraft/class_1764;field_7546:Lnet/minecraft/class_1817;named sitGoalLnet/minecraft/entity/passive/TameableEntity;sitGoal:Lnet/minecraft/entity/ai/goal/SitGoal;
-
-
Constructor Details
-
TameableEntity
- Mappings:
Namespace Name Mixin selector official <init>Lpk;<init>(Ladm;)Vintermediary <init>Lnet/minecraft/class_1745;<init>(Lnet/minecraft/class_99;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/world/World;)V
-
-
Method Details
-
initDataTracker
protected void initDataTracker()- Overrides:
initDataTrackerin classAgeableEntity- Mappings:
Namespace Name Mixin selector official hLpk;h()Vintermediary method_7043Lnet/minecraft/class_1745;method_7043()Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker()V
-
serialize
- Overrides:
serializein classAnimalEntity- Mappings:
Namespace Name Mixin selector official bLpk;b(Ldn;)Vintermediary method_7003Lnet/minecraft/class_1745;method_7003(Lnet/minecraft/class_1405;)Vnamed serializeLnet/minecraft/entity/Entity;serialize(Lnet/minecraft/nbt/CompoundTag;)V
-
deserialize
- Overrides:
deserializein classAnimalEntity- Mappings:
Namespace Name Mixin selector official aLpk;a(Ldn;)Vintermediary method_6933Lnet/minecraft/class_1745;method_6933(Lnet/minecraft/class_1405;)Vnamed deserializeLnet/minecraft/entity/Entity;deserialize(Lnet/minecraft/nbt/CompoundTag;)V
-
showEmoteParticle
protected void showEmoteParticle(boolean positive)- Mappings:
Namespace Name Mixin selector official lLqa;l(Z)Vintermediary method_7287Lnet/minecraft/class_1764;method_7287(Z)Vnamed showEmoteParticleLnet/minecraft/entity/passive/TameableEntity;showEmoteParticle(Z)V
-
handleStatus
- Overrides:
handleStatusin classAnimalEntity- Mappings:
Namespace Name Mixin selector official aLpk;a(B)Vintermediary method_6916Lnet/minecraft/class_1745;method_6916(B)Vnamed handleStatusLnet/minecraft/entity/Entity;handleStatus(B)V
-
isTamed
public boolean isTamed()- Mappings:
Namespace Name Mixin selector official clLqa;cl()Zintermediary method_7281Lnet/minecraft/class_1764;method_7281()Znamed isTamedLnet/minecraft/entity/passive/TameableEntity;isTamed()Z
-
setTamed
public void setTamed(boolean tamed)- Mappings:
Namespace Name Mixin selector official mLqa;m(Z)Vintermediary method_7288Lnet/minecraft/class_1764;method_7288(Z)Vnamed setTamedLnet/minecraft/entity/passive/TameableEntity;setTamed(Z)V
-
onTamedChanged
protected void onTamedChanged()- Mappings:
Namespace Name Mixin selector official cmLqa;cm()Vintermediary method_7282Lnet/minecraft/class_1764;method_7282()Vnamed onTamedChangedLnet/minecraft/entity/passive/TameableEntity;onTamedChanged()V
-
isSitting
public boolean isSitting()- Mappings:
Namespace Name Mixin selector official cnLqa;cn()Zintermediary method_7283Lnet/minecraft/class_1764;method_7283()Znamed isSittingLnet/minecraft/entity/passive/TameableEntity;isSitting()Z
-
setSitting
public void setSitting(boolean sitting)- Mappings:
Namespace Name Mixin selector official nLqa;n(Z)Vintermediary method_7289Lnet/minecraft/class_1764;method_7289(Z)Vnamed setSittingLnet/minecraft/entity/passive/TameableEntity;setSitting(Z)V
-
getOwnerId
- Specified by:
getOwnerIdin interfaceTameable- Mappings:
Namespace Name Mixin selector official bLpx;b()Ljava/lang/String;intermediary method_7237Lnet/minecraft/class_1759;method_7237()Ljava/lang/String;named getOwnerIdLnet/minecraft/entity/Tameable;getOwnerId()Ljava/lang/String;
-
method_7280
- Mappings:
Namespace Name Mixin selector official bLqa;b(Ljava/lang/String;)Vintermediary method_7280Lnet/minecraft/class_1764;method_7280(Ljava/lang/String;)Vnamed method_7280Lnet/minecraft/entity/passive/TameableEntity;method_7280(Ljava/lang/String;)V
-
getOwner
- Specified by:
getOwnerin interfaceTameable- Mappings:
Namespace Name Mixin selector official coLqa;co()Lpr;intermediary method_7284Lnet/minecraft/class_1764;method_7284()Lnet/minecraft/class_1752;named getOwnerLnet/minecraft/entity/passive/TameableEntity;getOwner()Lnet/minecraft/entity/LivingEntity;
-
method_7286
- Mappings:
Namespace Name Mixin selector official eLqa;e(Lpr;)Zintermediary method_7286Lnet/minecraft/class_1764;method_7286(Lnet/minecraft/class_1752;)Znamed method_7286Lnet/minecraft/entity/passive/TameableEntity;method_7286(Lnet/minecraft/entity/LivingEntity;)Z
-
getSitGoal
- Mappings:
Namespace Name Mixin selector official cpLqa;cp()Lse;intermediary method_7285Lnet/minecraft/class_1764;method_7285()Lnet/minecraft/class_1817;named getSitGoalLnet/minecraft/entity/passive/TameableEntity;getSitGoal()Lnet/minecraft/entity/ai/goal/SitGoal;
-
method_7279
- Mappings:
Namespace Name Mixin selector official aLqa;a(Lpr;Lpr;)Zintermediary method_7279Lnet/minecraft/class_1764;method_7279(Lnet/minecraft/class_1752;Lnet/minecraft/class_1752;)Znamed method_7279Lnet/minecraft/entity/passive/TameableEntity;method_7279(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
-
getScoreboardTeam
- Overrides:
getScoreboardTeamin classLivingEntity- Mappings:
Namespace Name Mixin selector official bOLpr;bO()Lauq;intermediary method_7121Lnet/minecraft/class_1752;method_7121()Lnet/minecraft/class_655;named getScoreboardTeamLnet/minecraft/entity/LivingEntity;getScoreboardTeam()Lnet/minecraft/scoreboard/AbstractTeam;
-
isInSameTeam
- Overrides:
isInSameTeamin classLivingEntity- Mappings:
Namespace Name Mixin selector official cLpr;c(Lpr;)Zintermediary method_7151Lnet/minecraft/class_1752;method_7151(Lnet/minecraft/class_1752;)Znamed isInSameTeamLnet/minecraft/entity/LivingEntity;isInSameTeam(Lnet/minecraft/entity/LivingEntity;)Z
-
onKilled
- Overrides:
onKilledin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLpr;a(Low;)Vintermediary method_7089Lnet/minecraft/class_1752;method_7089(Lnet/minecraft/class_1733;)Vnamed onKilledLnet/minecraft/entity/LivingEntity;onKilled(Lnet/minecraft/entity/damage/DamageSource;)V
-