Class AbstractHorse
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<Entity>
net.minecraft.world.entity.Entity
net.minecraft.world.entity.LivingEntity
net.minecraft.world.entity.Mob
net.minecraft.world.entity.PathfinderMob
net.minecraft.world.entity.AgeableMob
net.minecraft.world.entity.animal.Animal
net.minecraft.world.entity.animal.horse.AbstractHorse
- All Implemented Interfaces:
CommandSource
,ContainerListener
,PlayerRideable
,PlayerRideableJumping
,Saddleable
,EntityAccess
,Nameable
,ICapabilityProvider
,ICapabilitySerializable<CompoundTag>
,IForgeEntity
,INBTSerializable<CompoundTag>
- Direct Known Subclasses:
AbstractChestedHorse
,Horse
,SkeletonHorse
,ZombieHorse
public abstract class AbstractHorse
extends Animal
implements ContainerListener, PlayerRideableJumping, Saddleable
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.AgeableMob
AgeableMob.AgeableMobGroupData
Nested classes/interfaces inherited from class net.minecraft.world.entity.Entity
Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReason
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
protected boolean
static int
private static EntityDataAccessor<Byte>
private static EntityDataAccessor<Optional<UUID>>
private float
private float
private int
static int
private static int
private static int
private static int
private static int
private static int
private static int
private static Ingredient
protected int
static int
static int
static int
protected SimpleContainer
static int
protected boolean
private LazyOptional<?>
private static TargetingConditions
private float
private float
private int
private static Predicate<LivingEntity>
protected float
int
private float
private float
private int
int
protected int
Fields inherited from class net.minecraft.world.entity.AgeableMob
age, BABY_START_AGE, forcedAge, forcedAgeTimer
Fields inherited from class net.minecraft.world.entity.Mob
ambientSoundTime, armorDropChances, DEFAULT_EQUIPMENT_DROP_CHANCE, goalSelector, handDropChances, jumpControl, LEASH_TAG, lookControl, MAX_ENCHANTED_ARMOR_CHANCE, MAX_ENCHANTED_WEAPON_CHANCE, MAX_PICKUP_LOOT_CHANCE, MAX_WEARING_ARMOR_CHANCE, moveControl, navigation, targetSelector, xpReward
Fields inherited from class net.minecraft.world.entity.LivingEntity
animationPosition, animationSpeed, animationSpeedOld, animStep, animStepO, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathScore, deathTime, DEFAULT_BASE_GRAVITY, DEFAULT_EYE_HEIGHT, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, flyingSpeed, HAND_SLOTS, hurtDir, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, lyHeadRot, MIN_MOVEMENT_DISTANCE, noActionTime, oAttackAnim, oRun, PLAYER_HURT_EXPERIENCE_TIME, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, SWING_DURATION, swinging, swingingArm, swingTime, timeOffs, USE_ITEM_INTERVAL, useItem, useItemRemaining, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza
Fields inherited from class net.minecraft.world.entity.Entity
BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, BREATHING_DISTANCE_BELOW_EYES, DATA_POSE, DATA_SHARED_FLAGS_ID, DEFAULT_BB_HEIGHT, DEFAULT_BB_WIDTH, DELTA_AFFECTED_BY_BLOCKS_BELOW, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, fluidOnEyes, flyDist, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, isInsidePortal, level, LOGGER, MAX_ENTITY_TAG_COUNT, maxUpStep, moveDist, noCulling, noPhysics, onGround, PASSENGERS_TAG, portalEntrancePos, portalTime, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOld
Fields inherited from interface net.minecraft.commands.CommandSource
NULL
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractHorse(EntityType<? extends AbstractHorse> p_30531_, Level p_30532_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalSaveData(CompoundTag p_30589_)
protected void
void
aiStep()
protected int
calculateFallDamage(float p_30606_, float p_30607_)
boolean
boolean
boolean
canJump()
boolean
protected boolean
boolean
boolean
causeFallDamage(float p_149499_, float p_149500_, DamageSource p_149501_)
void
containerChanged(Container p_30548_)
static AttributeSupplier.Builder
private SlotAccess
createEquipmentSlotAccess(int p_149503_, Predicate<ItemStack> p_149504_)
protected void
protected void
protected void
doPlayerRide(Player p_30634_)
protected void
private void
eating()
void
equipSaddle(SoundSource p_30546_)
finalizeSpawn(ServerLevelAccessor p_30555_, DifficultyInstance p_30556_, MobSpawnType p_30557_, SpawnGroupData p_30558_, CompoundTag p_30559_)
protected void
protected double
protected float
protected double
protected SoundEvent
int
protected SoundEvent
getBreedOffspring(ServerLevel p_149506_, AgeableMob p_149507_)
<T> LazyOptional<T>
getCapability(Capability<T> capability, Direction facing)
Retrieves the Optional handler for the capability requested on the specific side.double
protected SoundEvent
getDismountLocationForPassenger(LivingEntity p_30576_)
private Vec3
getDismountLocationInDirection(Vec3 p_30562_, LivingEntity p_30563_)
float
getEatAnim(float p_30664_)
protected SoundEvent
protected boolean
getFlag(int p_30648_)
protected SoundEvent
getHurtSound(DamageSource p_30609_)
protected int
int
int
float
getMouthAnim(float p_30534_)
getSlot(int p_149514_)
protected float
float
getStandAnim(float p_30668_)
protected float
getStandingEyeHeight(Pose p_30578_, EntityDimensions p_30579_)
int
protected boolean
handleEating(Player p_30593_, ItemStack p_30594_)
void
handleEntityEvent(byte p_30541_)
void
handleStartJump(int p_30574_)
void
boolean
hasInventoryChanged(Container p_149512_)
void
boolean
boolean
isBred()
boolean
isEating()
boolean
protected boolean
boolean
boolean
boolean
boolean
boolean
boolean
isTamed()
boolean
void
makeMad()
int
modifyTemper(int p_30654_)
private void
moveTail()
boolean
protected void
onLeashDistance(float p_30660_)
void
onPlayerJump(int p_30591_)
void
openInventory(Player p_30621_)
private void
protected void
playGallopSound(SoundType p_30560_)
protected void
protected void
playStepSound(BlockPos p_30584_, BlockState p_30585_)
void
positionRider(Entity p_30642_)
protected void
void
readAdditionalSaveData(CompoundTag p_30565_)
protected void
void
setBred(boolean p_30658_)
void
setEating(boolean p_30662_)
protected void
setFlag(int p_30598_, boolean p_30599_)
void
setIsJumping(boolean p_30656_)
protected void
setOffspringAttributes(AgeableMob p_149509_, AbstractHorse p_149510_)
void
setOwnerUUID(UUID p_30587_)
void
setStanding(boolean p_30666_)
void
setTamed(boolean p_30652_)
void
setTemper(int p_30650_)
protected void
spawnTamingParticles(boolean p_30670_)
private void
stand()
boolean
tameWithName(Player p_30638_)
void
tick()
void
protected void
Methods inherited from class net.minecraft.world.entity.animal.Animal
canFallInLove, checkAnimalSpawnRules, customServerAiStep, getExperienceReward, getInLoveTime, getLoveCause, getMyRidingOffset, getWalkTargetValue, hurt, isInLove, mobInteract, removeWhenFarAway, resetLove, setInLove, setInLoveTime, spawnChildFromBreeding, usePlayerItem
Methods inherited from class net.minecraft.world.entity.AgeableMob
ageBoundaryReached, ageUp, ageUp, canBreed, getAge, isBaby, onSyncedDataUpdated, setAge, setBaby
Methods inherited from class net.minecraft.world.entity.PathfinderMob
checkSpawnRules, followLeashSpeed, getWalkTargetValue, isPathFinding, tickLeash
Methods inherited from class net.minecraft.world.entity.Mob
ate, baseTick, canAttackType, canBeLeashed, canCutCorner, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, clearRestriction, convertTo, createBodyControl, createLootContext, createMobAttributes, createNavigation, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getArmorSlots, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMeleeAttackRangeSqr, getMoveControl, getNavigation, getPathfindingMalus, getPickResult, getRestrictCenter, getRestrictRadius, getSensing, getTarget, hasRestriction, interact, isAggressive, isControlledByLocalInstance, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isWithinRestriction, isWithinRestriction, jumpInLiquid, lookAt, onOffspringSpawnedFromEgg, pickUpItem, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, removeAfterChangingDimensions, removeFreeWill, requiresCustomPersistence, restrictTo, sendDebugPackets, serverAiStep, setAggressive, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpeed, setTarget, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, tickHeadTurn, updateControlFlags, wantsToPickUp
Methods inherited from class net.minecraft.world.entity.LivingEntity
actuallyHurt, addEffect, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, canAttack, canAttack, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canBreatheUnderwater, canFreeze, canSpawnSoulSpeedParticle, canStandOnFluid, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doPush, dropAllDeathLoot, dropExperience, eat, equipEventAndSound, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAddEntityPacket, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getEyeHeight, getFallDamageSound, getFallFlyingTicks, getFluidFallingAdjustedMovement, getHealth, getItemInHand, getJumpBoostPower, getJumpPower, getKillCredit, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getMobType, getNoActionTime, getOffhandItem, getProjectile, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, hasLineOfSight, heal, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, increaseAirSupply, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isInvertedHealAndHarm, isInWall, isPickable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, makeBrain, markHurt, onChangedBlock, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onItemPickup, onLeaveCombat, onSoulSpeedBlock, outOfWorld, playBlockFallSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, reviveCaps, rideableUnderWater, rideTick, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setOnGround, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, spawnSoulSpeedParticle, startAutoSpinAttack, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, triggerItemUseEffects, tryAddFrost, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime, updateUsingItem, verifyEquippedItem
Methods inherited from class net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkInsideBlocks, checkOutOfWorld, chunkPosition, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, discard, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, eyeBlockPosition, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, gameEvent, gameEvent, gameEvent, gameEvent, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockX, getBlockY, getBlockZ, getBoundingBox, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getForward, getGameEventListenerRegistrar, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMotionDirection, getMovementEmission, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersAndSelf, getPassengersRidingOffset, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getY, getY, getYRot, getZ, getZ, handleInsidePortal, handleNetherPortal, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFullyFrozen, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killed, lavaHurt, lerpMotion, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, occludesVibrations, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onFlap, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, pick, playEntityOnFireExtinguishedSound, playerTouch, playSound, playSwimSound, position, processFlappingMovement, processPortalCooldown, push, reapplyPosition, recreateFromPacket, refreshDimensions, remove, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevelCallback, setNoGravity, setOldPosAndRot, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSecondsOnFire, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, teleportTo, teleportToWithTicket, thunderHit, toString, touchingUnloadedChunk, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCaps
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.commands.CommandSource
alwaysAccepts
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getParts, getPickedResult, isMultipartEntity, serializeNBT, shouldRiderSit
-
Field Details
-
EQUIPMENT_SLOT_OFFSET
public static final int EQUIPMENT_SLOT_OFFSET- See Also:
- Constant Field Values
-
CHEST_SLOT_OFFSET
public static final int CHEST_SLOT_OFFSET- See Also:
- Constant Field Values
-
INVENTORY_SLOT_OFFSET
public static final int INVENTORY_SLOT_OFFSET- See Also:
- Constant Field Values
-
PARENT_HORSE_SELECTOR
-
MOMMY_TARGETING
-
FOOD_ITEMS
-
DATA_ID_FLAGS
-
DATA_ID_OWNER_UUID
-
FLAG_TAME
private static final int FLAG_TAME- See Also:
- Constant Field Values
-
FLAG_SADDLE
private static final int FLAG_SADDLE- See Also:
- Constant Field Values
-
FLAG_BRED
private static final int FLAG_BRED- See Also:
- Constant Field Values
-
FLAG_EATING
private static final int FLAG_EATING- See Also:
- Constant Field Values
-
FLAG_STANDING
private static final int FLAG_STANDING- See Also:
- Constant Field Values
-
FLAG_OPEN_MOUTH
private static final int FLAG_OPEN_MOUTH- See Also:
- Constant Field Values
-
INV_SLOT_SADDLE
public static final int INV_SLOT_SADDLE- See Also:
- Constant Field Values
-
INV_SLOT_ARMOR
public static final int INV_SLOT_ARMOR- See Also:
- Constant Field Values
-
INV_BASE_COUNT
public static final int INV_BASE_COUNT- See Also:
- Constant Field Values
-
eatingCounter
private int eatingCounter -
mouthCounter
private int mouthCounter -
standCounter
private int standCounter -
tailCounter
public int tailCounter -
sprintCounter
public int sprintCounter -
isJumping
protected boolean isJumping -
inventory
-
temper
protected int temper -
playerJumpPendingScale
protected float playerJumpPendingScale -
allowStandSliding
private boolean allowStandSliding -
eatAnim
private float eatAnim -
eatAnimO
private float eatAnimO -
standAnim
private float standAnim -
standAnimO
private float standAnimO -
mouthAnim
private float mouthAnim -
mouthAnimO
private float mouthAnimO -
canGallop
protected boolean canGallop -
gallopSoundCounter
protected int gallopSoundCounter -
itemHandler
-
-
Constructor Details
-
AbstractHorse
-
-
Method Details
-
registerGoals
protected void registerGoals()- Overrides:
registerGoals
in classMob
-
addBehaviourGoals
protected void addBehaviourGoals() -
defineSynchedData
protected void defineSynchedData()- Overrides:
defineSynchedData
in classAgeableMob
-
getFlag
protected boolean getFlag(int p_30648_) -
setFlag
protected void setFlag(int p_30598_, boolean p_30599_) -
isTamed
public boolean isTamed() -
getOwnerUUID
-
setOwnerUUID
-
isJumping
public boolean isJumping() -
setTamed
public void setTamed(boolean p_30652_) -
setIsJumping
public void setIsJumping(boolean p_30656_) -
onLeashDistance
protected void onLeashDistance(float p_30660_)- Overrides:
onLeashDistance
in classPathfinderMob
-
isEating
public boolean isEating() -
isStanding
public boolean isStanding() -
isBred
public boolean isBred() -
setBred
public void setBred(boolean p_30658_) -
isSaddleable
public boolean isSaddleable()- Specified by:
isSaddleable
in interfaceSaddleable
-
equipSaddle
- Specified by:
equipSaddle
in interfaceSaddleable
-
isSaddled
public boolean isSaddled()- Specified by:
isSaddled
in interfaceSaddleable
-
getTemper
public int getTemper() -
setTemper
public void setTemper(int p_30650_) -
modifyTemper
public int modifyTemper(int p_30654_) -
isPushable
public boolean isPushable()- Overrides:
isPushable
in classLivingEntity
-
eating
private void eating() -
causeFallDamage
- Overrides:
causeFallDamage
in classLivingEntity
-
calculateFallDamage
protected int calculateFallDamage(float p_30606_, float p_30607_)- Overrides:
calculateFallDamage
in classLivingEntity
-
getInventorySize
protected int getInventorySize() -
createInventory
protected void createInventory() -
updateContainerEquipment
protected void updateContainerEquipment() -
containerChanged
- Specified by:
containerChanged
in interfaceContainerListener
-
getCustomJump
public double getCustomJump() -
getEatingSound
-
getDeathSound
- Overrides:
getDeathSound
in classLivingEntity
-
getHurtSound
- Overrides:
getHurtSound
in classLivingEntity
-
getAmbientSound
- Overrides:
getAmbientSound
in classMob
-
getAngrySound
-
playStepSound
- Overrides:
playStepSound
in classEntity
-
playGallopSound
-
createBaseHorseAttributes
-
getMaxSpawnClusterSize
public int getMaxSpawnClusterSize()- Overrides:
getMaxSpawnClusterSize
in classMob
-
getMaxTemper
public int getMaxTemper() -
getSoundVolume
protected float getSoundVolume()- Overrides:
getSoundVolume
in classLivingEntity
-
getAmbientSoundInterval
public int getAmbientSoundInterval()- Overrides:
getAmbientSoundInterval
in classAnimal
-
openInventory
-
fedFood
-
handleEating
-
doPlayerRide
-
isImmobile
protected boolean isImmobile()- Overrides:
isImmobile
in classLivingEntity
-
isFood
-
moveTail
private void moveTail() -
dropEquipment
protected void dropEquipment()- Overrides:
dropEquipment
in classLivingEntity
-
aiStep
public void aiStep() -
followMommy
protected void followMommy() -
canEatGrass
public boolean canEatGrass() -
tick
public void tick() -
openMouth
private void openMouth() -
setEating
public void setEating(boolean p_30662_) -
setStanding
public void setStanding(boolean p_30666_) -
stand
private void stand() -
makeMad
public void makeMad() -
tameWithName
-
travel
- Overrides:
travel
in classLivingEntity
-
playJumpSound
protected void playJumpSound() -
addAdditionalSaveData
- Overrides:
addAdditionalSaveData
in classAnimal
-
readAdditionalSaveData
- Overrides:
readAdditionalSaveData
in classAnimal
-
canMate
-
canParent
protected boolean canParent() -
getBreedOffspring
- Specified by:
getBreedOffspring
in classAgeableMob
-
setOffspringAttributes
-
canBeControlledByRider
public boolean canBeControlledByRider()- Overrides:
canBeControlledByRider
in classMob
-
getEatAnim
public float getEatAnim(float p_30664_) -
getStandAnim
public float getStandAnim(float p_30668_) -
getMouthAnim
public float getMouthAnim(float p_30534_) -
onPlayerJump
public void onPlayerJump(int p_30591_)- Specified by:
onPlayerJump
in interfacePlayerRideableJumping
-
canJump
public boolean canJump()- Specified by:
canJump
in interfacePlayerRideableJumping
-
handleStartJump
public void handleStartJump(int p_30574_)- Specified by:
handleStartJump
in interfacePlayerRideableJumping
-
handleStopJump
public void handleStopJump()- Specified by:
handleStopJump
in interfacePlayerRideableJumping
-
spawnTamingParticles
protected void spawnTamingParticles(boolean p_30670_) -
handleEntityEvent
public void handleEntityEvent(byte p_30541_)- Overrides:
handleEntityEvent
in classAnimal
-
positionRider
- Overrides:
positionRider
in classEntity
-
generateRandomMaxHealth
protected float generateRandomMaxHealth() -
generateRandomJumpStrength
protected double generateRandomJumpStrength() -
generateRandomSpeed
protected double generateRandomSpeed() -
onClimbable
public boolean onClimbable()- Overrides:
onClimbable
in classLivingEntity
-
getStandingEyeHeight
- Overrides:
getStandingEyeHeight
in classLivingEntity
-
canWearArmor
public boolean canWearArmor() -
isWearingArmor
public boolean isWearingArmor() -
isArmor
-
createEquipmentSlotAccess
-
getSlot
- Overrides:
getSlot
in classLivingEntity
-
getControllingPassenger
- Overrides:
getControllingPassenger
in classEntity
-
getDismountLocationInDirection
-
getDismountLocationForPassenger
- Overrides:
getDismountLocationForPassenger
in classEntity
-
randomizeAttributes
protected void randomizeAttributes() -
finalizeSpawn
@Nullable public SpawnGroupData finalizeSpawn(ServerLevelAccessor p_30555_, DifficultyInstance p_30556_, MobSpawnType p_30557_, @Nullable SpawnGroupData p_30558_, @Nullable CompoundTag p_30559_)- Overrides:
finalizeSpawn
in classAgeableMob
-
getCapability
Description copied from interface:ICapabilityProvider
Retrieves the Optional handler for the capability requested on the specific side. The return value CAN be the same for multiple faces. Modders are encouraged to cache this value, using the listener capabilities of the Optional to be notified if the requested capability get lost.- Specified by:
getCapability
in interfaceICapabilityProvider
- Overrides:
getCapability
in classLivingEntity
- Parameters:
capability
- The capability to checkfacing
- The Side to check from, CAN BE NULL. Null is defined to represent 'internal' or 'self'- Returns:
- The requested an optional holding the requested capability.
-
invalidateCaps
public void invalidateCaps()- Overrides:
invalidateCaps
in classLivingEntity
-
hasInventoryChanged
-