Package net.minecraft.entity.passive
Class TameableEntity
- All Implemented Interfaces:
ComponentsAccess,Attackable,DataTracked,EquipmentHolder,Leashable,Tameable,Targeter,ScoreHolder,Nameable,EntityLike,UniquelyIdentifiable
- Direct Known Subclasses:
CatEntity,TameableShoulderEntity,WolfEntity
- Mappings:
Namespace Name named net/minecraft/entity/passive/TameableEntityintermediary net/minecraft/class_1321official bzb
-
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.entity.Leashable
Leashable.LeashData -
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, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, DEFAULT_CAN_PICKUP_LOOT_CHANCE, experiencePoints, field_35039, goalSelector, jumpControl, lookControl, MINIMUM_DROPPED_EXPERIENCE_PER_EQUIPMENT, moveControl, navigation, RANDOM_SPAWN_BONUS_MODIFIER_ID, targetSelectorFields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, ATTRIBUTES_NBT_KEY, BABY_SCALE_FACTOR, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, elytraFlightController, equipment, EQUIPMENT_SLOT_ID, 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, 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, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAGFields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnowFields inherited from interface net.minecraft.entity.Leashable
LEASH_NBT_KEY, MAX_LEASH_LENGTH, SHORT_LEASH_LENGTHFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTameableEntity(EntityType<? extends TameableEntity> type, World world) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbeforeLeashTick(Entity leashHolder, float distance) Called before the default leash-ticking logic.booleancanAttackWithOwner(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) voidReads custom data fromnbt.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 voidvoidWrites custom data tonbt.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, 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
canSpawn, getFollowLeashSpeed, getPathfindingFavor, isNavigating, isPanicking, onShortLeashTick, shouldFollowLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
baseTick, breakLongLeash, canActVoluntarily, canDispenserEquipSlot, canGather, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, 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, isInWalkTargetRange, isInWalkTargetRange, 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, 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, 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, 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, getWeaponDisableBlockingForSeconds, getWeaponStack, getYaw, giveOrDropStack, handleFallDamage, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBlocking, isClimbing, isDead, isEntityLookingAtMe, isExperienceDroppingDisabled, isGliding, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInCreativeMode, isInsideWall, isInSwimmingPose, isInvulnerableTo, isMobOrPlayer, isPartOfGame, isPushable, isSleeping, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onEquipStack, onKilledBy, onRemoval, 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, 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, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canSprintAsVehicle, canStartRiding, canTeleportBetween, castComponentValue, changeLookDirection, clientDamage, collidesWith, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyComponentsFrom, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, defrost, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, 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, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashOffset, getLeashOffset, 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, hasVehicle, igniteByLava, interactAt, isAlwaysInvulnerableTo, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, 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, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, pushOutOfBlocks, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveNbt, saveSelfNbt, scheduleVelocityUpdate, serverDamage, setAir, 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, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportTo, tickBlockCollision, tickBlockCollision, tickPortalCooldown, tickPortalTeleportation, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeNbtMethods 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
applyLeashElasticity, attachLeash, canLeashAttachTo, detachLeash, detachLeashWithoutDrop, getLeashHolder, isLeashed, mightBeLeashed, readLeashDataFromNbt, setUnresolvedLeashHolderId, writeLeashDataToNbtMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayNameMethods 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_52002Lnet/minecraft/entity/passive/TameableEntity;field_52002:Iintermediary field_52002Lnet/minecraft/class_1321;field_52002:Iofficial bILbzb;bI: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 bMLbzb;bM: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 bNLbzb;bN: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 bOLbzb;bO: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 bPLbzb;bP: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 bJLbzb;bJ:Laku;
-
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 bKLbzb;bK:Laku;
-
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 bQLbzb;bQ: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>Lbxe;<init>(Lbxn;Ldkj;)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 aLbxe;a(Laky$a;)V
-
writeCustomDataToNbt
Writes custom data tonbt. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
- Overrides:
writeCustomDataToNbtin classAnimalEntity- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vofficial bLbxe;b(Lua;)V
-
readCustomDataFromNbt
Reads custom data fromnbt. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
nbtmight not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readCustomDataFromNbtin classAnimalEntity- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vofficial aLbxe;a(Lua;)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 wLbyd;w()Z
-
beforeLeashTick
Called before the default leash-ticking logic. Subclasses can override this to add their own logic to it.- Specified by:
beforeLeashTickin interfaceLeashable- Overrides:
beforeLeashTickin classPathAwareEntity- Returns:
- whether the default logic should run after this
- See Also:
- Mappings:
Namespace Name Mixin selector named beforeLeashTickLnet/minecraft/entity/Leashable;beforeLeashTick(Lnet/minecraft/entity/Entity;F)Zintermediary method_60956Lnet/minecraft/class_9817;method_60956(Lnet/minecraft/class_1297;F)Zofficial aLbyd;a(Lbxe;F)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 wLbzb;w(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 bLbxe;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 mLbzb;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 aLbzb;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 pLbzb;p()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 uLbzb;u()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 xLbzb;x(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 dLbym;d()Lbxk;
-
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 iLbzb;i(Lbyf;)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 aLbzb;a(Lbxk;)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 aLbzb;a(Lcsi;)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 cLbyf;c(Lbyf;)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 jLbzb;j(Lbyf;)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 aLbzb;a(Lbyf;Lbyf;)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 cqLbxe;cq()Lfhc;
-
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 tLbxe;t(Lbxe;)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 aLbyf;a(Lbvt;)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 guLbzb;gu()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 yLbzb;y(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 gvLbzb;gv()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 gwLbzb;gw()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 hLbzb;h(Liw;)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 aLbzb;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 iLbzb;i(Liw;)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 gxLbzb;gx()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 gyLbzb;gy()Z
-