public abstract class HorseBaseEntity extends AnimalEntity implements InventoryChangedListener, JumpingMount, Saddleable
PassiveEntity.PassiveData
Entity.PositionUpdater
Modifier and Type | Field and Description |
---|---|
private float |
angryAnimationProgress |
private int |
angryTicks |
private float |
eatingAnimationProgress |
private float |
eatingGrassAnimationProgress |
private int |
eatingGrassTicks |
private int |
eatingTicks |
private static Ingredient |
field_25374 |
int |
field_6958 |
private static TrackedData<Byte> |
HORSE_FLAGS |
protected boolean |
inAir |
private static Predicate<LivingEntity> |
IS_BRED_HORSE |
protected SimpleInventory |
items |
private boolean |
jumping |
protected float |
jumpStrength |
private float |
lastAngryAnimationProgress |
private float |
lastEatingAnimationProgress |
private float |
lastEatingGrassAnimationProgress |
private static TrackedData<Optional<UUID>> |
OWNER_UUID |
private static TargetPredicate |
PARENT_HORSE_PREDICATE |
protected boolean |
playExtraHorseSounds |
protected int |
soundTicks |
int |
tailWagTicks |
protected int |
temper |
breedingAge, forcedAge, happyTicksRemaining
ambientSoundChance, armorDropChances, experiencePoints, goalSelector, handDropChances, jumpControl, lookControl, moveControl, navigation, targetSelector
activeItemStack, attackingPlayer, bodyTrackingIncrements, bodyYaw, brain, dead, deathTime, defaultMaxHealth, despawnCounter, field_6215, flyingSpeed, forwardSpeed, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, knockbackVelocity, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, lastLimbDistance, limbAngle, limbDistance, LIVING_FLAGS, lookDirection, maxHurtTime, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideTicks, roll, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed
age, chunkX, chunkY, chunkZ, dataTracker, distanceTraveled, fallDistance, field_25599, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, ridingCooldown, stepHeight, submergedInWater, teleporting, timeUntilRegen, touchingWater, updateNeeded, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, world, yaw
DUMMY
Modifier | Constructor and Description |
---|---|
protected |
HorseBaseEntity(EntityType<? extends HorseBaseEntity> type,
World world) |
Modifier and Type | Method and Description |
---|---|
int |
addTemper(int difference) |
boolean |
bondWithPlayer(PlayerEntity player) |
boolean |
canBeControlledByRider() |
boolean |
canBeSaddled() |
protected boolean |
canBreed() |
boolean |
canBreedWith(AnimalEntity other) |
boolean |
canJump() |
protected int |
computeFallDamage(float fallDistance,
float damageMultiplier) |
static DefaultAttributeContainer.Builder |
createBaseHorseAttributes() |
PassiveEntity |
createChild(ServerWorld world,
PassiveEntity entity) |
protected void |
dropInventory() |
boolean |
eatsGrass() |
boolean |
equip(int slot,
ItemStack item) |
protected float |
getActiveEyeHeight(EntityPose pose,
EntityDimensions dimensions) |
protected SoundEvent |
getAmbientSound() |
float |
getAngryAnimationProgress(float tickDelta) |
protected SoundEvent |
getAngrySound() |
protected float |
getChildHealthBonus() |
protected double |
getChildJumpStrengthBonus() |
protected double |
getChildMovementSpeedBonus() |
protected SoundEvent |
getDeathSound() |
float |
getEatingAnimationProgress(float tickDelta) |
float |
getEatingGrassAnimationProgress(float tickDelta) |
protected SoundEvent |
getEatSound() |
protected boolean |
getHorseFlag(int bitmask) |
protected SoundEvent |
getHurtSound(DamageSource source) |
protected int |
getInventorySize() |
double |
getJumpStrength() |
int |
getLimitPerChunk() |
int |
getMaxTemper() |
int |
getMinAmbientSoundDelay() |
UUID |
getOwnerUuid() |
Entity |
getPrimaryPassenger() |
protected float |
getSoundVolume() |
int |
getTemper() |
boolean |
handleFallDamage(float fallDistance,
float damageMultiplier) |
void |
handleStatus(byte status) |
boolean |
hasArmorInSlot()
Whether this horse already has an item stack in its horse armor slot.
|
boolean |
hasArmorSlot()
Whether this horse has a slot for custom equipment besides a saddle.
|
protected void |
initAttributes() |
protected void |
initCustomGoals() |
protected void |
initDataTracker() |
protected void |
initGoals() |
EntityData |
initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
EntityData entityData,
CompoundTag entityTag) |
boolean |
isAngry() |
boolean |
isBred() |
boolean |
isBreedingItem(ItemStack stack) |
boolean |
isClimbing() |
boolean |
isEatingGrass() |
boolean |
isHorseArmor(ItemStack item)
Whether the given item stack is valid for this horse's armor slot.
|
protected boolean |
isImmobile() |
boolean |
isInAir() |
boolean |
isPushable() |
boolean |
isSaddled() |
boolean |
isTame() |
private Vec3d |
method_27930(Vec3d vec3d,
LivingEntity livingEntity) |
ActionResult |
method_30009(PlayerEntity playerEntity,
ItemStack itemStack) |
protected void |
onChestedStatusChanged() |
void |
onInventoryChanged(Inventory sender) |
void |
openInventory(PlayerEntity player) |
void |
playAngrySound() |
private void |
playEatingAnimation() |
protected void |
playJumpSound() |
protected void |
playStepSound(BlockPos pos,
BlockState state) |
protected void |
playWalkSound(BlockSoundGroup group) |
protected void |
putPlayerOnBack(PlayerEntity player) |
void |
readCustomDataFromTag(CompoundTag tag) |
protected boolean |
receiveFood(PlayerEntity player,
ItemStack item) |
void |
saddle(SoundCategory sound) |
void |
setAngry(boolean angry) |
void |
setBred(boolean bred) |
protected void |
setChildAttributes(PassiveEntity mate,
HorseBaseEntity child) |
private void |
setEating() |
void |
setEatingGrass(boolean eatingGrass) |
protected void |
setHorseFlag(int bitmask,
boolean flag) |
void |
setInAir(boolean inAir) |
void |
setJumpStrength(int strength) |
void |
setOwnerUuid(UUID uuid) |
void |
setTame(boolean tame) |
void |
setTemper(int temper) |
protected void |
spawnPlayerReactionParticles(boolean positive) |
void |
startJumping(int height) |
void |
stopJumping() |
void |
tick() |
void |
tickMovement() |
void |
travel(Vec3d movementInput) |
private void |
updateAnger() |
protected void |
updateForLeashLength(float leashLength) |
Vec3d |
updatePassengerForDismount(LivingEntity passenger) |
void |
updatePassengerPosition(Entity passenger) |
protected void |
updateSaddle() |
private void |
wagTail() |
protected void |
walkToParent() |
void |
writeCustomDataToTag(CompoundTag tag) |
breed, canEat, canImmediatelyDespawn, damage, eat, getCurrentExperience, getHeightOffset, getLoveTicks, getLovingPlayer, getPathfindingFavor, interactMob, isInLove, isValidNaturalSpawn, lovePlayer, mobTick, resetLoveTicks, setLoveTicks
getBreedingAge, growUp, growUp, isBaby, isReadyToBreed, onGrowUp, onTrackedDataSet, setBaby, setBreedingAge
canSpawn, getPathfindingFavor, getRunFromLeashSpeed, isNavigating, updateLeash
attachLeash, baseTick, canBeLeashedBy, canEquip, canEquipmentSlotContain, canGather, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canTarget, canTarget, canUseRangedWeapon, checkDespawn, createBodyControl, createMobAttributes, createNavigation, detachLeash, dropEquipment, dropLoot, equipLootStack, equipStack, getArmorItems, getBodyYawSpeed, getDropChance, getEquipmentForSlot, getEquippedStack, getHoldingEntity, getItemsHand, getJumpControl, getLookControl, getLookPitchSpeed, getLookYawSpeed, getLootContextBuilder, getLootTable, getLootTableId, getMainArm, getMoveControl, getNavigation, getPathfindingPenalty, getPositionTarget, getPositionTargetRange, getPreferredEquipmentSlot, getSafeFallDistance, getTarget, getVisibilityCache, hasPositionTarget, initEquipment, interact, isAffectedByDaylight, isAiDisabled, isAttacking, isDisallowedInPeaceful, isInWalkTargetRange, isInWalkTargetRange, isLeashed, isLeftHanded, isLogicalSideForUpdatingMovement, isPersistent, lookAtEntity, loot, method_29243, method_29244, method_30076, method_30758, method_30759, movesIndependently, onEatingGrass, onPlayerSpawnedChild, playAmbientSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, sendAiDebugData, setAiDisabled, setAttacking, setCanPickUpLoot, setEquipmentDropChance, setForwardSpeed, setHoldingEntityId, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, startRiding, swimUpward, tickNewAi, tryAttack, tryEquip, turnHead, updateDropChances, updateEnchantments, updateGoalControls
addSoulSpeedBoostIfNeeded, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyEnchantmentsToDamage, applyMovementEffects, applyStatusEffect, attackLivingEntity, canBeRiddenInWater, canBreatheInWater, canDropLootAndXp, canHaveStatusEffect, canSee, canWalkOnFluid, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, collides, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, createSpawnPacket, damageArmor, damageShield, deserializeBrain, destroy, displaySoulSpeedEffects, drop, dropXp, eatFood, endCombat, enterCombat, fall, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getArrowType, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseMovementSpeedMultiplier, getBlockState, getBoundingBox, getBrain, getClimbingPos, getDamageTracker, getDespawnCounter, getDimensions, getDrinkSound, getEatSound, getEyeHeight, getFallSound, getGroup, getHandSwingProgress, getHeadYaw, getHealth, getItemUseTime, getItemUseTimeLeft, getJumpVelocity, getLastAttackedTime, getLastAttackTime, getLeaningPitch, getMainHandStack, getMaxHealth, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffHandStack, getPoses, getPrimeAdversary, getRandom, getRecentDamageSource, getRoll, getScaleFactor, getSleepingDirection, getSleepingPosition, getSoundPitch, getStackInHand, getStatusEffect, getStatusEffects, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getVisibilityBoundingBox, getYaw, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isBlocking, isDead, isFallFlying, isHolding, isHolding, isHoldingOntoLadder, isInsideWall, isInSwimmingPose, isMobOrPlayer, isOnSoulSpeedBlock, isSleeping, isTarget, isUndead, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lookAt, markEffectsDirty, method_26317, method_26318, method_29242, method_29499, method_29500, method_29920, method_30633, method_31079, onAttacking, onDeath, onEquipStack, onKilledBy, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, playBlockFallSound, pushAway, pushAwayFrom, removeSoulSpeedBoost, removeStatusEffect, removeStatusEffectInternal, scheduleVelocityUpdate, sendEquipmentBreakStatus, sendPickup, sendToolBreakStatus, setAbsorptionAmount, setAttacker, setAttacking, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setOnGround, setRiptideTicks, setSleepingPosition, setSprinting, setStackInHand, setStingerCount, setStuckArrowCount, setYaw, shouldAlwaysDropXp, shouldDisplaySoulSpeedEffects, shouldDropLoot, shouldRenderName, sleep, spawnConsumptionEffects, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickCramming, tickHandSwing, tickRiding, tickRiptide, tickStatusEffects, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUp
addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, afterSpawn, applyMirror, applyRotation, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeSpectated, canClimb, canExplosionDestroyBlock, canFly, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, collidesWith, copyFrom, copyPositionAndRotation, dealDamage, detach, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, entityDataRequiresOperator, equals, extinguish, fromTag, getAir, getBlockPos, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityId, getEntityName, getEntityWorld, getEyeHeight, getEyeY, getFireTicks, getFlag, getFluidHeight, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getMaxAir, getMaxNetherPortalTime, getMountedHeightOffset, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPos, getPose, getRandomBodyY, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, getSwimSound, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getWidth, getX, getY, getZ, handleAttack, hasCustomName, hashCode, hasNetherPortalCooldown, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasVehicle, hasWings, interactAt, isAttackable, isChunkPosUpdateRequested, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isOnFire, isOnGround, isPartOf, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, method_29239, method_29241, method_29919, method_30330, method_30632, method_30634, method_30950, method_30951, method_31166, move, moveToBoundingBoxCenter, moveToWorld, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onPlayerCollision, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playFlySound, playSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removePassenger, removeScoreboardTag, requestTeleport, resetNetherPortalCooldown, resetPosition, saveSelfToTag, saveToTag, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setGlowing, setInNetherPortal, setInvisible, setInvulnerable, setNoGravity, setOnFireFor, setOnFireFromLava, setPos, setPose, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRender, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, streamPassengersRecursively, teleport, teleportRequested, tickNetherPortal, tickNetherPortalCooldown, toListTag, toListTag, toString, toTag, updateKilledAdvancementCriterion, updateMovementInFluid, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedPosition, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide
private static final Predicate<LivingEntity> IS_BRED_HORSE
private static final TargetPredicate PARENT_HORSE_PREDICATE
private static final Ingredient field_25374
private static final TrackedData<Byte> HORSE_FLAGS
private static final TrackedData<Optional<UUID>> OWNER_UUID
private int eatingGrassTicks
private int eatingTicks
private int angryTicks
public int tailWagTicks
public int field_6958
protected boolean inAir
protected SimpleInventory items
protected int temper
protected float jumpStrength
private boolean jumping
private float eatingGrassAnimationProgress
private float lastEatingGrassAnimationProgress
private float angryAnimationProgress
private float lastAngryAnimationProgress
private float eatingAnimationProgress
private float lastEatingAnimationProgress
protected boolean playExtraHorseSounds
protected int soundTicks
protected HorseBaseEntity(EntityType<? extends HorseBaseEntity> type, World world)
protected void initCustomGoals()
protected void initDataTracker()
initDataTracker
in class PassiveEntity
protected boolean getHorseFlag(int bitmask)
protected void setHorseFlag(int bitmask, boolean flag)
public boolean isTame()
public boolean isInAir()
public void setTame(boolean tame)
public void setInAir(boolean inAir)
protected void updateForLeashLength(float leashLength)
updateForLeashLength
in class PathAwareEntity
public boolean isEatingGrass()
public boolean isAngry()
public boolean isBred()
public void setBred(boolean bred)
public boolean canBeSaddled()
canBeSaddled
in interface Saddleable
public void saddle(@Nullable SoundCategory sound)
saddle
in interface Saddleable
public boolean isSaddled()
isSaddled
in interface Saddleable
public int getTemper()
public void setTemper(int temper)
public int addTemper(int difference)
public boolean isPushable()
isPushable
in class LivingEntity
private void playEatingAnimation()
public boolean handleFallDamage(float fallDistance, float damageMultiplier)
handleFallDamage
in class LivingEntity
protected int computeFallDamage(float fallDistance, float damageMultiplier)
computeFallDamage
in class LivingEntity
protected int getInventorySize()
protected void onChestedStatusChanged()
protected void updateSaddle()
public void onInventoryChanged(Inventory sender)
onInventoryChanged
in interface InventoryChangedListener
public double getJumpStrength()
@Nullable protected SoundEvent getEatSound()
@Nullable protected SoundEvent getDeathSound()
getDeathSound
in class LivingEntity
@Nullable protected SoundEvent getHurtSound(DamageSource source)
getHurtSound
in class LivingEntity
@Nullable protected SoundEvent getAmbientSound()
getAmbientSound
in class MobEntity
@Nullable protected SoundEvent getAngrySound()
protected void playStepSound(BlockPos pos, BlockState state)
playStepSound
in class Entity
protected void playWalkSound(BlockSoundGroup group)
public static DefaultAttributeContainer.Builder createBaseHorseAttributes()
public int getLimitPerChunk()
getLimitPerChunk
in class MobEntity
public int getMaxTemper()
protected float getSoundVolume()
getSoundVolume
in class LivingEntity
public int getMinAmbientSoundDelay()
getMinAmbientSoundDelay
in class AnimalEntity
public void openInventory(PlayerEntity player)
public ActionResult method_30009(PlayerEntity playerEntity, ItemStack itemStack)
protected boolean receiveFood(PlayerEntity player, ItemStack item)
protected void putPlayerOnBack(PlayerEntity player)
protected boolean isImmobile()
isImmobile
in class LivingEntity
public boolean isBreedingItem(ItemStack stack)
isBreedingItem
in class AnimalEntity
private void wagTail()
protected void dropInventory()
dropInventory
in class LivingEntity
public void tickMovement()
tickMovement
in class AnimalEntity
protected void walkToParent()
public boolean eatsGrass()
private void setEating()
public void setEatingGrass(boolean eatingGrass)
public void setAngry(boolean angry)
private void updateAnger()
public void playAngrySound()
public boolean bondWithPlayer(PlayerEntity player)
public void travel(Vec3d movementInput)
travel
in class LivingEntity
protected void playJumpSound()
public void writeCustomDataToTag(CompoundTag tag)
writeCustomDataToTag
in class AnimalEntity
public void readCustomDataFromTag(CompoundTag tag)
readCustomDataFromTag
in class AnimalEntity
public boolean canBreedWith(AnimalEntity other)
canBreedWith
in class AnimalEntity
protected boolean canBreed()
@Nullable public PassiveEntity createChild(ServerWorld world, PassiveEntity entity)
createChild
in class PassiveEntity
protected void setChildAttributes(PassiveEntity mate, HorseBaseEntity child)
public boolean canBeControlledByRider()
canBeControlledByRider
in class MobEntity
@Environment(value=CLIENT) public float getEatingGrassAnimationProgress(float tickDelta)
@Environment(value=CLIENT) public float getAngryAnimationProgress(float tickDelta)
@Environment(value=CLIENT) public float getEatingAnimationProgress(float tickDelta)
@Environment(value=CLIENT) public void setJumpStrength(int strength)
setJumpStrength
in interface JumpingMount
public boolean canJump()
canJump
in interface JumpingMount
public void startJumping(int height)
startJumping
in interface JumpingMount
public void stopJumping()
stopJumping
in interface JumpingMount
@Environment(value=CLIENT) protected void spawnPlayerReactionParticles(boolean positive)
@Environment(value=CLIENT) public void handleStatus(byte status)
handleStatus
in class AnimalEntity
public void updatePassengerPosition(Entity passenger)
updatePassengerPosition
in class Entity
protected float getChildHealthBonus()
protected double getChildJumpStrengthBonus()
protected double getChildMovementSpeedBonus()
public boolean isClimbing()
isClimbing
in class LivingEntity
protected float getActiveEyeHeight(EntityPose pose, EntityDimensions dimensions)
getActiveEyeHeight
in class LivingEntity
public boolean hasArmorSlot()
In the item slot argument type, the slot is referred to as
horse.armor
. In this horse's screen, it appears in the middle of
the left side, and right below the saddle slot if this horse has a saddle
slot.
This is used by horse armors and llama carpets, but can be refitted to any purpose.
public boolean hasArmorInSlot()
hasArmorSlot()
public boolean isHorseArmor(ItemStack item)
hasArmorSlot()
@Nullable public Entity getPrimaryPassenger()
getPrimaryPassenger
in class Entity
@Nullable private Vec3d method_27930(Vec3d vec3d, LivingEntity livingEntity)
public Vec3d updatePassengerForDismount(LivingEntity passenger)
updatePassengerForDismount
in class Entity
protected void initAttributes()
@Nullable public EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable CompoundTag entityTag)
initialize
in class PassiveEntity