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,- Attackable,- HasCustomInventoryScreen,- OwnableEntity,- PlayerRideable,- PlayerRideableJumping,- Saddleable,- Targeting,- EntityAccess,- Nameable,- ICapabilityProvider,- ICapabilityProviderImpl<Entity>,- ICapabilitySerializable<CompoundTag>,- IForgeEntity,- IForgeLivingEntity,- INBTSerializable<CompoundTag>
- Direct Known Subclasses:
- AbstractChestedHorse,- Camel,- Horse,- SkeletonHorse,- ZombieHorse
public abstract class AbstractHorse
extends Animal
implements ContainerListener, HasCustomInventoryScreen, OwnableEntity, PlayerRideableJumping, Saddleable
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.entity.AgeableMobAgeableMob.AgeableMobGroupDataNested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntityLivingEntity.FallsoundsNested classes/interfaces inherited from class net.minecraft.world.entity.EntityEntity.MoveFunction, Entity.MovementEmission, Entity.RemovalReasonNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProviderCapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanprivate static final floatstatic final doubleprotected booleanstatic final intprivate static final EntityDataAccessor<Byte>private floatprivate floatprivate intstatic final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final Ingredientprotected intstatic final intstatic final intstatic final intprotected SimpleContainerstatic final intprotected booleanprivate LazyOptional<?>private static final floatprivate static final floatprivate static final floatprivate static final floatprivate static final floatprivate static final floatprivate static final TargetingConditionsprivate floatprivate floatprivate intprivate UUIDprivate static final Predicate<LivingEntity>protected floatprivate static final floatintprivate floatprivate floatprivate intintprotected intFields inherited from class net.minecraft.world.entity.animal.AnimalPARENT_AGE_AFTER_BREEDINGFields inherited from class net.minecraft.world.entity.AgeableMobage, BABY_START_AGE, forcedAge, forcedAgeTimerFields inherited from class net.minecraft.world.entity.PathfinderMobDEFAULT_WALK_TARGET_VALUEFields inherited from class net.minecraft.world.entity.MobambientSoundTime, 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, PICKUP_REACH, PRESERVE_ITEM_DROP_CHANCE, targetSelector, UPDATE_GOAL_SELECTOR_EVERY_N_TICKS, xpRewardFields inherited from class net.minecraft.world.entity.LivingEntityanimStep, 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, HAND_SLOTS, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYHeadRot, lerpYRot, lerpZ, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, 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, walkAnimation, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zzaFields inherited from class net.minecraft.world.entity.EntityBASE_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_0_2, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5, DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0, ENTITY_COUNTER, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, flyDist, forgeFluidTypeHeight, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, isInsidePortal, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, PASSENGERS_TAG, portalEntrancePos, portalTime, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOldFields inherited from interface net.minecraft.commands.CommandSourceNULL
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractHorse(EntityType<? extends AbstractHorse> p_30531_, Level p_30532_) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAdditionalSaveData(CompoundTag p_30589_) protected voidvoidaiStep()protected intcalculateFallDamage(float p_30606_, float p_30607_) booleanbooleancanJump()booleanprotected booleanprotected booleanbooleanbooleancauseFallDamage(float p_149499_, float p_149500_, DamageSource p_149501_) voidcontainerChanged(Container p_30548_) static AttributeSupplier.Builderprivate SlotAccesscreateEquipmentSlotAccess(int p_149503_, Predicate<ItemStack> p_149504_) protected void(package private) static doublecreateOffspringAttribute(double p_272685_, double p_273709_, double p_273376_, double p_273030_, RandomSource p_272743_) protected voidprotected voiddoPlayerRide(Player p_30634_) protected voidprivate voideating()voidequipArmor(Player p_251330_, ItemStack p_248855_) voidequipSaddle(SoundSource p_30546_) protected voidexecuteRidersJump(float p_248808_, Vec3 p_275435_) finalizeSpawn(ServerLevelAccessor p_30555_, DifficultyInstance p_30556_, MobSpawnType p_30557_, SpawnGroupData p_30558_, CompoundTag p_30559_) Forge: Override-Only, call via ForgeEventFactory.onFinalizeSpawn.
 Overrides are allowed.protected voidprotected static doublegenerateJumpStrength(DoubleSupplier p_272718_) protected static floatgenerateMaxHealth(IntUnaryOperator p_272695_) protected static doublegenerateSpeed(DoubleSupplier p_273691_) intintprotected SoundEventgetBreedOffspring(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.doublegetDismountLocationForPassenger(LivingEntity p_30576_) private Vec3getDismountLocationInDirection(Vec3 p_30562_, LivingEntity p_30563_) floatgetEatAnim(float p_30664_) protected SoundEventprotected booleangetFlag(int p_30648_) protected intintintfloatgetMouthAnim(float p_30534_) protected org.joml.Vector3fgetPassengerAttachmentPoint(Entity p_301103_, EntityDimensions p_298879_, float p_299886_) protected floatgetPassengersRidingOffsetY(EntityDimensions p_299002_, float p_297393_) protected Vec3getRiddenInput(Player p_278278_, Vec3 p_275506_) protected Vec2getRiddenRotation(LivingEntity p_275502_) protected floatgetRiddenSpeed(Player p_278336_) getSlot(int p_149514_) protected floatfloatgetStandAnim(float p_30668_) protected floatgetStandingEyeHeight(Pose p_30578_, EntityDimensions p_30579_) intprotected booleanhandleEating(Player p_30593_, ItemStack p_30594_) voidhandleEntityEvent(byte p_30541_) voidhandleStartJump(int p_30574_) voidbooleanhasInventoryChanged(Container p_149512_) booleanhurt(DamageSource p_252258_, float p_250984_) voidbooleanbooleanisBred()booleanisEating()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisTamed()booleanprivate booleanisWoodSoundType(SoundType p_278280_) voidmakeMad()mobInteract(Player p_252289_, InteractionHand p_248927_) intmodifyTemper(int p_30654_) private voidmoveTail()booleanprotected voidonLeashDistance(float p_30660_) voidonPlayerJump(int p_30591_) voidopenCustomInventoryScreen(Player p_218808_) private voidprotected voidplayGallopSound(SoundType p_30560_) protected voidprotected voidplayStepSound(BlockPos p_30584_, BlockState p_30585_) protected voidpositionRider(Entity p_289569_, Entity.MoveFunction p_289558_) protected voidrandomizeAttributes(RandomSource p_218804_) voidreadAdditionalSaveData(CompoundTag p_30565_) protected voidvoidsetBred(boolean p_30658_) voidsetEating(boolean p_30662_) protected voidsetFlag(int p_30598_, boolean p_30599_) voidsetIsJumping(boolean p_30656_) private voidsetOffspringAttribute(AgeableMob p_273163_, AbstractHorse p_273784_, Attribute p_273681_, double p_272663_, double p_273405_) protected voidsetOffspringAttributes(AgeableMob p_149509_, AbstractHorse p_149510_) voidsetOwnerUUID(UUID p_30587_) voidsetStanding(boolean p_30666_) voidsetTamed(boolean p_30652_) voidsetTemper(int p_30650_) protected voidspawnTamingParticles(boolean p_30670_) voidbooleantameWithName(Player p_30638_) voidtick()protected voidtickRidden(Player p_278233_, Vec3 p_275693_) protected voidMethods inherited from class net.minecraft.world.entity.animal.AnimalcanFallInLove, checkAnimalSpawnRules, customServerAiStep, finalizeSpawnChildFromBreeding, getExperienceReward, getInLoveTime, getLoveCause, getWalkTargetValue, isBrightEnoughToSpawn, isInLove, removeWhenFarAway, resetLove, setInLove, setInLoveTime, spawnChildFromBreeding, usePlayerItemMethods inherited from class net.minecraft.world.entity.AgeableMobageBoundaryReached, ageUp, ageUp, canBreed, getAge, getSpeedUpSecondsWhenFeeding, isBaby, onSyncedDataUpdated, setAge, setBabyMethods inherited from class net.minecraft.world.entity.PathfinderMobcheckSpawnRules, followLeashSpeed, getWalkTargetValue, isPanicking, isPathFinding, shouldStayCloseToLeashHolder, tickLeashMethods inherited from class net.minecraft.world.entity.Mobate, baseTick, canAttackType, canBeLeashed, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, clearRestriction, convertTo, createBodyControl, createMobAttributes, createNavigation, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getAmbientSound, getArmorSlots, getAttackBoundingBox, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getLootTableSeed, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMoveControl, getNavigation, getPathfindingMalus, getPickResult, getPickupReach, getRestrictCenter, getRestrictRadius, getSensing, getSpawnType, getTarget, hasRestriction, interact, isAggressive, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSpawnCancelled, isSunBurnTick, isWithinMeleeAttackRange, isWithinRestriction, isWithinRestriction, jumpInFluid, jumpInLiquid, lookAt, onOffspringSpawnedFromEgg, onPathfindingDone, onPathfindingStart, pickUpItem, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, removeAfterChangingDimensions, removeAllGoals, removeFreeWill, requiresCustomPersistence, restrictTo, sendDebugPackets, serverAiStep, setAggressive, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpawnCancelled, setSpeed, setTarget, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, tickHeadTurn, updateControlFlags, wantsToPickUpMethods inherited from class net.minecraft.world.entity.LivingEntityactuallyHurt, addEffect, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, canAttack, canAttack, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canBreatheUnderwater, canChangeDimensions, canDisableShield, canFreeze, canSpawnSoulSpeedParticle, canStandOnFluid, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doesEmitEquipEvent, doPush, dropAllDeathLoot, dropExperience, eat, equipmentHasChanged, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributeBaseValue, getAttributes, getAttributeValue, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDeathSound, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getEyeHeight, getFallFlyingTicks, getFallSounds, getFluidFallingAdjustedMovement, getFlyingSpeed, getHealth, getHitbox, getHurtDir, getHurtSound, getItemInHand, getJumpBoostPower, getJumpPower, getKillCredit, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxAbsorption, getMaxHealth, getMobType, getMyRidingOffset, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getProjectile, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleDamageEvent, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, hasLineOfSight, heal, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, increaseAirSupply, indicateDamage, internalSetAbsorptionAmount, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isInvertedHealAndHarm, isInWall, isPickable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadRotationStep, lerpHeadTo, lerpTargetX, lerpTargetXRot, lerpTargetY, lerpTargetYRot, lerpTargetZ, lerpTo, lookAt, makeBrain, maxUpStep, onBelowWorld, onChangedBlock, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onItemPickup, onLeaveCombat, onSoulSpeedBlock, playBlockFallSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, remove, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, reviveCaps, rideTick, sendEffectToPassengers, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, skipDropExperience, spawnSoulSpeedParticle, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, travel, triggerItemUseEffects, tryAddFrost, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime, updateUsingItem, updateWalkAnimation, verifyEquippedItem, wasExperienceConsumed, wouldNotSuffocateAtTargetPoseMethods inherited from class net.minecraft.world.entity.EntityabsMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canCollideWith, canControlVehicle, canRide, canSpawnSprintParticle, canSprint, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkBelowWorld, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, fixupDimensions, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDimensionsForge, getDirection, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getHandHoldingItemAngle, getId, getIndirectPassengers, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getMovementEmission, getName, getNameTagOffsetY, getOnPos, getOnPos, getOnPosLegacy, getPassengers, getPassengersAndSelf, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalCooldown, getPortalWaitTime, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, 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, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInLiquid, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killedEntity, lavaHurt, lerpMotion, lerpPositionAndRotationStep, level, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, onSyncedDataUpdated, pick, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playSwimSound, position, positionRider, processFlappingMovement, processPortalCooldown, push, reapplyPosition, refreshDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, ridingOffset, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setMaxUpStep, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithKnownMovement, setPortalCooldown, 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, syncPacketPositionCodec, teleportRelative, teleportTo, teleportTo, teleportToWithTicket, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSoundMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProviderareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCapsMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSourcealwaysAcceptsMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeEntitycanBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, deserializeNBT, getClassification, getEyeHeightForge, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getPickedResult, getSoundFromFluidType, getStepHeight, hasCustomOutlineRendering, isAddedToWorld, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToWorld, onRemovedFromWorld, revive, serializeNBT, shouldRiderSit, shouldUpdateFluidWhileBoatingMethods inherited from interface net.minecraftforge.common.extensions.IForgeLivingEntitycanDrownInFluidType, canSwimInFluidType, moveInFluid, self, sinkInFluidMethods inherited from interface net.minecraft.world.entity.OwnableEntitygetOwner, levelMethods inherited from interface net.minecraft.world.entity.PlayerRideableJumpinggetJumpCooldownMethods inherited from interface net.minecraft.world.entity.SaddleablegetSaddleSoundEvent
- 
Field Details- 
EQUIPMENT_SLOT_OFFSETpublic static final int EQUIPMENT_SLOT_OFFSET- See Also:
 
- 
CHEST_SLOT_OFFSETpublic static final int CHEST_SLOT_OFFSET- See Also:
 
- 
INVENTORY_SLOT_OFFSETpublic static final int INVENTORY_SLOT_OFFSET- See Also:
 
- 
BREEDING_CROSS_FACTORpublic static final double BREEDING_CROSS_FACTOR- See Also:
 
- 
MIN_MOVEMENT_SPEEDprivate static final float MIN_MOVEMENT_SPEED
- 
MAX_MOVEMENT_SPEEDprivate static final float MAX_MOVEMENT_SPEED
- 
MIN_JUMP_STRENGTHprivate static final float MIN_JUMP_STRENGTH
- 
MAX_JUMP_STRENGTHprivate static final float MAX_JUMP_STRENGTH
- 
MIN_HEALTHprivate static final float MIN_HEALTH
- 
MAX_HEALTHprivate static final float MAX_HEALTH
- 
BACKWARDS_MOVE_SPEED_FACTORprivate static final float BACKWARDS_MOVE_SPEED_FACTOR- See Also:
 
- 
SIDEWAYS_MOVE_SPEED_FACTORprivate static final float SIDEWAYS_MOVE_SPEED_FACTOR- See Also:
 
- 
PARENT_HORSE_SELECTOR
- 
MOMMY_TARGETING
- 
FOOD_ITEMS
- 
DATA_ID_FLAGS
- 
FLAG_TAMEprivate static final int FLAG_TAME- See Also:
 
- 
FLAG_SADDLEprivate static final int FLAG_SADDLE- See Also:
 
- 
FLAG_BREDprivate static final int FLAG_BRED- See Also:
 
- 
FLAG_EATINGprivate static final int FLAG_EATING- See Also:
 
- 
FLAG_STANDINGprivate static final int FLAG_STANDING- See Also:
 
- 
FLAG_OPEN_MOUTHprivate static final int FLAG_OPEN_MOUTH- See Also:
 
- 
INV_SLOT_SADDLEpublic static final int INV_SLOT_SADDLE- See Also:
 
- 
INV_SLOT_ARMORpublic static final int INV_SLOT_ARMOR- See Also:
 
- 
INV_BASE_COUNTpublic static final int INV_BASE_COUNT- See Also:
 
- 
eatingCounterprivate int eatingCounter
- 
mouthCounterprivate int mouthCounter
- 
standCounterprivate int standCounter
- 
tailCounterpublic int tailCounter
- 
sprintCounterpublic int sprintCounter
- 
isJumpingprotected boolean isJumping
- 
inventory
- 
temperprotected int temper
- 
playerJumpPendingScaleprotected float playerJumpPendingScale
- 
allowStandSlidingprotected boolean allowStandSliding
- 
eatAnimprivate float eatAnim
- 
eatAnimOprivate float eatAnimO
- 
standAnimprivate float standAnim
- 
standAnimOprivate float standAnimO
- 
mouthAnimprivate float mouthAnim
- 
mouthAnimOprivate float mouthAnimO
- 
canGallopprotected boolean canGallop
- 
gallopSoundCounterprotected int gallopSoundCounter
- 
owner
- 
itemHandler
 
- 
- 
Constructor Details- 
AbstractHorse
 
- 
- 
Method Details- 
registerGoalsprotected void registerGoals()- Overrides:
- registerGoalsin class- Mob
 
- 
addBehaviourGoalsprotected void addBehaviourGoals()
- 
defineSynchedDataprotected void defineSynchedData()- Overrides:
- defineSynchedDatain class- AgeableMob
 
- 
getFlagprotected boolean getFlag(int p_30648_) 
- 
setFlagprotected void setFlag(int p_30598_, boolean p_30599_) 
- 
isTamedpublic boolean isTamed()
- 
getOwnerUUID- Specified by:
- getOwnerUUIDin interface- OwnableEntity
 
- 
setOwnerUUID
- 
isJumpingpublic boolean isJumping()
- 
setTamedpublic void setTamed(boolean p_30652_) 
- 
setIsJumpingpublic void setIsJumping(boolean p_30656_) 
- 
onLeashDistanceprotected void onLeashDistance(float p_30660_) - Overrides:
- onLeashDistancein class- PathfinderMob
 
- 
isEatingpublic boolean isEating()
- 
isStandingpublic boolean isStanding()
- 
isBredpublic boolean isBred()
- 
setBredpublic void setBred(boolean p_30658_) 
- 
isSaddleablepublic boolean isSaddleable()- Specified by:
- isSaddleablein interface- Saddleable
 
- 
equipSaddle- Specified by:
- equipSaddlein interface- Saddleable
 
- 
equipArmor
- 
isSaddledpublic boolean isSaddled()- Specified by:
- isSaddledin interface- Saddleable
 
- 
getTemperpublic int getTemper()
- 
setTemperpublic void setTemper(int p_30650_) 
- 
modifyTemperpublic int modifyTemper(int p_30654_) 
- 
isPushablepublic boolean isPushable()- Overrides:
- isPushablein class- LivingEntity
 
- 
eatingprivate void eating()
- 
causeFallDamage- Overrides:
- causeFallDamagein class- LivingEntity
 
- 
calculateFallDamageprotected int calculateFallDamage(float p_30606_, float p_30607_) - Overrides:
- calculateFallDamagein class- LivingEntity
 
- 
getInventorySizeprotected int getInventorySize()
- 
createInventoryprotected void createInventory()
- 
updateContainerEquipmentprotected void updateContainerEquipment()
- 
containerChanged- Specified by:
- containerChangedin interface- ContainerListener
 
- 
getCustomJumppublic double getCustomJump()
- 
hurt
- 
canPerformRearingprotected boolean canPerformRearing()
- 
getEatingSound
- 
getAngrySound
- 
playStepSound- Overrides:
- playStepSoundin class- Entity
 
- 
isWoodSoundType
- 
playGallopSound
- 
createBaseHorseAttributes
- 
getMaxSpawnClusterSizepublic int getMaxSpawnClusterSize()- Overrides:
- getMaxSpawnClusterSizein class- Mob
 
- 
getMaxTemperpublic int getMaxTemper()
- 
getSoundVolumeprotected float getSoundVolume()- Overrides:
- getSoundVolumein class- LivingEntity
 
- 
getAmbientSoundIntervalpublic int getAmbientSoundInterval()- Overrides:
- getAmbientSoundIntervalin class- Animal
 
- 
openCustomInventoryScreen- Specified by:
- openCustomInventoryScreenin interface- HasCustomInventoryScreen
 
- 
fedFood
- 
handleEating
- 
doPlayerRide
- 
isImmobilepublic boolean isImmobile()- Overrides:
- isImmobilein class- LivingEntity
 
- 
isFood
- 
moveTailprivate void moveTail()
- 
dropEquipmentprotected void dropEquipment()- Overrides:
- dropEquipmentin class- LivingEntity
 
- 
aiSteppublic void aiStep()
- 
followMommyprotected void followMommy()
- 
canEatGrasspublic boolean canEatGrass()
- 
tickpublic void tick()
- 
mobInteract- Overrides:
- mobInteractin class- Animal
 
- 
openMouthprivate void openMouth()
- 
setEatingpublic void setEating(boolean p_30662_) 
- 
setStandingpublic void setStanding(boolean p_30666_) 
- 
getAmbientStandSound
- 
standIfPossiblepublic void standIfPossible()
- 
makeMadpublic void makeMad()
- 
tameWithName
- 
tickRidden- Overrides:
- tickRiddenin class- LivingEntity
 
- 
getRiddenRotation
- 
getRiddenInput- Overrides:
- getRiddenInputin class- LivingEntity
 
- 
getRiddenSpeed- Overrides:
- getRiddenSpeedin class- LivingEntity
 
- 
executeRidersJump
- 
playJumpSoundprotected void playJumpSound()
- 
addAdditionalSaveData- Overrides:
- addAdditionalSaveDatain class- Animal
 
- 
readAdditionalSaveData- Overrides:
- readAdditionalSaveDatain class- Animal
 
- 
canMate
- 
canParentprotected boolean canParent()
- 
getBreedOffspring- Specified by:
- getBreedOffspringin class- AgeableMob
 
- 
setOffspringAttributes
- 
setOffspringAttributeprivate void setOffspringAttribute(AgeableMob p_273163_, AbstractHorse p_273784_, Attribute p_273681_, double p_272663_, double p_273405_) 
- 
createOffspringAttributestatic double createOffspringAttribute(double p_272685_, double p_273709_, double p_273376_, double p_273030_, RandomSource p_272743_) 
- 
getEatAnimpublic float getEatAnim(float p_30664_) 
- 
getStandAnimpublic float getStandAnim(float p_30668_) 
- 
getMouthAnimpublic float getMouthAnim(float p_30534_) 
- 
onPlayerJumppublic void onPlayerJump(int p_30591_) - Specified by:
- onPlayerJumpin interface- PlayerRideableJumping
 
- 
canJumppublic boolean canJump()- Specified by:
- canJumpin interface- PlayerRideableJumping
 
- 
handleStartJumppublic void handleStartJump(int p_30574_) - Specified by:
- handleStartJumpin interface- PlayerRideableJumping
 
- 
handleStopJumppublic void handleStopJump()- Specified by:
- handleStopJumpin interface- PlayerRideableJumping
 
- 
spawnTamingParticlesprotected void spawnTamingParticles(boolean p_30670_) 
- 
handleEntityEventpublic void handleEntityEvent(byte p_30541_) - Overrides:
- handleEntityEventin class- Animal
 
- 
positionRider- Overrides:
- positionRiderin class- Entity
 
- 
generateMaxHealth
- 
generateJumpStrength
- 
generateSpeed
- 
onClimbablepublic boolean onClimbable()- Overrides:
- onClimbablein class- LivingEntity
 
- 
getStandingEyeHeight- Overrides:
- getStandingEyeHeightin class- LivingEntity
 
- 
canWearArmorpublic boolean canWearArmor()
- 
isWearingArmorpublic boolean isWearingArmor()
- 
isArmor
- 
createEquipmentSlotAccess
- 
getSlot- Overrides:
- getSlotin class- LivingEntity
 
- 
getControllingPassenger- Overrides:
- getControllingPassengerin class- Mob
 
- 
getDismountLocationInDirection
- 
getDismountLocationForPassenger- Overrides:
- getDismountLocationForPassengerin class- Entity
 
- 
randomizeAttributes
- 
finalizeSpawn@Nullable public SpawnGroupData finalizeSpawn(ServerLevelAccessor p_30555_, DifficultyInstance p_30556_, MobSpawnType p_30557_, @Nullable SpawnGroupData p_30558_, @Nullable CompoundTag p_30559_) Description copied from class:MobForge: Override-Only, call via ForgeEventFactory.onFinalizeSpawn.
 Overrides are allowed. Do not wrap super calls within override (as that will cause stack overflows).
 Vanilla calls are replaced with a transformer, and are not visible in source.
 Be certain to either call super.finalizeSpawn or set the Mob.spawnTypefield from within your override.- Overrides:
- finalizeSpawnin class- AgeableMob
 
- 
getCapabilityDescription copied from interface:ICapabilityProviderRetrieves 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:
- getCapabilityin interface- ICapabilityProvider
- Overrides:
- getCapabilityin class- LivingEntity
- Parameters:
- capability- The capability to check
- facing- 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.
 
- 
invalidateCapspublic void invalidateCaps()- Specified by:
- invalidateCapsin interface- ICapabilityProviderImpl<Entity>
- Overrides:
- invalidateCapsin class- LivingEntity
 
- 
hasInventoryChanged
- 
getAmbientStandIntervalpublic int getAmbientStandInterval()
- 
getPassengerAttachmentPointprotected org.joml.Vector3f getPassengerAttachmentPoint(Entity p_301103_, EntityDimensions p_298879_, float p_299886_) - Overrides:
- getPassengerAttachmentPointin class- Entity
 
- 
getPassengersRidingOffsetY
 
-