Class CamelEntity
- All Implemented Interfaces:
Attackable
,DataTracked
,EquipmentHolder
,JumpingMount
,Leashable
,Mount
,RideableInventory
,Saddleable
,Tameable
,Targeter
,InventoryChangedListener
,ScoreHolder
,Nameable
,EntityLike
- Mappings:
Namespace Name named net/minecraft/entity/passive/CamelEntity
intermediary net/minecraft/class_7689
official cjn
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
private class
private class
Nested classes/interfaces inherited from class net.minecraft.entity.passive.PassiveEntity
PassiveEntity.PassiveData
Nested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSounds
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
Nested classes/interfaces inherited from interface net.minecraft.entity.Leashable
Leashable.LeashData
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
static final TrackedData
<Boolean> final AnimationState
static final int
private static final int
private static final int
private static final float
private static final float
private static final float
private static final float
private static final int
static final int
private static final int
static final float
private int
final AnimationState
static final TrackedData
<Long> private static final EntityDimensions
final AnimationState
final AnimationState
final AnimationState
Fields inherited from class net.minecraft.entity.passive.AbstractHorseEntity
field_30413, field_30414, field_30415, field_30416, field_30418, field_42647, field_52488, field_6958, inAir, items, jumping, jumpStrength, playExtraHorseSounds, soundTicks, tailWagTicks, temper
Fields inherited from class net.minecraft.entity.passive.AnimalEntity
BREEDING_COOLDOWN
Fields inherited from class net.minecraft.entity.passive.PassiveEntity
BABY_AGE, breedingAge, forcedAge, happyTicksRemaining
Fields inherited from class net.minecraft.entity.mob.PathAwareEntity
DEFAULT_PATHFINDING_FAVOR
Fields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, bodyArmorDropChance, DEFAULT_CAN_PICKUP_LOOT_CHANCE, DEFAULT_DROP_CHANCE, experiencePoints, field_35039, field_38932, field_52220, goalSelector, handDropChances, jumpControl, lookControl, MINIMUM_DROPPED_XP_PER_EQUIPMENT, moveControl, navigation, RANDOM_SPAWN_BONUS_MODIFIER_ID, targetSelector
Fields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, ATTRIBUTES_NBT_KEY, BABY_SCALE_FACTOR, bodyTrackingIncrements, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, elytraFlightController, EQUIPMENT_SLOT_ID, field_30069, field_30070, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, field_6215, forwardSpeed, glidingTicks, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, limbAnimator, LIVING_FLAGS, lookDirection, maxHurtTime, NOT_WEARING_GAZE_DISGUISE_PREDICATE, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevScale, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideAttackDamage, riptideStack, riptideTicks, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAG
Fields 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, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow
Fields inherited from interface net.minecraft.entity.Leashable
LEASH_NBT_KEY, MAX_LEASH_LENGTH, SHORT_LEASH_LENGTH
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyDamage
(ServerWorld world, DamageSource source, float amount) boolean
beforeLeashTick
(Entity leashHolder, float distance) Called before the default leash-ticking logic.protected boolean
canAddPassenger
(Entity passenger) Returns whetherentity
can ride this entity.boolean
canBreedWith
(AnimalEntity other) boolean
boolean
canJump()
boolean
protected BodyControl
protected Brain.Profile
<CamelEntity> createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) protected Brain
<?> deserializeBrain
(com.mojang.serialization.Dynamic<?> dynamic) protected SoundEvent
getBaseDimensions
(EntityPose pose) protected Vec3d
getControlledMovementInput
(PlayerEntity controllingPlayer, Vec3d movementInput) protected Vec2f
getControlledRotation
(LivingEntity controllingPassenger) protected SoundEvent
protected @Nullable SoundEvent
protected SoundEvent
getHurtSound
(DamageSource source) int
long
getLeashOffset
(float tickDelta) int
Returns the maximum degrees which the head yaw can differ from the body yaw.protected Vec3d
getPassengerAttachmentPos
(Entity passenger, EntityDimensions dimensions, float scaleFactor) private double
getPassengerAttachmentY
(boolean primaryPassenger, float tickDelta, EntityDimensions dimensions, float scaleFactor) protected float
getSaddledSpeed
(PlayerEntity controllingPlayer) float
protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.protected void
initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData) private void
initLastPoseTick
(long time) interactMob
(PlayerEntity player, Hand hand) boolean
isBreedingItem
(ItemStack stack) boolean
boolean
boolean
boolean
boolean
isTame()
protected void
protected void
mobTick
(ServerWorld world) void
onTrackedDataSet
(TrackedData<?> data) Called on the client when the tracked data is set.void
openInventory
(PlayerEntity player) protected void
playStepSound
(BlockPos pos, BlockState state) void
Reads custom data fromnbt
.protected boolean
receiveFood
(PlayerEntity player, ItemStack item) protected void
void
setDashing
(boolean dashing) void
setJumpStrength
(int strength) void
setLastPoseTick
(long lastPoseTick) void
protected boolean
private boolean
boolean
void
startJumping
(int height) void
void
void
void
tick()
Ticks this entity.protected void
tickControlled
(PlayerEntity controllingPlayer, Vec3d movementInput) void
Allows you to do certain speed and velocity calculations.private void
protected void
updateLimbs
(float posDelta) void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.passive.AbstractHorseEntity
addTemper, areInventoriesDifferent, bondWithPlayer, calculateAttributeBaseValue, canBeSaddled, canBreed, canDispenserEquipSlot, createBaseHorseAttributes, damage, dropInventory, eatsGrass, equipHorseArmor, getAmbientStandSound, getAngryAnimationProgress, getAngrySound, getArmorInventory, getChildHealthBonus, getChildJumpStrengthBonus, getChildMovementSpeedBonus, getControllingPassenger, getEatingAnimationProgress, getEatingGrassAnimationProgress, getHorseFlag, getInventoryColumns, getInventorySize, getInventorySize, getLimitPerChunk, getMaxTemper, getMinAmbientSoundDelay, getMinAmbientStandDelay, getOwnerUuid, getSoundVolume, getStackReference, getTemper, handleFallDamage, handleStatus, initAttributes, initCustomGoals, interactHorse, isAngry, isBred, isClimbing, isEatingGrass, isImmobile, isInAir, isPushable, isSaddled, onChestedStatusChanged, onInventoryChanged, playAngrySound, playJumpSound, playWalkSound, putPlayerOnBack, saddle, setAngry, setBred, setChildAttributes, setEatingGrass, setHorseFlag, setInAir, setOwnerUuid, setTame, setTemper, spawnPlayerReactionParticles, tickMovement, updateAnger, updatePassengerForDismount, updatePassengerPosition, updateSaddledFlag, walkToParent
Methods inherited from class net.minecraft.entity.passive.AnimalEntity
breed, breed, canEat, canImmediatelyDespawn, createAnimalAttributes, eat, getLoveTicks, getLovingPlayer, getPathfindingFavor, getXpToDrop, isInLove, isLightLevelValidForNaturalSpawn, isValidNaturalSpawn, lovePlayer, playEatSound, resetLoveTicks, setLoveTicks
Methods inherited from class net.minecraft.entity.passive.PassiveEntity
getBreedingAge, getForcedAge, getHappyTicksRemaining, growUp, growUp, isBaby, isReadyToBreed, onGrowUp, setBaby, setBreedingAge, toGrowUpAge
Methods inherited from class net.minecraft.entity.mob.PathAwareEntity
canSpawn, getFollowLeashSpeed, getPathfindingFavor, isNavigating, isPanicking, onShortLeashTick, shouldFollowLeash
Methods inherited from class net.minecraft.entity.mob.MobEntity
baseTick, canBeLeashed, canGather, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canTarget, canUseRangedWeapon, canUseSlot, checkDespawn, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, convertTo, createMobAttributes, createNavigation, detachLeash, detachLeash, dropAllEquipment, dropEquipment, dropEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipBodyArmor, equipLootStack, equipStack, getAllArmorItems, getArmorDropChances, getArmorItems, getAttackBox, getBodyArmor, getDropChance, getEquipmentForSlot, getEquippedStack, getHandDropChances, getHandItems, getItemPickUpRangeExpander, getJumpControl, getLeashData, getLookControl, getLootTableKey, getLootTableSeed, getMainArm, getMaxLookPitchChange, getMaxLookYawChange, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getSafeFallDistance, getTarget, getTargetInBrain, getVisibilityCache, hasPositionTarget, initEquipment, interact, isAffectedByDaylight, isAiDisabled, isAttacking, isDisallowedInPeaceful, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, loot, movesIndependently, onEatingGrass, onFinishPathfinding, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playAttackSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, setAiDisabled, setAttacking, setCanPickUpLoot, setEquipmentDropChance, setEquipmentFromTable, setEquipmentFromTable, setForwardSpeed, setLeashData, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, startRiding, stopMovement, swimUpward, tickNewAi, tryAttack, tryEquip, turnHead, updateAttribute, updateDropChances, updateEnchantments, updateGoalControls
Methods inherited from class net.minecraft.entity.LivingEntity
addDeathParticles, addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyFluidMovingSpeed, applyMovementEffects, areItemsDifferent, attackLivingEntity, blockedByShield, canBreatheInWater, canEquip, canEquipFromDispenser, canFreeze, canGlide, canGlideWith, canHaveStatusEffect, canHit, canSee, canSee, canTakeDamage, canTarget, canUsePortals, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createLivingAttributes, damageArmor, damageEquipment, damageHelmet, damageShield, disableExperienceDropping, disablesShield, drop, dropXp, endCombat, enterCombat, fall, forEachGeneratedItem, forEachGiftedItem, forEachShearedItem, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseMovementSpeedMultiplier, getBlockingItem, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getDamageTiltYaw, getDamageTracker, getDespawnCounter, getDimensions, getEffectiveGravity, getEquippedItems, getFallSounds, getGlidingTicks, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getJumpVelocity, getKnockbackAgainst, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, getLocationBasedEnchantmentEffects, getMainHandStack, getMaxAbsorption, getMaxHealth, getMaxRelativeHeadRotation, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPassengerRidingPos, getPlayerHitTimer, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getProjectileType, getRecentDamageSource, getSafeFallDistance, getScale, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getStackInArm, getStackInHand, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getWeaponStack, getXpToDrop, getYaw, giveOrDropStack, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBlocking, isDead, isEntityLookingAtMe, isExperienceDroppingDisabled, isGliding, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isInCreativeMode, isInsideWall, isInSwimmingPose, isInvulnerableTo, isMobOrPlayer, isPartOfGame, isSleeping, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onRemoval, onSpawnPacket, onStatusEffectApplied, onStatusEffectsRemoved, onStatusEffectUpgraded, playBlockFallSound, playSound, positionInPortal, positionInPortal, processEquippedStack, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeStatusEffect, removeStatusEffectInternal, resetLerp, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAbsorptionAmountUnclamped, setAttacker, setAttacking, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setOnFireForTicks, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropXp, shouldDropLoot, shouldDropXp, shouldRenderName, shouldSwimInFluids, sleep, spawnItemParticles, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickCramming, tickGliding, tickHandSwing, tickInVoid, tickItemStackUsage, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, triggerItemPickedUpByEntityCriteria, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUp, wouldNotSuffocateInPose
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canStartRiding, canTeleportBetween, changeLookDirection, clientDamage, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, extinguishWithSound, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, 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, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getMaxAir, getMinFreezeDamageTicks, getMoveEffect, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, 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, getScoreboardTeam, 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, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasVehicle, interactAt, isAlwaysInvulnerableTo, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLocalPlayerOrLogicalSideForUpdatingMovement, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, lerpPosAndRotation, limitFallDistance, move, movementInputToVelocity, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playSwimSound, playSwimSound, populateCrashReport, pushOutOfBlocks, queueBlockCollisionCheck, 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, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, setInPowderSnow, setInvisible, setInvulnerable, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setPrevPositionAndAngles, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportTo, tickBlockCollision, tickBlockCollision, tickPortalCooldown, tickPortalTeleportation, toNbtList, toNbtList, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerPosition, updatePosition, updatePositionAndAngles, updatePrevAngles, updatePrevPosition, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateVelocity, updateWaterState, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.entity.EquipmentHolder
getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTable
Methods inherited from interface net.minecraft.entity.Leashable
applyLeashElasticity, attachLeash, canLeashAttachTo, getLeashHolder, isLeashed, mightBeLeashed, readLeashDataFromNbt, setUnresolvedLeashHolderId, writeLeashDataToNbt
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
field_45127
public static final float field_45127- See Also:
- Mappings:
Namespace Name Mixin selector named field_45127
Lnet/minecraft/entity/passive/CamelEntity;field_45127:F
intermediary field_45127
Lnet/minecraft/class_7689;field_45127:F
official bZ
Lcjn;bZ:F
-
field_40132
public static final int field_40132- See Also:
- Mappings:
Namespace Name Mixin selector named field_40132
Lnet/minecraft/entity/passive/CamelEntity;field_40132:I
intermediary field_40132
Lnet/minecraft/class_7689;field_40132:I
official ca
Lcjn;ca:I
-
field_41764
public static final int field_41764- See Also:
- Mappings:
Namespace Name Mixin selector named field_41764
Lnet/minecraft/entity/passive/CamelEntity;field_41764:I
intermediary field_41764
Lnet/minecraft/class_7689;field_41764:I
official cb
Lcjn;cb:I
-
field_40146
private static final float field_40146- See Also:
- Mappings:
Namespace Name Mixin selector named field_40146
Lnet/minecraft/entity/passive/CamelEntity;field_40146:F
intermediary field_40146
Lnet/minecraft/class_7689;field_40146:F
official cC
Lcjn;cC:F
-
field_40147
private static final float field_40147- See Also:
- Mappings:
Namespace Name Mixin selector named field_40147
Lnet/minecraft/entity/passive/CamelEntity;field_40147:F
intermediary field_40147
Lnet/minecraft/class_7689;field_40147:F
official cD
Lcjn;cD:F
-
field_40148
private static final float field_40148- See Also:
- Mappings:
Namespace Name Mixin selector named field_40148
Lnet/minecraft/entity/passive/CamelEntity;field_40148:F
intermediary field_40148
Lnet/minecraft/class_7689;field_40148:F
official cE
Lcjn;cE:F
-
field_43388
private static final int field_43388- See Also:
- Mappings:
Namespace Name Mixin selector named field_43388
Lnet/minecraft/entity/passive/CamelEntity;field_43388:I
intermediary field_43388
Lnet/minecraft/class_7689;field_43388:I
official cF
Lcjn;cF:I
-
field_40149
private static final int field_40149- See Also:
- Mappings:
Namespace Name Mixin selector named field_40149
Lnet/minecraft/entity/passive/CamelEntity;field_40149:I
intermediary field_40149
Lnet/minecraft/class_7689;field_40149:I
official cG
Lcjn;cG:I
-
field_40133
private static final int field_40133- See Also:
- Mappings:
Namespace Name Mixin selector named field_40133
Lnet/minecraft/entity/passive/CamelEntity;field_40133:I
intermediary field_40133
Lnet/minecraft/class_7689;field_40133:I
official cH
Lcjn;cH:I
-
field_40134
private static final int field_40134- See Also:
- Mappings:
Namespace Name Mixin selector named field_40134
Lnet/minecraft/entity/passive/CamelEntity;field_40134:I
intermediary field_40134
Lnet/minecraft/class_7689;field_40134:I
official cI
Lcjn;cI:I
-
field_40135
private static final float field_40135- See Also:
- Mappings:
Namespace Name Mixin selector named field_40135
Lnet/minecraft/entity/passive/CamelEntity;field_40135:F
intermediary field_40135
Lnet/minecraft/class_7689;field_40135:F
official cJ
Lcjn;cJ:F
-
DASHING
- Mappings:
Namespace Name Mixin selector named DASHING
Lnet/minecraft/entity/passive/CamelEntity;DASHING:Lnet/minecraft/entity/data/TrackedData;
intermediary field_40139
Lnet/minecraft/class_7689;field_40139:Lnet/minecraft/class_2940;
official cd
Lcjn;cd:Lalc;
-
LAST_POSE_TICK
- Mappings:
Namespace Name Mixin selector named LAST_POSE_TICK
Lnet/minecraft/entity/passive/CamelEntity;LAST_POSE_TICK:Lnet/minecraft/entity/data/TrackedData;
intermediary field_40140
Lnet/minecraft/class_7689;field_40140:Lnet/minecraft/class_2940;
official ce
Lcjn;ce:Lalc;
-
SITTING_DIMENSIONS
- Mappings:
Namespace Name Mixin selector named SITTING_DIMENSIONS
Lnet/minecraft/entity/passive/CamelEntity;SITTING_DIMENSIONS:Lnet/minecraft/entity/EntityDimensions;
intermediary field_40136
Lnet/minecraft/class_7689;field_40136:Lnet/minecraft/class_4048;
official cK
Lcjn;cK:Lbvm;
-
sittingTransitionAnimationState
- Mappings:
Namespace Name Mixin selector named sittingTransitionAnimationState
Lnet/minecraft/entity/passive/CamelEntity;sittingTransitionAnimationState:Lnet/minecraft/entity/AnimationState;
intermediary field_40142
Lnet/minecraft/class_7689;field_40142:Lnet/minecraft/class_7094;
official cf
Lcjn;cf:Lbvb;
-
sittingAnimationState
- Mappings:
Namespace Name Mixin selector named sittingAnimationState
Lnet/minecraft/entity/passive/CamelEntity;sittingAnimationState:Lnet/minecraft/entity/AnimationState;
intermediary field_40734
Lnet/minecraft/class_7689;field_40734:Lnet/minecraft/class_7094;
official cg
Lcjn;cg:Lbvb;
-
standingTransitionAnimationState
- Mappings:
Namespace Name Mixin selector named standingTransitionAnimationState
Lnet/minecraft/entity/passive/CamelEntity;standingTransitionAnimationState:Lnet/minecraft/entity/AnimationState;
intermediary field_40143
Lnet/minecraft/class_7689;field_40143:Lnet/minecraft/class_7094;
official ch
Lcjn;ch:Lbvb;
-
idlingAnimationState
- Mappings:
Namespace Name Mixin selector named idlingAnimationState
Lnet/minecraft/entity/passive/CamelEntity;idlingAnimationState:Lnet/minecraft/entity/AnimationState;
intermediary field_40144
Lnet/minecraft/class_7689;field_40144:Lnet/minecraft/class_7094;
official ci
Lcjn;ci:Lbvb;
-
dashingAnimationState
- Mappings:
Namespace Name Mixin selector named dashingAnimationState
Lnet/minecraft/entity/passive/CamelEntity;dashingAnimationState:Lnet/minecraft/entity/AnimationState;
intermediary field_40145
Lnet/minecraft/class_7689;field_40145:Lnet/minecraft/class_7094;
official cj
Lcjn;cj:Lbvb;
-
dashCooldown
private int dashCooldown- Mappings:
Namespace Name Mixin selector named dashCooldown
Lnet/minecraft/entity/passive/CamelEntity;dashCooldown:I
intermediary field_40137
Lnet/minecraft/class_7689;field_40137:I
official cL
Lcjn;cL:I
-
idleAnimationCooldown
private int idleAnimationCooldown- Mappings:
Namespace Name Mixin selector named idleAnimationCooldown
Lnet/minecraft/entity/passive/CamelEntity;idleAnimationCooldown:I
intermediary field_40138
Lnet/minecraft/class_7689;field_40138:I
official cM
Lcjn;cM:I
-
-
Constructor Details
-
CamelEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
official <init>
Lbvj;<init>(Lbvq;Ldhh;)V
-
-
Method Details
-
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:
writeCustomDataToNbt
in classAbstractHorseEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbt
Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
official b
Lbvj;b(Lux;)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.
nbt
might 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:
readCustomDataFromNbt
in classAbstractHorseEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbt
Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
official a
Lbvj;a(Lux;)V
-
createCamelAttributes
- Mappings:
Namespace Name Mixin selector named createCamelAttributes
Lnet/minecraft/entity/passive/CamelEntity;createCamelAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
intermediary method_45360
Lnet/minecraft/class_7689;method_45360()Lnet/minecraft/class_5132$class_5133;
official p
Lcjn;p()Lbxm$a;
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTracker
in classAbstractHorseEntity
- API Note:
- Subclasses should override this and add to the builder any data that needs to be tracked.
- Mappings:
Namespace Name Mixin selector named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
official a
Lbvj;a(Lalg$a;)V
-
initialize
public EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData) - Overrides:
initialize
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named initialize
Lnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;)Lnet/minecraft/entity/EntityData;
intermediary method_5943
Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;)Lnet/minecraft/class_1315;
official a
Lbwh;a(Ldhy;Lbtg;Lbvp;Lbwy;)Lbwy;
-
createBrainProfile
- Overrides:
createBrainProfile
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named createBrainProfile
Lnet/minecraft/entity/LivingEntity;createBrainProfile()Lnet/minecraft/entity/ai/brain/Brain$Profile;
intermediary method_28306
Lnet/minecraft/class_1309;method_28306()Lnet/minecraft/class_4095$class_5303;
official ed
Lbwf;ed()Lbxh$b;
-
initGoals
protected void initGoals()- Overrides:
initGoals
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named initGoals
Lnet/minecraft/entity/mob/MobEntity;initGoals()V
intermediary method_5959
Lnet/minecraft/class_1308;method_5959()V
official B
Lbwh;B()V
-
deserializeBrain
- Overrides:
deserializeBrain
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named deserializeBrain
Lnet/minecraft/entity/LivingEntity;deserializeBrain(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/entity/ai/brain/Brain;
intermediary method_18867
Lnet/minecraft/class_1309;method_18867(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_4095;
official a
Lbwf;a(Lcom/mojang/serialization/Dynamic;)Lbxh;
-
getBaseDimensions
- Overrides:
getBaseDimensions
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getBaseDimensions
Lnet/minecraft/entity/LivingEntity;getBaseDimensions(Lnet/minecraft/entity/EntityPose;)Lnet/minecraft/entity/EntityDimensions;
intermediary method_55694
Lnet/minecraft/class_1309;method_55694(Lnet/minecraft/class_4050;)Lnet/minecraft/class_4048;
official e
Lbwf;e(Lbwr;)Lbvm;
-
mobTick
- Overrides:
mobTick
in classAnimalEntity
- Mappings:
Namespace Name Mixin selector named mobTick
Lnet/minecraft/entity/mob/MobEntity;mobTick(Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_5958
Lnet/minecraft/class_1308;method_5958(Lnet/minecraft/class_3218;)V
official a
Lbwh;a(Lash;)V
-
tick
public void tick()Ticks this entity.- Overrides:
tick
in classAbstractHorseEntity
- See Also:
- API Note:
- This can be overridden to add additional logics.
super.tick();
should be called in those cases. - Implementation Note:
- By default, this delegates all logics to
MobEntity.baseTick()
. - Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/entity/Entity;tick()V
intermediary method_5773
Lnet/minecraft/class_1297;method_5773()V
official h
Lbvj;h()V
-
updateAnimations
private void updateAnimations()- Mappings:
Namespace Name Mixin selector named updateAnimations
Lnet/minecraft/entity/passive/CamelEntity;updateAnimations()V
intermediary method_45356
Lnet/minecraft/class_7689;method_45356()V
official ha
Lcjn;ha()V
-
updateLimbs
protected void updateLimbs(float posDelta) - Overrides:
updateLimbs
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named updateLimbs
Lnet/minecraft/entity/LivingEntity;updateLimbs(F)V
intermediary method_48565
Lnet/minecraft/class_1309;method_48565(F)V
official B
Lbwf;B(F)V
-
travel
Allows you to do certain speed and velocity calculations. This is useful for custom vehicle behavior, or custom entity movement. This is not to be confused with AI.See vanilla examples of custom horse vehicle and flying entities.
- Overrides:
travel
in classLivingEntity
- Parameters:
movementInput
- represents the sidewaysSpeed, upwardSpeed, and forwardSpeed of the entity in that order- Mappings:
Namespace Name Mixin selector named travel
Lnet/minecraft/entity/LivingEntity;travel(Lnet/minecraft/util/math/Vec3d;)V
intermediary method_6091
Lnet/minecraft/class_1309;method_6091(Lnet/minecraft/class_243;)V
official a_
Lbwf;a_(Lfbx;)V
-
tickControlled
- Overrides:
tickControlled
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named tickControlled
Lnet/minecraft/entity/LivingEntity;tickControlled(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/Vec3d;)V
intermediary method_49481
Lnet/minecraft/class_1309;method_49481(Lnet/minecraft/class_1657;Lnet/minecraft/class_243;)V
official a
Lbwf;a(Lcpw;Lfbx;)V
-
isStationary
public boolean isStationary()- Mappings:
Namespace Name Mixin selector named isStationary
Lnet/minecraft/entity/passive/CamelEntity;isStationary()Z
intermediary method_45357
Lnet/minecraft/class_7689;method_45357()Z
official t
Lcjn;t()Z
-
getSaddledSpeed
- Overrides:
getSaddledSpeed
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named getSaddledSpeed
Lnet/minecraft/entity/LivingEntity;getSaddledSpeed(Lnet/minecraft/entity/player/PlayerEntity;)F
intermediary method_49485
Lnet/minecraft/class_1309;method_49485(Lnet/minecraft/class_1657;)F
official e
Lbwf;e(Lcpw;)F
-
getControlledRotation
- Overrides:
getControlledRotation
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named getControlledRotation
Lnet/minecraft/entity/passive/AbstractHorseEntity;getControlledRotation(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec2f;
intermediary method_49489
Lnet/minecraft/class_1496;method_49489(Lnet/minecraft/class_1309;)Lnet/minecraft/class_241;
official j
Lcka;j(Lbwf;)Lfbw;
-
getControlledMovementInput
- Overrides:
getControlledMovementInput
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named getControlledMovementInput
Lnet/minecraft/entity/LivingEntity;getControlledMovementInput(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
intermediary method_49482
Lnet/minecraft/class_1309;method_49482(Lnet/minecraft/class_1657;Lnet/minecraft/class_243;)Lnet/minecraft/class_243;
official b
Lbwf;b(Lcpw;Lfbx;)Lfbx;
-
canJump
public boolean canJump()- Specified by:
canJump
in interfaceJumpingMount
- Overrides:
canJump
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named canJump
Lnet/minecraft/entity/JumpingMount;canJump()Z
intermediary method_6153
Lnet/minecraft/class_1316;method_6153()Z
official a
Lbwp;a()Z
-
setJumpStrength
public void setJumpStrength(int strength) - Specified by:
setJumpStrength
in interfaceJumpingMount
- Overrides:
setJumpStrength
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named setJumpStrength
Lnet/minecraft/entity/JumpingMount;setJumpStrength(I)V
intermediary method_6154
Lnet/minecraft/class_1316;method_6154(I)V
official b
Lbwp;b(I)V
-
canSprintAsVehicle
public boolean canSprintAsVehicle()- Overrides:
canSprintAsVehicle
in classEntity
- Mappings:
Namespace Name Mixin selector named canSprintAsVehicle
Lnet/minecraft/entity/Entity;canSprintAsVehicle()Z
intermediary method_48155
Lnet/minecraft/class_1297;method_48155()Z
official dP
Lbvj;dP()Z
-
jump
- Overrides:
jump
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named jump
Lnet/minecraft/entity/passive/AbstractHorseEntity;jump(FLnet/minecraft/util/math/Vec3d;)V
intermediary method_45343
Lnet/minecraft/class_1496;method_45343(FLnet/minecraft/class_243;)V
official b
Lcka;b(FLfbx;)V
-
isDashing
public boolean isDashing()- Mappings:
Namespace Name Mixin selector named isDashing
Lnet/minecraft/entity/passive/CamelEntity;isDashing()Z
intermediary method_45361
Lnet/minecraft/class_7689;method_45361()Z
official x
Lcjn;x()Z
-
setDashing
public void setDashing(boolean dashing) - Mappings:
Namespace Name Mixin selector named setDashing
Lnet/minecraft/entity/passive/CamelEntity;setDashing(Z)V
intermediary method_45362
Lnet/minecraft/class_7689;method_45362(Z)V
official x
Lcjn;x(Z)V
-
startJumping
public void startJumping(int height) - Specified by:
startJumping
in interfaceJumpingMount
- Overrides:
startJumping
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named startJumping
Lnet/minecraft/entity/JumpingMount;startJumping(I)V
intermediary method_6155
Lnet/minecraft/class_1316;method_6155(I)V
official c
Lbwp;c(I)V
-
stopJumping
public void stopJumping()- Specified by:
stopJumping
in interfaceJumpingMount
- Overrides:
stopJumping
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named stopJumping
Lnet/minecraft/entity/JumpingMount;stopJumping()V
intermediary method_6156
Lnet/minecraft/class_1316;method_6156()V
official b
Lbwp;b()V
-
getJumpCooldown
public int getJumpCooldown()- Mappings:
Namespace Name Mixin selector named getJumpCooldown
Lnet/minecraft/entity/JumpingMount;getJumpCooldown()I
intermediary method_45327
Lnet/minecraft/class_1316;method_45327()I
official c
Lbwp;c()I
-
getAmbientSound
- Overrides:
getAmbientSound
in classMobEntity
- Mappings:
Namespace Name Mixin selector named getAmbientSound
Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_5994
Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
official u
Lbwh;u()Laxe;
-
getDeathSound
- Overrides:
getDeathSound
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getDeathSound
Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_6002
Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
official o_
Lbwf;o_()Laxe;
-
getHurtSound
- Overrides:
getHurtSound
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getHurtSound
Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
intermediary method_6011
Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
official e
Lbwf;e(Lbtz;)Laxe;
-
playStepSound
- Overrides:
playStepSound
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named playStepSound
Lnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
intermediary method_5712
Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
official b
Lbvj;b(Ljh;Ldxu;)V
-
isBreedingItem
- Overrides:
isBreedingItem
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named isBreedingItem
Lnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
intermediary method_6481
Lnet/minecraft/class_1429;method_6481(Lnet/minecraft/class_1799;)Z
official j
Lchw;j(Lcxo;)Z
-
interactMob
- Overrides:
interactMob
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named interactMob
Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
intermediary method_5992
Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
official b
Lbwh;b(Lcpw;Lbth;)Lbti;
-
beforeLeashTick
Called before the default leash-ticking logic. Subclasses can override this to add their own logic to it.Returns whether the default logic should run after this..
- Specified by:
beforeLeashTick
in interfaceLeashable
- Overrides:
beforeLeashTick
in classAbstractHorseEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named beforeLeashTick
Lnet/minecraft/entity/Leashable;beforeLeashTick(Lnet/minecraft/entity/Entity;F)Z
intermediary method_60956
Lnet/minecraft/class_9817;method_60956(Lnet/minecraft/class_1297;F)Z
official a
Lbwd;a(Lbvj;F)Z
-
canChangePose
public boolean canChangePose()- Mappings:
Namespace Name Mixin selector named canChangePose
Lnet/minecraft/entity/passive/CamelEntity;canChangePose()Z
intermediary method_52548
Lnet/minecraft/class_7689;method_52548()Z
official go
Lcjn;go()Z
-
receiveFood
- Overrides:
receiveFood
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named receiveFood
Lnet/minecraft/entity/passive/AbstractHorseEntity;receiveFood(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Z
intermediary method_6742
Lnet/minecraft/class_1496;method_6742(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Z
official a
Lcka;a(Lcpw;Lcxo;)Z
-
shouldAmbientStand
protected boolean shouldAmbientStand()- Overrides:
shouldAmbientStand
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named shouldAmbientStand
Lnet/minecraft/entity/passive/AbstractHorseEntity;shouldAmbientStand()Z
intermediary method_45349
Lnet/minecraft/class_1496;method_45349()Z
official gp
Lcka;gp()Z
-
canBreedWith
- Overrides:
canBreedWith
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named canBreedWith
Lnet/minecraft/entity/passive/AnimalEntity;canBreedWith(Lnet/minecraft/entity/passive/AnimalEntity;)Z
intermediary method_6474
Lnet/minecraft/class_1429;method_6474(Lnet/minecraft/class_1429;)Z
official a
Lchw;a(Lchw;)Z
-
createChild
@Nullable public @Nullable CamelEntity createChild(ServerWorld serverWorld, PassiveEntity passiveEntity) - Overrides:
createChild
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named createChild
Lnet/minecraft/entity/passive/CamelEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/CamelEntity;
intermediary method_45347
Lnet/minecraft/class_7689;method_45347(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_7689;
official b
Lcjn;b(Lash;Lbva;)Lcjn;
-
getEatSound
- Overrides:
getEatSound
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named getEatSound
Lnet/minecraft/entity/passive/AbstractHorseEntity;getEatSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_28368
Lnet/minecraft/class_1496;method_28368()Lnet/minecraft/class_3414;
official gq
Lcka;gq()Laxe;
-
applyDamage
- Overrides:
applyDamage
in classAnimalEntity
- Mappings:
Namespace Name Mixin selector named applyDamage
Lnet/minecraft/entity/LivingEntity;applyDamage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)V
intermediary method_6074
Lnet/minecraft/class_1309;method_6074(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)V
official b
Lbwf;b(Lash;Lbtz;F)V
-
getPassengerAttachmentPos
protected Vec3d getPassengerAttachmentPos(Entity passenger, EntityDimensions dimensions, float scaleFactor) - Overrides:
getPassengerAttachmentPos
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named getPassengerAttachmentPos
Lnet/minecraft/entity/Entity;getPassengerAttachmentPos(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EntityDimensions;F)Lnet/minecraft/util/math/Vec3d;
intermediary method_52533
Lnet/minecraft/class_1297;method_52533(Lnet/minecraft/class_1297;Lnet/minecraft/class_4048;F)Lnet/minecraft/class_243;
official a
Lbvj;a(Lbvj;Lbvm;F)Lfbx;
-
getScaleFactor
public float getScaleFactor()- Overrides:
getScaleFactor
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getScaleFactor
Lnet/minecraft/entity/LivingEntity;getScaleFactor()F
intermediary method_17825
Lnet/minecraft/class_1309;method_17825()F
official ej
Lbwf;ej()F
-
getPassengerAttachmentY
private double getPassengerAttachmentY(boolean primaryPassenger, float tickDelta, EntityDimensions dimensions, float scaleFactor) - Mappings:
Namespace Name Mixin selector named getPassengerAttachmentY
Lnet/minecraft/entity/passive/CamelEntity;getPassengerAttachmentY(ZFLnet/minecraft/entity/EntityDimensions;F)D
intermediary method_45346
Lnet/minecraft/class_7689;method_45346(ZFLnet/minecraft/class_4048;F)D
official a
Lcjn;a(ZFLbvm;F)D
-
getLeashOffset
- Overrides:
getLeashOffset
in classEntity
- Mappings:
Namespace Name Mixin selector named getLeashOffset
Lnet/minecraft/entity/Entity;getLeashOffset(F)Lnet/minecraft/util/math/Vec3d;
intermediary method_45321
Lnet/minecraft/class_1297;method_45321(F)Lnet/minecraft/class_243;
official s
Lbvj;s(F)Lfbx;
-
getMaxHeadRotation
public int getMaxHeadRotation()Returns the maximum degrees which the head yaw can differ from the body yaw.This is used by the body control.
It can return from
1
for entities that can hardly rotate their head, like axolotls or dolphins, or180
for entities that can freely rotate their head, like shulkers. The default return value is75
.- Overrides:
getMaxHeadRotation
in classMobEntity
- Returns:
- the maximum degrees which the head yaw can differ from the body yaw
- Mappings:
Namespace Name Mixin selector named getMaxHeadRotation
Lnet/minecraft/entity/mob/MobEntity;getMaxHeadRotation()I
intermediary method_5986
Lnet/minecraft/class_1308;method_5986()I
official aa
Lbwh;aa()I
-
canAddPassenger
Returns whetherentity
can ride this entity.Returning
false
causes other entities to be unable to ride this entity. For example,BoatEntity
uses this to restrict how many passengers can ride the same boat (2 for normal, 1 for chest boat).This is the opposite of
Entity.canStartRiding(net.minecraft.entity.Entity)
.- Overrides:
canAddPassenger
in classEntity
- Returns:
- whether
entity
can ride this entity - See Also:
- Mappings:
Namespace Name Mixin selector named canAddPassenger
Lnet/minecraft/entity/Entity;canAddPassenger(Lnet/minecraft/entity/Entity;)Z
intermediary method_5818
Lnet/minecraft/class_1297;method_5818(Lnet/minecraft/class_1297;)Z
official r
Lbvj;r(Lbvj;)Z
-
sendAiDebugData
protected void sendAiDebugData()- Overrides:
sendAiDebugData
in classMobEntity
- Mappings:
Namespace Name Mixin selector named sendAiDebugData
Lnet/minecraft/entity/mob/MobEntity;sendAiDebugData()V
intermediary method_18409
Lnet/minecraft/class_1308;method_18409()V
official Y
Lbwh;Y()V
-
isSitting
public boolean isSitting()- Mappings:
Namespace Name Mixin selector named isSitting
Lnet/minecraft/entity/passive/CamelEntity;isSitting()Z
intermediary method_45350
Lnet/minecraft/class_7689;method_45350()Z
official gr
Lcjn;gr()Z
-
shouldUpdateSittingAnimations
public boolean shouldUpdateSittingAnimations()- Mappings:
Namespace Name Mixin selector named shouldUpdateSittingAnimations
Lnet/minecraft/entity/passive/CamelEntity;shouldUpdateSittingAnimations()Z
intermediary method_48573
Lnet/minecraft/class_7689;method_48573()Z
official gs
Lcjn;gs()Z
-
isChangingPose
public boolean isChangingPose()- Mappings:
Namespace Name Mixin selector named isChangingPose
Lnet/minecraft/entity/passive/CamelEntity;isChangingPose()Z
intermediary method_45351
Lnet/minecraft/class_7689;method_45351()Z
official gA
Lcjn;gA()Z
-
shouldPlaySittingTransitionAnimation
private boolean shouldPlaySittingTransitionAnimation()- Mappings:
Namespace Name Mixin selector named shouldPlaySittingTransitionAnimation
Lnet/minecraft/entity/passive/CamelEntity;shouldPlaySittingTransitionAnimation()Z
intermediary method_46398
Lnet/minecraft/class_7689;method_46398()Z
official hb
Lcjn;hb()Z
-
startSitting
public void startSitting()- Mappings:
Namespace Name Mixin selector named startSitting
Lnet/minecraft/entity/passive/CamelEntity;startSitting()V
intermediary method_45352
Lnet/minecraft/class_7689;method_45352()V
official gB
Lcjn;gB()V
-
startStanding
public void startStanding()- Mappings:
Namespace Name Mixin selector named startStanding
Lnet/minecraft/entity/passive/CamelEntity;startStanding()V
intermediary method_45353
Lnet/minecraft/class_7689;method_45353()V
official gC
Lcjn;gC()V
-
setStanding
public void setStanding()- Mappings:
Namespace Name Mixin selector named setStanding
Lnet/minecraft/entity/passive/CamelEntity;setStanding()V
intermediary method_45354
Lnet/minecraft/class_7689;method_45354()V
official gD
Lcjn;gD()V
-
setLastPoseTick
public void setLastPoseTick(long lastPoseTick) - Mappings:
Namespace Name Mixin selector named setLastPoseTick
Lnet/minecraft/entity/passive/CamelEntity;setLastPoseTick(J)V
intermediary method_45344
Lnet/minecraft/class_7689;method_45344(J)V
official a
Lcjn;a(J)V
-
initLastPoseTick
private void initLastPoseTick(long time) - Mappings:
Namespace Name Mixin selector named initLastPoseTick
Lnet/minecraft/entity/passive/CamelEntity;initLastPoseTick(J)V
intermediary method_48160
Lnet/minecraft/class_7689;method_48160(J)V
official b
Lcjn;b(J)V
-
getLastPoseTickDelta
public long getLastPoseTickDelta()- Mappings:
Namespace Name Mixin selector named getLastPoseTickDelta
Lnet/minecraft/entity/passive/CamelEntity;getLastPoseTickDelta()J
intermediary method_45355
Lnet/minecraft/class_7689;method_45355()J
official gE
Lcjn;gE()J
-
getSaddleSound
- Mappings:
Namespace Name Mixin selector named getSaddleSound
Lnet/minecraft/entity/Saddleable;getSaddleSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_45328
Lnet/minecraft/class_5146;method_45328()Lnet/minecraft/class_3414;
official ac_
Lbwv;ac_()Laxe;
-
onTrackedDataSet
Called on the client when the tracked data is set.This can be overridden to refresh other fields when the tracked data is set or changed.
- Specified by:
onTrackedDataSet
in interfaceDataTracked
- Overrides:
onTrackedDataSet
in classPassiveEntity
- Mappings:
Namespace Name Mixin selector named onTrackedDataSet
Lnet/minecraft/entity/data/DataTracked;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
intermediary method_5674
Lnet/minecraft/class_9221;method_5674(Lnet/minecraft/class_2940;)V
official a
Lalf;a(Lalc;)V
-
isTame
public boolean isTame()- Overrides:
isTame
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named isTame
Lnet/minecraft/entity/passive/AbstractHorseEntity;isTame()Z
intermediary method_6727
Lnet/minecraft/class_1496;method_6727()Z
official gF
Lcka;gF()Z
-
openInventory
- Specified by:
openInventory
in interfaceRideableInventory
- Overrides:
openInventory
in classAbstractHorseEntity
- Mappings:
Namespace Name Mixin selector named openInventory
Lnet/minecraft/entity/RideableInventory;openInventory(Lnet/minecraft/entity/player/PlayerEntity;)V
intermediary method_6722
Lnet/minecraft/class_7248;method_6722(Lnet/minecraft/class_1657;)V
official b
Lbvy;b(Lcpw;)V
-
createBodyControl
- Overrides:
createBodyControl
in classMobEntity
- Mappings:
Namespace Name Mixin selector named createBodyControl
Lnet/minecraft/entity/mob/MobEntity;createBodyControl()Lnet/minecraft/entity/ai/control/BodyControl;
intermediary method_5963
Lnet/minecraft/class_1308;method_5963()Lnet/minecraft/class_1330;
official G
Lbwh;G()Lccb;
-