Package net.minecraft.entity.passive
Class TameableEntity
- All Implemented Interfaces:
CommandSource,EntityCategoryProvider,Tameable
- Direct Known Subclasses:
OcelotEntity,WolfEntity
- Mappings:
Namespace Name official xxintermediary net/minecraft/class_880named net/minecraft/entity/passive/TameableEntity
-
Field Summary
FieldsFields 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, goals, jumpControl, navigationFields inherited from class net.minecraft.entity.LivingEntity
attackingPlayer, bodyTrackingIncrements, bodyYaw, dead, deathTime, defaultMaxHealth, despawnCounter, distanceTravelled, 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, 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_22434, field_3223, fireResistance, firstUpdate, height, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inLava, isFireImmune, netherPortalCooldown, netherPortalTime, noClip, onGround, pitch, playerUuid, prevHorizontalSpeed, prevPitch, prevTickX, prevTickY, prevTickZ, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, renderDistanceMultiplier, rider, stepHeight, teleporting, ticksAlive, touchingWater, trackedX, trackedY, trackedZ, updateNeeded, vehicle, velocityDirty, velocityModified, velocityX, velocityY, velocityZ, verticalCollision, width, world, x, y, yaw, z -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAttackWithOwner(LivingEntity target, LivingEntity owner) getOwner()voidhandleStatus(byte status) protected voidbooleanisInSameTeam(LivingEntity entity) booleanisOwner(LivingEntity entity) booleanbooleanisTamed()voidmethod_2713(String string) voidonKilled(DamageSource source) protected voidvoidvoidsetSitting(boolean sitting) voidsetTamed(boolean tamed) protected voidshowEmoteParticle(boolean positive) voidMethods inherited from class net.minecraft.entity.passive.AnimalEntity
canBeLeashedBy, canBreedWith, canImmediatelyDespawn, canSpawn, damage, eat, getLovingPlayer, getMinAmbientSoundDelay, getPathfindingFavor, getXpToDrop, isBreedingItem, isInLove, lovePlayer, mobTick, resetLoveTicks, tickMovementMethods inherited from class net.minecraft.entity.passive.PassiveEntity
age, breed, isBaby, method_10925, method_10926, method_5377, method_5378, method_6095, setAge, setBoundsMethods inherited from class net.minecraft.entity.PathAwareEntity
getPositionTarget, getPositionTargetRange, hasPositionTarget, isInWalkTargetRange, isInWalkTargetRange, method_6173, method_6175, setPositionTarget, shouldContinue, updateLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
attachLeash, baseTick, canAttackEntity, canBeControlledByRider, canMoveVoluntarily, canPickupItem, canPickUpLoot, checkDespawn, createNavigation, detachLeash, dropLoot, equip, getAmbientSound, getArmorStacks, getDefaultDrop, getJumpControl, getLimitPerChunk, getLookControl, getLookPitchSpeed, getMainSlot, getMotionHelper, getNavigation, getSafeFallDistance, getStackInHand, getTarget, getVisibilityCache, initEquipment, initialize, initializeAttributes, isLeashed, isPersistent, isTameable, lookAtEntity, loot, method_2469, method_2638, method_4470, method_4472, method_4485, method_5388, method_6162, method_8374, onEatingGrass, openInventory, playAmbientSound, playSpawnEffects, setAiDisabled, setArmorSlot, setCanPickUpLoot, setForwardSpeed, setMovementSpeed, setPersistent, setTarget, tick, tickNewAi, turnHead, updateEnchantmentsMethods inherited from class net.minecraft.entity.LivingEntity
addStatusEffect, animateDamage, applyArmorDamage, applyDamage, applyEnchantmentsToDamage, canSee, clearStatusEffects, collides, damageArmor, destroy, dropXp, endCombat, enterCombat, fall, getAbsorption, getArmorProtectionValue, getAttacker, getAttacking, getAttributeContainer, getDamageTracker, getDeathSound, getEffectInstance, getFallSound, getGroup, getHandSwingProgress, getHeadRotation, getHealth, getHurtSound, getJumpVelocity, getLastAttackTime, getLastHurtTimestamp, getMaxHealth, getMovementSpeed, getNextAirUnderwater, getOpponent, getRandom, getRotation, getRotationVector, getSoundPitch, getSoundVolume, getStatusEffectInstances, getStuckArrows, handleFallDamage, hasStatusEffect, hasStatusEffect, heal, initializeAttribute, isAffectedBySmite, isAlive, isClimbing, isInTeam, isPushable, isSleeping, jump, kill, markEffectsDirty, method_10979, method_10981, method_2582, method_2607, method_2610, method_2634, method_2649, method_2658, method_4473, method_6108, method_6109, method_6111, method_6117, method_6149, method_6150, method_6152, pushAway, removeEffect, scheduleVelocityUpdate, sendPickup, setAbsorption, setAttacker, setHeadYaw, setHealth, setJumping, setSprinting, setStuckArrows, shouldAlwaysDropXp, shouldDropXp, shouldRenderName, startRiding, swingHand, tickCramming, tickHandSwing, tickRiding, tickStatusEffects, travel, tryAttack, updatePotionVisibility, updateTrackedPositionAndAnglesMethods inherited from class net.minecraft.entity.Entity
addVelocity, afterSpawn, attemptSprintingParticles, burn, canAvoidTraps, canClimb, canExplosionDestroyBlock, canFly, canUseCommand, checkBlockCollision, copyPortalInfo, copyPosition, dealDamage, distanceTo, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropItem, equals, extinguish, fromClientNbt, fromNbt, getAir, getBlastResistance, getBlockPos, getBoundingBox, getBox, getBrightnessAtEyes, getCameraPosVec, getCommandStats, getCustomName, getDataTracker, getDefaultNetherPortalCooldown, getEntity, getEntityId, getEyeHeight, getFlag, getHardCollisionBox, getHeightOffset, getHorizontalDirection, getHoverEvent, getLightmapCoordinates, getMaxNetherPortalTime, getMountedHeightOffset, getParts, getPos, getRotationVector, getSavedEntityId, getSplashSound, getSwimSound, getTargetingMargin, 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, isSwimming, isTouchingLava, isTouchingWater, method_10786, method_10941, method_10948, method_10957, method_10965, method_6097, method_6344, method_8364, move, onKilledOther, onLightningStrike, onPlayerCollision, onSwimmingStart, playSound, playStepSound, populateCrashReport, pushAwayFrom, pushOutOfBlocks, rayTrace, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, saveSelfToNbt, saveToNbt, sendCommandFeedback, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFlag, setInLava, setInvisible, setOnFireFor, setOnFireFromLava, setOutsideWorldborder, setRotation, setSilent, setSneaking, setSwimming, setVelocityClient, setWorld, shouldRender, shouldRender, shouldSetPositionOnLoad, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredDistanceToCenter, teleportToDimension, tickFire, toListNbt, toListNbt, toString, updateKilledAdvancementCriterion, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateVelocity, updateWaterState, writePlayerData
-
Field Details
-
sitGoal
- Mappings:
Namespace Name Mixin selector official bkLxx;bk:Laad;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>Lwv;<init>(Laqu;)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 hLwv;h()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 bLwv;b(Lfn;)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 aLwv;a(Lfn;)Vintermediary method_2498Lnet/minecraft/class_864;method_2498(Lnet/minecraft/class_322;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
showEmoteParticle
protected void showEmoteParticle(boolean positive) - Mappings:
Namespace Name Mixin selector official lLxx;l(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 aLwv;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 cjLxx;cj()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 mLxx;m(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 ckLxx;ck()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 clLxx;cl()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 nLxx;n(Z)Vintermediary method_2716Lnet/minecraft/class_880;method_2716(Z)Vnamed setSittingLnet/minecraft/entity/passive/TameableEntity;setSitting(Z)V
-
getOwnerId
- Specified by:
getOwnerIdin interfaceTameable- Mappings:
Namespace Name Mixin selector official bLxt;b()Ljava/lang/String;intermediary method_2719Lnet/minecraft/class_1701;method_2719()Ljava/lang/String;named getOwnerIdLnet/minecraft/entity/Tameable;getOwnerId()Ljava/lang/String;
-
method_2713
- Mappings:
Namespace Name Mixin selector official bLxx;b(Ljava/lang/String;)Vintermediary method_2713Lnet/minecraft/class_880;method_2713(Ljava/lang/String;)Vnamed method_2713Lnet/minecraft/entity/passive/TameableEntity;method_2713(Ljava/lang/String;)V
-
getOwner
- Specified by:
getOwnerin interfaceTameable- Mappings:
Namespace Name Mixin selector official cmLxx;cm()Lxm;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 eLxx;e(Lxm;)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 cnLxx;cn()Laad;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 aLxx;a(Lxm;Lxm;)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 classLivingEntity- Mappings:
Namespace Name Mixin selector official bNLxm;bN()Lbsf;intermediary method_6135Lnet/minecraft/class_1699;method_6135()Lnet/minecraft/class_1599;named getScoreboardTeamLnet/minecraft/entity/LivingEntity;getScoreboardTeam()Lnet/minecraft/scoreboard/AbstractTeam;
-
isInSameTeam
- Overrides:
isInSameTeamin classLivingEntity- Mappings:
Namespace Name Mixin selector official cLxm;c(Lxm;)Zintermediary method_6137Lnet/minecraft/class_1699;method_6137(Lnet/minecraft/class_1699;)Znamed isInSameTeamLnet/minecraft/entity/LivingEntity;isInSameTeam(Lnet/minecraft/entity/LivingEntity;)Z
-
onKilled
- Overrides:
onKilledin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLxm;a(Lwh;)Vintermediary method_2580Lnet/minecraft/class_1699;method_2580(Lnet/minecraft/class_856;)Vnamed onKilledLnet/minecraft/entity/LivingEntity;onKilled(Lnet/minecraft/entity/damage/DamageSource;)V
-