类 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
- 所有已实现的接口:
SyncedDataHolder
,ContainerListener
,Attackable
,EquipmentUser
,HasCustomInventoryScreen
,Leashable
,OwnableEntity
,PlayerRideable
,PlayerRideableJumping
,Saddleable
,Targeting
,EntityAccess
,Nameable
,ScoreHolder
,ICapabilityProvider
,ICapabilityProviderImpl<Entity>
,ICapabilitySerializable<CompoundTag>
,IForgeEntity
,IForgeLivingEntity
,INBTSerializable<CompoundTag>
- 直接已知子类:
AbstractChestedHorse
,Camel
,Horse
,SkeletonHorse
,ZombieHorse
public abstract class AbstractHorse
extends Animal
implements ContainerListener, HasCustomInventoryScreen, OwnableEntity, PlayerRideableJumping, Saddleable
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.entity.AgeableMob
AgeableMob.AgeableMobGroupData
从类继承的嵌套类/接口 net.minecraft.world.entity.LivingEntity
LivingEntity.Fallsounds
从类继承的嵌套类/接口 net.minecraft.world.entity.Entity
Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReason
从类继承的嵌套类/接口 net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
从接口继承的嵌套类/接口 net.minecraft.world.entity.Leashable
Leashable.LeashData
-
字段概要
字段修饰符和类型字段说明protected boolean
private static final float
private final Container
static final double
protected boolean
static final int
private static final EntityDataAccessor
<Byte> private float
private float
private int
static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
protected int
static final int
static final int
protected SimpleContainer
static final int
static final int
protected boolean
private LazyOptional
<?> private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final TargetingConditions
private float
private float
private int
private UUID
private static final TargetingConditions.Selector
protected float
private static final float
int
private float
private float
private int
int
protected int
从类继承的字段 net.minecraft.world.entity.animal.Animal
PARENT_AGE_AFTER_BREEDING
从类继承的字段 net.minecraft.world.entity.AgeableMob
age, BABY_START_AGE, forcedAge, forcedAgeTimer
从类继承的字段 net.minecraft.world.entity.PathfinderMob
DEFAULT_WALK_TARGET_VALUE
从类继承的字段 net.minecraft.world.entity.Mob
ambientSoundTime, armorDropChances, bodyArmorDropChance, DEFAULT_EQUIPMENT_DROP_CHANCE, goalSelector, handDropChances, jumpControl, 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, PRESERVE_ITEM_DROP_CHANCE_THRESHOLD, RANDOM_SPAWN_BONUS_ID, targetSelector, UPDATE_GOAL_SELECTOR_EVERY_N_TICKS, xpReward
从类继承的字段 net.minecraft.world.entity.LivingEntity
animStep, animStepO, appliedScale, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, ATTRIBUTES_FIELD, autoSpinAttackDmg, autoSpinAttackItemStack, autoSpinAttackTicks, BASE_JUMP_POWER, BODY_ARMOR_OFFSET, brain, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathTime, DEFAULT_BABY_SCALE, DEFAULT_BASE_GRAVITY, elytraAnimationState, 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, PLAYER_NOT_WEARING_DISGUISE_ITEM, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, SWING_DURATION, swinging, swingingArm, swingTime, timeOffs, useItem, useItemRemaining, walkAnimation, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza
从类继承的字段 net.minecraft.world.entity.Entity
BASE_SAFE_FALL_DISTANCE, BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, CONTENTS_SLOT_INDEX, 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, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noPhysics, PASSENGERS_TAG, portalProcess, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, wasEyeInWater, wasInPowderSnow, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOld
从接口继承的字段 net.minecraft.world.entity.Leashable
LEASH_ELASTIC_DIST, LEASH_TAG, LEASH_TOO_FAR_DIST
从接口继承的字段 net.minecraft.world.scores.ScoreHolder
WILDCARD, WILDCARD_NAME
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
addAdditionalSaveData
(CompoundTag p_30589_) protected void
void
aiStep()
protected boolean
canDispenserEquipIntoSlot
(EquipmentSlot p_363135_) boolean
boolean
canJump()
boolean
protected boolean
protected boolean
boolean
causeFallDamage
(float p_149499_, float p_149500_, DamageSource p_149501_) void
containerChanged
(Container p_30548_) static AttributeSupplier.Builder
protected void
(专用程序包) static double
createOffspringAttribute
(double p_272685_, double p_273709_, double p_273376_, double p_273030_, RandomSource p_272743_) protected void
defineSynchedData
(SynchedEntityData.Builder p_334643_) protected void
doPlayerRide
(Player p_30634_) protected void
dropEquipment
(ServerLevel p_369371_) private void
eating()
void
equipBodyArmor
(Player p_335804_, ItemStack p_327797_) void
equipSaddle
(ItemStack p_343290_, SoundSource p_30546_) protected void
executeRidersJump
(float p_248808_, Vec3 p_275435_) finalizeSpawn
(ServerLevelAccessor p_30555_, DifficultyInstance p_30556_, EntitySpawnReason p_365113_, SpawnGroupData p_30558_) Forge: Override-Only, call via ForgeEventFactory.onFinalizeSpawn.
Overrides are allowed.protected void
followMommy
(ServerLevel p_369753_) protected static double
generateJumpStrength
(DoubleSupplier p_272718_) protected static float
generateMaxHealth
(IntUnaryOperator p_272695_) protected static double
generateSpeed
(DoubleSupplier p_273691_) int
int
protected SoundEvent
final Container
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.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_) int
final int
static int
getInventorySize
(int p_345108_) int
int
float
getMouthAnim
(float p_30534_) protected Vec3
getPassengerAttachmentPoint
(Entity p_301103_, EntityDimensions p_298879_, float p_299886_) protected Vec3
getRiddenInput
(Player p_278278_, Vec3 p_275506_) protected Vec2
getRiddenRotation
(LivingEntity p_275502_) protected float
getRiddenSpeed
(Player p_278336_) getSlot
(int p_149514_) protected float
float
getStandAnim
(float p_30668_) int
protected boolean
handleEating
(Player p_30593_, ItemStack p_30594_) void
handleEntityEvent
(byte p_30541_) boolean
handleLeashAtDistance
(Entity p_344799_, float p_342991_) void
handleStartJump
(int p_30574_) void
boolean
hasInventoryChanged
(Container p_149512_) boolean
hurtServer
(ServerLevel p_362456_, DamageSource p_368293_, float p_368244_) void
boolean
isBred()
boolean
isEating()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isTamed()
private boolean
isWoodSoundType
(SoundType p_278280_) void
makeMad()
mobInteract
(Player p_252289_, InteractionHand p_248927_) int
modifyTemper
(int p_30654_) private void
moveTail()
boolean
void
onPlayerJump
(int p_30591_) void
openCustomInventoryScreen
(Player p_218808_) private void
protected void
playGallopSound
(SoundType p_30560_) protected void
protected void
playStepSound
(BlockPos p_30584_, BlockState p_30585_) protected void
positionRider
(Entity p_289569_, Entity.MoveFunction p_289558_) protected void
randomizeAttributes
(RandomSource p_218804_) 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_) private void
setOffspringAttribute
(AgeableMob p_273163_, AbstractHorse p_273784_, Holder<Attribute> p_330057_, double p_272663_, double p_273405_) 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_) void
protected void
boolean
tameWithName
(Player p_30638_) void
tick()
protected void
tickRidden
(Player p_278233_, Vec3 p_275693_) 从类继承的方法 net.minecraft.world.entity.animal.Animal
actuallyHurt, canFallInLove, checkAnimalSpawnRules, createAnimalAttributes, customServerAiStep, finalizeSpawnChildFromBreeding, getBaseExperienceReward, getInLoveTime, getLoveCause, getWalkTargetValue, isBrightEnoughToSpawn, isInLove, playEatingSound, removeWhenFarAway, resetLove, setInLove, setInLoveTime, spawnChildFromBreeding, usePlayerItem
从类继承的方法 net.minecraft.world.entity.AgeableMob
ageBoundaryReached, ageUp, ageUp, canBreed, getAge, getForcedAge, getForcedAgeTimer, getSpeedUpSecondsWhenFeeding, isBaby, onSyncedDataUpdated, setAge, setBaby
从类继承的方法 net.minecraft.world.entity.PathfinderMob
checkSpawnRules, closeRangeLeashBehaviour, followLeashSpeed, getWalkTargetValue, isPanicking, isPathFinding, shouldStayCloseToLeashHolder
从类继承的方法 net.minecraft.world.entity.Mob
ate, baseTick, canAttackType, canBeLeashed, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canUseSlot, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, clampHeadRotationToBody, clearRestriction, convertTo, convertTo, createBodyControl, createMobAttributes, createNavigation, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropPreservedEquipment, dropPreservedEquipment, enchantSpawnedArmor, enchantSpawnedWeapon, equip, equip, equipItemIfPossible, getAmbientSound, getArmorAndBodyArmorSlots, getArmorDropChances, getArmorSlots, getAttackBoundingBox, getBodyArmorItem, getEquipmentDropChance, getEquipmentForSlot, getHandDropChances, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashData, getLookControl, getLootTable, getLootTableSeed, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMoveControl, getNavigation, getPathfindingMalus, getPickResult, getPickupReach, getPreferredWeaponType, getRestrictCenter, getRestrictRadius, getSensing, getSpawnReason, getTarget, getTargetFromBrain, hasRestriction, interact, isAggressive, isEffectiveAi, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSpawnCancelled, isSunBurnTick, isWearingBodyArmor, isWithinMeleeAttackRange, isWithinRestriction, isWithinRestriction, jumpInFluid, jumpInLiquid, leashTooFarBehaviour, lookAt, onAttributeUpdated, onLeashRemoved, onOffspringSpawnedFromEgg, onPathfindingDone, onPathfindingStart, pickUpItem, playAmbientSound, playAttackSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, removeAfterChangingDimensions, removeAllGoals, removeFreeWill, requiresCustomPersistence, restrictTo, sendDebugPackets, serverAiStep, setAggressive, setBodyArmorItem, setCanPickUpLoot, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashData, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpawnCancelled, setSpeed, setTarget, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, stopInPlace, tickHeadTurn, updateControlFlags, wantsToPickUp
从类继承的方法 net.minecraft.world.entity.LivingEntity
activeLocationDependentEnchantments, addEffect, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, calculateEntityAnimation, calculateFallDamage, canAttack, canBeAffected, canBeNameTagged, canBeSeenAsEnemy, canBeSeenByAnyone, canBreatheUnderwater, cancelLerp, canDisableShield, canEquipWithDispenser, canFreeze, canGlide, canGlideUsing, canStandOnFluid, canUsePortal, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, decreaseAirSupply, die, doAutoAttackOnTouch, doesEmitEquipEvent, doHurtEquipment, doPush, dropAllDeathLoot, dropExperience, dropFromGiftLootTable, dropFromLootTable, dropFromShearingLootTable, equipmentHasChanged, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAgeScale, getAllSlots, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBrain, getCombatTracker, getComfortableFallDistance, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDeathSound, getDefaultDimensions, getDefaultGravity, getDimensions, getDismountPoses, getEffect, getEffectiveGravity, getEquipmentSlotForItem, getExperienceReward, getFallFlyingTicks, getFallSounds, getFluidFallingAdjustedMovement, getFlyingSpeed, getHealth, getHitbox, getHurtDir, getHurtSound, getItemBlockingWith, getItemHeldByArm, getItemInHand, getJumpBoostPower, getJumpPower, getJumpPower, getKillCredit, getKnockback, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtByPlayerTime, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxAbsorption, getMaxHeadRotationRelativeToBody, getMaxHealth, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getPreciseBodyRotation, getProjectile, getRelativePortalPosition, getScale, getSleepingPos, getSlotForHand, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getWeaponItem, getYHeadRot, goDownInWater, handleDamageEvent, handleExtraItemsCreatedOnUse, hasEffect, hasInfiniteMaterials, hasItemInSlot, hasLandedInLiquid, hasLineOfSight, hasLineOfSight, heal, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, igniteForTicks, increaseAirSupply, indicateDamage, internalSetAbsorptionAmount, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isEquippableInSlot, isFallFlying, isHolding, isHolding, isInvertedHealAndHarm, isInvulnerableTo, isInWall, isLookingAtMe, isPickable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadRotationStep, lerpHeadTo, lerpTargetX, lerpTargetXRot, lerpTargetY, lerpTargetYRot, lerpTargetZ, lerpTo, lookAt, makeBrain, makePoofParticles, makeSound, maxUpStep, onBelowWorld, onChangedBlock, onEffectAdded, onEffectsRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onEquippedItemBroken, onItemPickup, onLeaveCombat, playBlockFallSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, remove, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, resetForwardDirectionOfRelativePortalPosition, resolveMobResponsibleForDamage, resolvePlayerResponsibleForDamage, reviveCaps, rideTick, sanitizeScale, sendEffectToPassengers, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRiderFaceForward, shouldShowName, skipDropExperience, spawnItemParticles, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, travel, triggerOnDeathMobEffects, tryAddFrost, updateEffectVisibility, updateFallFlying, updateInvisibilityStatus, updateSwingTime, updateUsingItem, updateWalkAnimation, verifyEquippedItem, wasExperienceConsumed, wouldNotSuffocateAtTargetPose
从类继承的方法 net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, absRotateTo, addDeltaMovement, addPassenger, addTag, adjustSpawnLocation, applyEffectsFromBlocks, applyEffectsFromBlocks, applyGravity, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canCollideWith, canControlVehicle, canRide, canSpawnSprintParticle, canSprint, canTeleport, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, checkBelowWorld, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, considersEntityAsAlly, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStackForNameResolution, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doCheckFallDamage, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, fireImmune, fixupDimensions, forceSetRotation, fudgePositionAfterSizeChange, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAttachments, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getCustomName, getDefaultPassengerAttachmentPoint, getDeltaMovement, getDimensionChangingDelay, getDirection, getDisplayName, getEncodeId, getEntityData, getEyeHeight, getEyeHeight, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getGravity, getHandHoldingItemAngle, getId, getInBlockState, getIndirectPassengers, getInputVector, getKnownMovement, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getMovementEmission, getName, getNearestViewDirection, getOnPos, getOnPos, getOnPosLegacy, getPassengers, getPassengersAndSelf, getPercentFrozen, getPersistentData, getPickRadius, getPistonPushReaction, getPortalCooldown, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandom, 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, getVehicleAttachmentPoint, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getXRot, getY, getY, getYRot, getYRot, getZ, getZ, handlePortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPose, hurt, hurtClient, hurtOrSimulate, igniteForSeconds, ignoreExplosion, interactAt, is, isAddedToWorld, isAffectedByBlocks, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByClient, isControlledByLocalInstance, isControlledByOrIsLocalPlayer, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInLiquid, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableToBase, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterOrSwimmable, 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, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, oldPosition, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onExplosionHit, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onPassengerTurned, onRemoval, onRemovedFromWorld, onSyncedDataUpdated, pick, placePortalTicket, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playSwimSound, position, positionRider, processFlappingMovement, processPortalCooldown, push, push, reapplyPosition, recordMovementThroughBlocks, refreshDimensions, registryAccess, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, setAirSupply, setAsInsidePortal, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setNoGravity, setOldPos, setOldPosAndRot, setOldPosAndRot, setOldRot, setOnGround, setOnGroundWithMovement, setOnGroundWithMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldPlayLavaHurtSound, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, syncPacketPositionCodec, teleport, teleportRelative, teleportSetPosition, teleportTo, teleportTo, thunderHit, toString, touchingUnloadedChunk, trackingPosition, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSound
从类继承的方法 net.minecraftforge.common.capabilities.CapabilityProvider
deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCaps
从接口继承的方法 net.minecraft.world.entity.EquipmentUser
equip, equip, equip, resolveSlot
从接口继承的方法 net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
从接口继承的方法 net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, deserializeNBT, getClassification, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getSoundFromFluidType, hasCustomOutlineRendering, isAddedToWorld, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToWorld, onRemovedFromWorld, revive, serializeNBT, shouldRiderSit, shouldUpdateFluidWhileBoating
从接口继承的方法 net.minecraftforge.common.extensions.IForgeLivingEntity
canDrownInFluidType, canSwimInFluidType, moveInFluid, self, sinkInFluid
从接口继承的方法 net.minecraft.world.entity.Leashable
canHaveALeashAttachedToIt, dropLeash, elasticRangeLeashBehaviour, getLeashHolder, isLeashed, mayBeLeashed, readLeashData, removeLeash, setDelayedLeashHolderId, setLeashedTo, writeLeashData
从接口继承的方法 net.minecraft.world.entity.OwnableEntity
getOwner, level
从接口继承的方法 net.minecraft.world.entity.PlayerRideableJumping
getJumpCooldown
从接口继承的方法 net.minecraft.world.entity.Saddleable
getSaddleSoundEvent
从接口继承的方法 net.minecraft.world.scores.ScoreHolder
getFeedbackDisplayName
-
字段详细资料
-
EQUIPMENT_SLOT_OFFSET
public static final int EQUIPMENT_SLOT_OFFSET- 另请参阅:
-
CHEST_SLOT_OFFSET
public static final int CHEST_SLOT_OFFSET- 另请参阅:
-
INVENTORY_SLOT_OFFSET
public static final int INVENTORY_SLOT_OFFSET- 另请参阅:
-
BREEDING_CROSS_FACTOR
public static final double BREEDING_CROSS_FACTOR- 另请参阅:
-
MIN_MOVEMENT_SPEED
private static final float MIN_MOVEMENT_SPEED -
MAX_MOVEMENT_SPEED
private static final float MAX_MOVEMENT_SPEED -
MIN_JUMP_STRENGTH
private static final float MIN_JUMP_STRENGTH -
MAX_JUMP_STRENGTH
private static final float MAX_JUMP_STRENGTH -
MIN_HEALTH
private static final float MIN_HEALTH -
MAX_HEALTH
private static final float MAX_HEALTH -
BACKWARDS_MOVE_SPEED_FACTOR
private static final float BACKWARDS_MOVE_SPEED_FACTOR- 另请参阅:
-
SIDEWAYS_MOVE_SPEED_FACTOR
private static final float SIDEWAYS_MOVE_SPEED_FACTOR- 另请参阅:
-
PARENT_HORSE_SELECTOR
-
MOMMY_TARGETING
-
DATA_ID_FLAGS
-
FLAG_TAME
private static final int FLAG_TAME- 另请参阅:
-
FLAG_SADDLE
private static final int FLAG_SADDLE- 另请参阅:
-
FLAG_BRED
private static final int FLAG_BRED- 另请参阅:
-
FLAG_EATING
private static final int FLAG_EATING- 另请参阅:
-
FLAG_STANDING
private static final int FLAG_STANDING- 另请参阅:
-
FLAG_OPEN_MOUTH
private static final int FLAG_OPEN_MOUTH- 另请参阅:
-
INV_SLOT_SADDLE
public static final int INV_SLOT_SADDLE- 另请参阅:
-
INV_BASE_COUNT
public static final int INV_BASE_COUNT- 另请参阅:
-
INVENTORY_ROWS
public static final int INVENTORY_ROWS- 另请参阅:
-
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
protected 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 -
owner
-
bodyArmorAccess
-
itemHandler
-
-
构造器详细资料
-
AbstractHorse
-
-
方法详细资料
-
registerGoals
protected void registerGoals()- 覆盖:
registerGoals
在类中Mob
-
addBehaviourGoals
protected void addBehaviourGoals() -
defineSynchedData
- 覆盖:
defineSynchedData
在类中AgeableMob
-
getFlag
protected boolean getFlag(int p_30648_) -
setFlag
protected void setFlag(int p_30598_, boolean p_30599_) -
isTamed
public boolean isTamed() -
getOwnerUUID
- 指定者:
getOwnerUUID
在接口中OwnableEntity
-
setOwnerUUID
-
isJumping
public boolean isJumping() -
setTamed
public void setTamed(boolean p_30652_) -
setIsJumping
public void setIsJumping(boolean p_30656_) -
handleLeashAtDistance
- 指定者:
handleLeashAtDistance
在接口中Leashable
- 覆盖:
handleLeashAtDistance
在类中PathfinderMob
-
isEating
public boolean isEating() -
isStanding
public boolean isStanding() -
isBred
public boolean isBred() -
setBred
public void setBred(boolean p_30658_) -
isSaddleable
public boolean isSaddleable()- 指定者:
isSaddleable
在接口中Saddleable
-
equipSaddle
- 指定者:
equipSaddle
在接口中Saddleable
-
equipBodyArmor
-
canDispenserEquipIntoSlot
- 覆盖:
canDispenserEquipIntoSlot
在类中Mob
-
isSaddled
public boolean isSaddled()- 指定者:
isSaddled
在接口中Saddleable
-
getTemper
public int getTemper() -
setTemper
public void setTemper(int p_30650_) -
modifyTemper
public int modifyTemper(int p_30654_) -
isPushable
public boolean isPushable()- 覆盖:
isPushable
在类中LivingEntity
-
eating
private void eating() -
causeFallDamage
- 覆盖:
causeFallDamage
在类中LivingEntity
-
getInventorySize
public final int getInventorySize() -
getInventorySize
public static int getInventorySize(int p_345108_) -
createInventory
protected void createInventory() -
syncSaddleToClients
protected void syncSaddleToClients() -
containerChanged
- 指定者:
containerChanged
在接口中ContainerListener
-
hurtServer
- 覆盖:
hurtServer
在类中LivingEntity
-
canPerformRearing
protected boolean canPerformRearing() -
getEatingSound
-
getAngrySound
-
playStepSound
- 覆盖:
playStepSound
在类中Entity
-
isWoodSoundType
-
playGallopSound
-
createBaseHorseAttributes
-
getMaxSpawnClusterSize
public int getMaxSpawnClusterSize()- 覆盖:
getMaxSpawnClusterSize
在类中Mob
-
getMaxTemper
public int getMaxTemper() -
getSoundVolume
protected float getSoundVolume()- 覆盖:
getSoundVolume
在类中LivingEntity
-
getAmbientSoundInterval
public int getAmbientSoundInterval()- 覆盖:
getAmbientSoundInterval
在类中Animal
-
openCustomInventoryScreen
-
fedFood
-
handleEating
-
doPlayerRide
-
isImmobile
public boolean isImmobile()- 覆盖:
isImmobile
在类中LivingEntity
-
isFood
-
moveTail
private void moveTail() -
dropEquipment
- 覆盖:
dropEquipment
在类中LivingEntity
-
aiStep
public void aiStep() -
followMommy
-
canEatGrass
public boolean canEatGrass() -
tick
public void tick() -
mobInteract
- 覆盖:
mobInteract
在类中Animal
-
openMouth
private void openMouth() -
setEating
public void setEating(boolean p_30662_) -
setStanding
public void setStanding(boolean p_30666_) -
getAmbientStandSound
-
standIfPossible
public void standIfPossible() -
makeMad
public void makeMad() -
tameWithName
-
tickRidden
- 覆盖:
tickRidden
在类中LivingEntity
-
getRiddenRotation
-
getRiddenInput
- 覆盖:
getRiddenInput
在类中LivingEntity
-
getRiddenSpeed
- 覆盖:
getRiddenSpeed
在类中LivingEntity
-
executeRidersJump
-
playJumpSound
protected void playJumpSound() -
addAdditionalSaveData
- 覆盖:
addAdditionalSaveData
在类中Animal
-
readAdditionalSaveData
- 覆盖:
readAdditionalSaveData
在类中Animal
-
canMate
-
canParent
protected boolean canParent() -
getBreedOffspring
- 指定者:
getBreedOffspring
在类中AgeableMob
-
setOffspringAttributes
-
setOffspringAttribute
private void setOffspringAttribute(AgeableMob p_273163_, AbstractHorse p_273784_, Holder<Attribute> p_330057_, double p_272663_, double p_273405_) -
createOffspringAttribute
static double createOffspringAttribute(double p_272685_, double p_273709_, double p_273376_, double p_273030_, RandomSource p_272743_) -
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_) - 指定者:
onPlayerJump
在接口中PlayerRideableJumping
-
canJump
public boolean canJump()- 指定者:
canJump
在接口中PlayerRideableJumping
-
handleStartJump
public void handleStartJump(int p_30574_) - 指定者:
handleStartJump
在接口中PlayerRideableJumping
-
handleStopJump
public void handleStopJump()- 指定者:
handleStopJump
在接口中PlayerRideableJumping
-
spawnTamingParticles
protected void spawnTamingParticles(boolean p_30670_) -
handleEntityEvent
public void handleEntityEvent(byte p_30541_) - 覆盖:
handleEntityEvent
在类中Animal
-
positionRider
- 覆盖:
positionRider
在类中Entity
-
generateMaxHealth
-
generateJumpStrength
-
generateSpeed
-
onClimbable
public boolean onClimbable()- 覆盖:
onClimbable
在类中LivingEntity
-
getSlot
- 覆盖:
getSlot
在类中LivingEntity
-
getControllingPassenger
- 覆盖:
getControllingPassenger
在类中Mob
-
getDismountLocationInDirection
-
getDismountLocationForPassenger
-
randomizeAttributes
-
finalizeSpawn
@Nullable public SpawnGroupData finalizeSpawn(ServerLevelAccessor p_30555_, DifficultyInstance p_30556_, EntitySpawnReason p_365113_, @Nullable SpawnGroupData p_30558_) 从类复制的说明:Mob
Forge: 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.spawnReason
field from within your override.- 覆盖:
finalizeSpawn
在类中AgeableMob
-
hasInventoryChanged
-
getAmbientStandInterval
public int getAmbientStandInterval() -
getPassengerAttachmentPoint
protected Vec3 getPassengerAttachmentPoint(Entity p_301103_, EntityDimensions p_298879_, float p_299886_) - 覆盖:
getPassengerAttachmentPoint
在类中Entity
-
getBodyArmorAccess
-
getCapability
从接口复制的说明: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.- 指定者:
getCapability
在接口中ICapabilityProvider
- 覆盖:
getCapability
在类中LivingEntity
- 参数:
capability
- The capability to checkfacing
- The Side to check from, CAN BE NULL. Null is defined to represent 'internal' or 'self'- 返回:
- The requested an optional holding the requested capability.
-
invalidateCaps
public void invalidateCaps()- 指定者:
invalidateCaps
在接口中ICapabilityProviderImpl<Entity>
- 覆盖:
invalidateCaps
在类中LivingEntity
-
getInventoryColumns
public int getInventoryColumns()
-