Package net.minecraft.entity.passive
Class HorseBaseEntity
- All Implemented Interfaces:
class_5568,JumpingMount,Saddleable,InventoryChangedListener,CommandOutput,Nameable
- Direct Known Subclasses:
AbstractDonkeyEntity,HorseEntity,SkeletonHorseEntity,ZombieHorseEntity
public abstract class HorseBaseEntity extends AnimalEntity implements InventoryChangedListener, JumpingMount, Saddleable
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.passive.PassiveEntity
PassiveEntity.PassiveDataNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.PositionUpdater, Entity.RemovalReason -
Field Summary
Fields Modifier and Type Field Description private floatangryAnimationProgressprivate intangryTicksprivate floateatingAnimationProgressprivate floateatingGrassAnimationProgressprivate inteatingGrassTicksprivate inteatingTicksprivate static Ingredientfield_25374intfield_6958private static TrackedData<Byte>HORSE_FLAGSprotected booleaninAirprivate static Predicate<LivingEntity>IS_BRED_HORSEprotected SimpleInventoryitemsprivate booleanjumpingprotected floatjumpStrengthprivate floatlastAngryAnimationProgressprivate floatlastEatingAnimationProgressprivate floatlastEatingGrassAnimationProgressprivate static TrackedData<Optional<UUID>>OWNER_UUIDprivate static TargetPredicatePARENT_HORSE_PREDICATEprotected booleanplayExtraHorseSoundsprotected intsoundTicksinttailWagTicksprotected inttemperFields inherited from class net.minecraft.entity.passive.PassiveEntity
breedingAge, forcedAge, happyTicksRemainingFields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, experiencePoints, goalSelector, handDropChances, jumpControl, lookControl, moveControl, navigation, targetSelectorFields inherited from class net.minecraft.entity.LivingEntity
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, upwardSpeedFields inherited from class net.minecraft.entity.Entity
age, dataTracker, distanceTraveled, fallDistance, field_25599, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, inPowderSnow, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, ridingCooldown, stepHeight, submergedInWater, timeUntilRegen, touchingWater, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, world, yawFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY -
Constructor Summary
Constructors Modifier Constructor Description protectedHorseBaseEntity(EntityType<? extends HorseBaseEntity> type, World world) -
Method Summary
Modifier and Type Method Description intaddTemper(int difference)booleanbondWithPlayer(PlayerEntity player)booleancanBeControlledByRider()booleancanBeSaddled()protected booleancanBreed()booleancanBreedWith(AnimalEntity other)booleancanJump()protected intcomputeFallDamage(float fallDistance, float damageMultiplier)static DefaultAttributeContainer.BuildercreateBaseHorseAttributes()PassiveEntitycreateChild(ServerWorld world, PassiveEntity entity)protected voiddropInventory()booleaneatsGrass()protected floatgetActiveEyeHeight(EntityPose pose, EntityDimensions dimensions)protected SoundEventgetAmbientSound()floatgetAngryAnimationProgress(float tickDelta)protected SoundEventgetAngrySound()protected floatgetChildHealthBonus()protected doublegetChildJumpStrengthBonus()protected doublegetChildMovementSpeedBonus()protected SoundEventgetDeathSound()floatgetEatingAnimationProgress(float tickDelta)floatgetEatingGrassAnimationProgress(float tickDelta)protected SoundEventgetEatSound()protected booleangetHorseFlag(int bitmask)protected SoundEventgetHurtSound(DamageSource source)protected intgetInventorySize()doublegetJumpStrength()intgetLimitPerChunk()intgetMaxTemper()intgetMinAmbientSoundDelay()UUIDgetOwnerUuid()EntitygetPrimaryPassenger()protected floatgetSoundVolume()intgetTemper()booleanhandleFallDamage(float fallDistance, float damageMultiplier)voidhandleStatus(byte status)booleanhasArmorInSlot()Whether this horse already has an item stack in its horse armor slot.booleanhasArmorSlot()Whether this horse has a slot for custom equipment besides a saddle.protected voidinitAttributes()protected voidinitCustomGoals()protected voidinitDataTracker()protected voidinitGoals()EntityDatainitialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, EntityData entityData, CompoundTag entityTag)booleanisAngry()booleanisBred()booleanisBreedingItem(ItemStack stack)booleanisClimbing()booleanisEatingGrass()booleanisHorseArmor(ItemStack item)Whether the given item stack is valid for this horse's armor slot.protected booleanisImmobile()booleanisInAir()booleanisPushable()booleanisSaddled()booleanisTame()private Vec3dmethod_27930(Vec3d vec3d, LivingEntity livingEntity)ActionResultmethod_30009(PlayerEntity playerEntity, ItemStack itemStack)class_5630method_32318(int int2)private class_5630method_32335(int int2, Predicate<ItemStack> predicate)protected voidonChestedStatusChanged()voidonInventoryChanged(Inventory sender)voidopenInventory(PlayerEntity player)voidplayAngrySound()private voidplayEatingAnimation()protected voidplayJumpSound()protected voidplayStepSound(BlockPos pos, BlockState state)protected voidplayWalkSound(BlockSoundGroup group)protected voidputPlayerOnBack(PlayerEntity player)voidreadCustomDataFromTag(CompoundTag tag)protected booleanreceiveFood(PlayerEntity player, ItemStack item)voidsaddle(SoundCategory sound)voidsetAngry(boolean angry)voidsetBred(boolean bred)protected voidsetChildAttributes(PassiveEntity mate, HorseBaseEntity child)private voidsetEating()voidsetEatingGrass(boolean eatingGrass)protected voidsetHorseFlag(int bitmask, boolean flag)voidsetInAir(boolean inAir)voidsetJumpStrength(int strength)voidsetOwnerUuid(UUID uuid)voidsetTame(boolean tame)voidsetTemper(int temper)protected voidspawnPlayerReactionParticles(boolean positive)voidstartJumping(int height)voidstopJumping()voidtick()voidtickMovement()voidtravel(Vec3d movementInput)private voidupdateAnger()protected voidupdateForLeashLength(float leashLength)Vec3dupdatePassengerForDismount(LivingEntity passenger)voidupdatePassengerPosition(Entity passenger)protected voidupdateSaddle()private voidwagTail()protected voidwalkToParent()voidwriteCustomDataToTag(CompoundTag tag)Methods inherited from class net.minecraft.entity.passive.AnimalEntity
breed, canEat, canImmediatelyDespawn, damage, eat, getCurrentExperience, getHeightOffset, getLoveTicks, getLovingPlayer, getPathfindingFavor, interactMob, isInLove, isValidNaturalSpawn, lovePlayer, mobTick, resetLoveTicks, setLoveTicksMethods inherited from class net.minecraft.entity.passive.PassiveEntity
getBreedingAge, growUp, growUp, isBaby, isReadyToBreed, onGrowUp, onTrackedDataSet, setBaby, setBreedingAgeMethods inherited from class net.minecraft.entity.mob.PathAwareEntity
canSpawn, getPathfindingFavor, getRunFromLeashSpeed, isNavigating, updateLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
attachLeash, baseTick, canBeLeashedBy, canEquip, 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, getPickBlockStack, getPositionTarget, getPositionTargetRange, 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, method_33191, 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, updateGoalControlsMethods inherited from class net.minecraft.entity.LivingEntity
addSoulSpeedBoostIfNeeded, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyEnchantmentsToDamage, applyMovementEffects, applyStatusEffect, attackLivingEntity, canBeRiddenInWater, canBreatheInWater, canDropLootAndXp, canFreeze, 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_29500, method_30633, method_31079, method_32324, method_32325, method_32326, method_33190, 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, shouldSwimInFluids, sleep, spawnConsumptionEffects, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickCramming, tickHandSwing, tickRiding, tickRiptide, tickStatusEffects, triggerItemPickedUpByEntityCriteria, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUpMethods inherited from class net.minecraft.entity.Entity
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, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, entityDataRequiresOperator, equals, extinguish, fromTag, getAir, getBlockPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityId, getEntityName, getEntityWorld, getEyeHeight, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, 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, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isFreezing, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isOnFire, isOnGround, isPartOf, isPlayer, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, method_29241, method_29919, method_30330, method_30632, method_30634, method_30950, method_30951, method_31166, method_31473, method_31744, method_31746, method_31748, method_32875, method_32877, method_33189, move, moveToBoundingBoxCenter, moveToWorld, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onPlayerCollision, onSpawnPacket, 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, setFrozenTicks, setGlowing, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFireFor, setOnFireFromLava, setPos, setPose, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRender, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, streamPassengersRecursively, teleport, tickNetherPortal, tickNetherPortalCooldown, toListTag, toListTag, toString, toTag, unsetRemoved, updateKilledAdvancementCriterion, updateMovementInFluid, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedPosition, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide
-
Field Details
-
IS_BRED_HORSE
-
PARENT_HORSE_PREDICATE
-
field_25374
-
HORSE_FLAGS
-
OWNER_UUID
-
eatingGrassTicks
private int eatingGrassTicks -
eatingTicks
private int eatingTicks -
angryTicks
private int angryTicks -
tailWagTicks
public int tailWagTicks -
field_6958
public int field_6958 -
inAir
protected boolean inAir -
items
-
temper
protected int temper -
jumpStrength
protected float jumpStrength -
jumping
private boolean jumping -
eatingGrassAnimationProgress
private float eatingGrassAnimationProgress -
lastEatingGrassAnimationProgress
private float lastEatingGrassAnimationProgress -
angryAnimationProgress
private float angryAnimationProgress -
lastAngryAnimationProgress
private float lastAngryAnimationProgress -
eatingAnimationProgress
private float eatingAnimationProgress -
lastEatingAnimationProgress
private float lastEatingAnimationProgress -
playExtraHorseSounds
protected boolean playExtraHorseSounds -
soundTicks
protected int soundTicks
-
-
Constructor Details
-
HorseBaseEntity
-
-
Method Details
-
initGoals
protected void initGoals() -
initCustomGoals
protected void initCustomGoals() -
initDataTracker
protected void initDataTracker()- Overrides:
initDataTrackerin classPassiveEntity
-
getHorseFlag
protected boolean getHorseFlag(int bitmask) -
setHorseFlag
protected void setHorseFlag(int bitmask, boolean flag) -
isTame
public boolean isTame() -
getOwnerUuid
-
setOwnerUuid
-
isInAir
public boolean isInAir() -
setTame
public void setTame(boolean tame) -
setInAir
public void setInAir(boolean inAir) -
updateForLeashLength
protected void updateForLeashLength(float leashLength)- Overrides:
updateForLeashLengthin classPathAwareEntity
-
isEatingGrass
public boolean isEatingGrass() -
isAngry
public boolean isAngry() -
isBred
public boolean isBred() -
setBred
public void setBred(boolean bred) -
canBeSaddled
public boolean canBeSaddled()- Specified by:
canBeSaddledin interfaceSaddleable
-
saddle
- Specified by:
saddlein interfaceSaddleable
-
isSaddled
public boolean isSaddled()- Specified by:
isSaddledin interfaceSaddleable
-
getTemper
public int getTemper() -
setTemper
public void setTemper(int temper) -
addTemper
public int addTemper(int difference) -
isPushable
public boolean isPushable()- Overrides:
isPushablein classLivingEntity
-
playEatingAnimation
private void playEatingAnimation() -
handleFallDamage
public boolean handleFallDamage(float fallDistance, float damageMultiplier)- Overrides:
handleFallDamagein classLivingEntity
-
computeFallDamage
protected int computeFallDamage(float fallDistance, float damageMultiplier)- Overrides:
computeFallDamagein classLivingEntity
-
getInventorySize
protected int getInventorySize() -
onChestedStatusChanged
protected void onChestedStatusChanged() -
updateSaddle
protected void updateSaddle() -
onInventoryChanged
- Specified by:
onInventoryChangedin interfaceInventoryChangedListener
-
getJumpStrength
public double getJumpStrength() -
getEatSound
-
getDeathSound
- Overrides:
getDeathSoundin classLivingEntity
-
getHurtSound
- Overrides:
getHurtSoundin classLivingEntity
-
getAmbientSound
- Overrides:
getAmbientSoundin classMobEntity
-
getAngrySound
-
playStepSound
- Overrides:
playStepSoundin classEntity
-
playWalkSound
-
createBaseHorseAttributes
-
getLimitPerChunk
public int getLimitPerChunk()- Overrides:
getLimitPerChunkin classMobEntity
-
getMaxTemper
public int getMaxTemper() -
getSoundVolume
protected float getSoundVolume()- Overrides:
getSoundVolumein classLivingEntity
-
getMinAmbientSoundDelay
public int getMinAmbientSoundDelay()- Overrides:
getMinAmbientSoundDelayin classAnimalEntity
-
openInventory
-
method_30009
-
receiveFood
-
putPlayerOnBack
-
isImmobile
protected boolean isImmobile()- Overrides:
isImmobilein classLivingEntity
-
isBreedingItem
- Overrides:
isBreedingItemin classAnimalEntity
-
wagTail
private void wagTail() -
dropInventory
protected void dropInventory()- Overrides:
dropInventoryin classLivingEntity
-
tickMovement
public void tickMovement()- Overrides:
tickMovementin classAnimalEntity
-
walkToParent
protected void walkToParent() -
eatsGrass
public boolean eatsGrass() -
tick
public void tick() -
setEating
private void setEating() -
setEatingGrass
public void setEatingGrass(boolean eatingGrass) -
setAngry
public void setAngry(boolean angry) -
updateAnger
private void updateAnger() -
playAngrySound
public void playAngrySound() -
bondWithPlayer
-
travel
- Overrides:
travelin classLivingEntity
-
playJumpSound
protected void playJumpSound() -
writeCustomDataToTag
- Overrides:
writeCustomDataToTagin classAnimalEntity
-
readCustomDataFromTag
- Overrides:
readCustomDataFromTagin classAnimalEntity
-
canBreedWith
- Overrides:
canBreedWithin classAnimalEntity
-
canBreed
protected boolean canBreed() -
createChild
- Specified by:
createChildin classPassiveEntity
-
setChildAttributes
-
canBeControlledByRider
public boolean canBeControlledByRider()- Overrides:
canBeControlledByRiderin classMobEntity
-
getEatingGrassAnimationProgress
@Environment(CLIENT) public float getEatingGrassAnimationProgress(float tickDelta) -
getAngryAnimationProgress
@Environment(CLIENT) public float getAngryAnimationProgress(float tickDelta) -
getEatingAnimationProgress
@Environment(CLIENT) public float getEatingAnimationProgress(float tickDelta) -
setJumpStrength
@Environment(CLIENT) public void setJumpStrength(int strength)- Specified by:
setJumpStrengthin interfaceJumpingMount
-
canJump
public boolean canJump()- Specified by:
canJumpin interfaceJumpingMount
-
startJumping
public void startJumping(int height)- Specified by:
startJumpingin interfaceJumpingMount
-
stopJumping
public void stopJumping()- Specified by:
stopJumpingin interfaceJumpingMount
-
spawnPlayerReactionParticles
@Environment(CLIENT) protected void spawnPlayerReactionParticles(boolean positive) -
handleStatus
@Environment(CLIENT) public void handleStatus(byte status)- Overrides:
handleStatusin classAnimalEntity
-
updatePassengerPosition
- Overrides:
updatePassengerPositionin classEntity
-
getChildHealthBonus
protected float getChildHealthBonus() -
getChildJumpStrengthBonus
protected double getChildJumpStrengthBonus() -
getChildMovementSpeedBonus
protected double getChildMovementSpeedBonus() -
isClimbing
public boolean isClimbing()- Overrides:
isClimbingin classLivingEntity
-
getActiveEyeHeight
- Overrides:
getActiveEyeHeightin classLivingEntity
-
hasArmorSlot
public boolean hasArmorSlot()Whether this horse has a slot for custom equipment besides a saddle.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.
-
hasArmorInSlot
public boolean hasArmorInSlot()Whether this horse already has an item stack in its horse armor slot.- See Also:
hasArmorSlot()
-
isHorseArmor
Whether the given item stack is valid for this horse's armor slot.- See Also:
hasArmorSlot()
-
method_32335
-
method_32318
- Overrides:
method_32318in classLivingEntity
-
getPrimaryPassenger
- Overrides:
getPrimaryPassengerin classEntity
-
method_27930
-
updatePassengerForDismount
- Overrides:
updatePassengerForDismountin classEntity
-
initAttributes
protected void initAttributes() -
initialize
@Nullable public EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable CompoundTag entityTag)- Overrides:
initializein classPassiveEntity
-