类 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
- 所有已实现的接口:
CommandSource
,ContainerListener
,Attackable
,HasCustomInventoryScreen
,OwnableEntity
,PlayerRideable
,PlayerRideableJumping
,Saddleable
,Targeting
,EntityAccess
,Nameable
,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>>
-
字段概要
字段修饰符和类型字段说明protected boolean
private static final float
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
private static final Ingredient
protected int
static final int
static final int
static final int
protected SimpleContainer
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 Predicate<LivingEntity>
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, 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, xpReward
从类继承的字段 net.minecraft.world.entity.LivingEntity
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, HAND_SLOTS, 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, walkAnimation, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza
从类继承的字段 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_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, zOld
从接口继承的字段 net.minecraft.commands.CommandSource
NULL
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
addAdditionalSaveData
(CompoundTag pCompound) protected void
void
aiStep()
protected int
calculateFallDamage
(float pDistance, float pDamageMultiplier) boolean
boolean
canJump()
boolean
protected boolean
protected boolean
boolean
boolean
causeFallDamage
(float pFallDistance, float pMultiplier, DamageSource pSource) void
containerChanged
(Container pInvBasic) static AttributeSupplier.Builder
private SlotAccess
createEquipmentSlotAccess
(int pSlot, Predicate<ItemStack> pStackFilter) protected void
(专用程序包) static double
createOffspringAttribute
(double pValue1, double pValue2, double pMin, double pMax, RandomSource pRandom) protected void
protected void
doPlayerRide
(Player pPlayer) protected void
private void
eating()
void
equipArmor
(Player pPlayer, ItemStack pArmor) void
equipSaddle
(SoundSource pSource) protected void
executeRidersJump
(float pPlayerJumpPendingScale, Vec3 pTravelVector) finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pReason, SpawnGroupData pSpawnData, CompoundTag pDataTag) Forge: Override-Only, call via ForgeEventFactory.onFinalizeSpawn.
Overrides are allowed.protected void
protected static double
generateJumpStrength
(DoubleSupplier pSupplier) protected static float
generateMaxHealth
(IntUnaryOperator pOperator) protected static double
generateSpeed
(DoubleSupplier pSupplier) int
int
protected SoundEvent
getBreedOffspring
(ServerLevel pLevel, AgeableMob pOtherParent) <T> LazyOptional<T>
getCapability
(Capability<T> capability, Direction facing) Retrieves the Optional handler for the capability requested on the specific side.double
getDismountLocationForPassenger
(LivingEntity pLivingEntity) private Vec3
getDismountLocationInDirection
(Vec3 pDirection, LivingEntity pPassenger) float
getEatAnim
(float pPartialTick) protected SoundEvent
protected boolean
getFlag
(int pFlagId) protected int
int
int
float
getMouthAnim
(float pPartialTick) protected Vec3
getRiddenInput
(Player pPlayer, Vec3 pTravelVector) protected Vec2
getRiddenRotation
(LivingEntity pEntity) protected float
getRiddenSpeed
(Player pPlayer) getSlot
(int pSlot) protected float
float
getStandAnim
(float pPartialTick) protected float
getStandingEyeHeight
(Pose pPose, EntityDimensions pSize) int
protected boolean
handleEating
(Player pPlayer, ItemStack pStack) void
handleEntityEvent
(byte pId) void
handleStartJump
(int pJumpPower) void
boolean
hasInventoryChanged
(Container pInventory) boolean
hurt
(DamageSource pSource, float pAmount) void
boolean
boolean
isBred()
boolean
isEating()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isTamed()
boolean
private boolean
isWoodSoundType
(SoundType pSoundType) void
makeMad()
mobInteract
(Player pPlayer, InteractionHand pHand) int
modifyTemper
(int pAddedTemper) private void
moveTail()
boolean
protected void
onLeashDistance
(float pDistance) void
onPlayerJump
(int pJumpPower) void
openCustomInventoryScreen
(Player pPlayer) private void
protected void
playGallopSound
(SoundType pSoundType) protected void
protected void
playStepSound
(BlockPos pPos, BlockState pBlock) protected void
positionRider
(Entity pPassenger, Entity.MoveFunction pCallback) protected void
randomizeAttributes
(RandomSource pRandom) void
readAdditionalSaveData
(CompoundTag pCompound) protected void
void
setBred
(boolean pBreeding) void
setEating
(boolean pEating) protected void
setFlag
(int pFlagId, boolean pValue) void
setIsJumping
(boolean pJumping) private void
setOffspringAttribute
(AgeableMob pOtherParent, AbstractHorse pChild, Attribute pAttribute, double pMin, double pMax) protected void
setOffspringAttributes
(AgeableMob pParent, AbstractHorse pChild) void
setOwnerUUID
(UUID pUuid) void
setStanding
(boolean pStanding) void
setTamed
(boolean pTamed) void
setTemper
(int pTemper) protected void
spawnTamingParticles
(boolean pTamed) void
boolean
tameWithName
(Player pPlayer) void
tick()
protected void
tickRidden
(Player pPlayer, Vec3 pTravelVector) protected void
从类继承的方法 net.minecraft.world.entity.animal.Animal
canFallInLove, checkAnimalSpawnRules, customServerAiStep, finalizeSpawnChildFromBreeding, getExperienceReward, getInLoveTime, getLoveCause, getMyRidingOffset, getWalkTargetValue, isBrightEnoughToSpawn, isInLove, removeWhenFarAway, resetLove, setInLove, setInLoveTime, spawnChildFromBreeding, usePlayerItem
从类继承的方法 net.minecraft.world.entity.AgeableMob
ageBoundaryReached, ageUp, ageUp, canBreed, getAge, getSpeedUpSecondsWhenFeeding, isBaby, onSyncedDataUpdated, setAge, setBaby
从类继承的方法 net.minecraft.world.entity.PathfinderMob
checkSpawnRules, followLeashSpeed, getWalkTargetValue, isPathFinding, shouldStayCloseToLeashHolder, tickLeash
从类继承的方法 net.minecraft.world.entity.Mob
ate, 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, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getLootTableSeed, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMeleeAttackRangeSqr, getMoveControl, getNavigation, getPathfindingMalus, getPerceivedTargetDistanceSquareForMeleeAttack, 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, wantsToPickUp
从类继承的方法 net.minecraft.world.entity.LivingEntity
actuallyHurt, 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, getHurtDir, getHurtSound, getItemInHand, getJumpBoostPower, getJumpPower, getKillCredit, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getMeleeAttackReferencePosition, getMobType, getNoActionTime, getOffhandItem, 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, 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, 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
从类继承的方法 net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canCollideWith, canEnterPose, 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, getBoundingBoxForPose, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getCustomName, getDeltaMovement, getDimensionChangingDelay, 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, getPassengersRidingOffset, 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, 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, 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, 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, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSound
从类继承的方法 net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCaps
从接口继承的方法 net.minecraft.commands.CommandSource
alwaysAccepts
从接口继承的方法 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, getPickedResult, getSoundFromFluidType, getStepHeight, hasCustomOutlineRendering, isAddedToWorld, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToWorld, onRemovedFromWorld, revive, serializeNBT, shouldRiderSit
从接口继承的方法 net.minecraftforge.common.extensions.IForgeLivingEntity
canDrownInFluidType, canSwimInFluidType, moveInFluid, self, sinkInFluid
从接口继承的方法 net.minecraft.world.entity.OwnableEntity
getOwner, level
从接口继承的方法 net.minecraft.world.entity.PlayerRideableJumping
getJumpCooldown
从接口继承的方法 net.minecraft.world.entity.Saddleable
getSaddleSoundEvent
-
字段详细资料
-
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
-
FOOD_ITEMS
-
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_SLOT_ARMOR
public static final int INV_SLOT_ARMOR- 另请参阅:
-
INV_BASE_COUNT
public static final int INV_BASE_COUNT- 另请参阅:
-
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
-
itemHandler
-
-
构造器详细资料
-
AbstractHorse
-
-
方法详细资料
-
registerGoals
protected void registerGoals()- 覆盖:
registerGoals
在类中Mob
-
addBehaviourGoals
protected void addBehaviourGoals() -
defineSynchedData
protected void defineSynchedData()- 覆盖:
defineSynchedData
在类中AgeableMob
-
getFlag
protected boolean getFlag(int pFlagId) -
setFlag
protected void setFlag(int pFlagId, boolean pValue) -
isTamed
public boolean isTamed() -
getOwnerUUID
- 指定者:
getOwnerUUID
在接口中OwnableEntity
-
setOwnerUUID
-
isJumping
public boolean isJumping() -
setTamed
public void setTamed(boolean pTamed) -
setIsJumping
public void setIsJumping(boolean pJumping) -
onLeashDistance
protected void onLeashDistance(float pDistance) - 覆盖:
onLeashDistance
在类中PathfinderMob
-
isEating
public boolean isEating() -
isStanding
public boolean isStanding() -
isBred
public boolean isBred() -
setBred
public void setBred(boolean pBreeding) -
isSaddleable
public boolean isSaddleable()- 指定者:
isSaddleable
在接口中Saddleable
-
equipSaddle
- 指定者:
equipSaddle
在接口中Saddleable
-
equipArmor
-
isSaddled
public boolean isSaddled()- 指定者:
isSaddled
在接口中Saddleable
-
getTemper
public int getTemper() -
setTemper
public void setTemper(int pTemper) -
modifyTemper
public int modifyTemper(int pAddedTemper) -
isPushable
public boolean isPushable()- 覆盖:
isPushable
在类中LivingEntity
-
eating
private void eating() -
causeFallDamage
- 覆盖:
causeFallDamage
在类中LivingEntity
-
calculateFallDamage
protected int calculateFallDamage(float pDistance, float pDamageMultiplier) - 覆盖:
calculateFallDamage
在类中LivingEntity
-
getInventorySize
protected int getInventorySize() -
createInventory
protected void createInventory() -
updateContainerEquipment
protected void updateContainerEquipment() -
containerChanged
- 指定者:
containerChanged
在接口中ContainerListener
-
getCustomJump
public double getCustomJump() -
hurt
-
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
protected void dropEquipment()- 覆盖:
dropEquipment
在类中LivingEntity
-
aiStep
public void aiStep() -
followMommy
protected void followMommy() -
canEatGrass
public boolean canEatGrass() -
tick
public void tick() -
mobInteract
- 覆盖:
mobInteract
在类中Animal
-
openMouth
private void openMouth() -
setEating
public void setEating(boolean pEating) -
setStanding
public void setStanding(boolean pStanding) -
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 pOtherParent, AbstractHorse pChild, Attribute pAttribute, double pMin, double pMax) -
createOffspringAttribute
static double createOffspringAttribute(double pValue1, double pValue2, double pMin, double pMax, RandomSource pRandom) -
getEatAnim
public float getEatAnim(float pPartialTick) -
getStandAnim
public float getStandAnim(float pPartialTick) -
getMouthAnim
public float getMouthAnim(float pPartialTick) -
onPlayerJump
public void onPlayerJump(int pJumpPower) - 指定者:
onPlayerJump
在接口中PlayerRideableJumping
-
canJump
public boolean canJump()- 指定者:
canJump
在接口中PlayerRideableJumping
-
handleStartJump
public void handleStartJump(int pJumpPower) - 指定者:
handleStartJump
在接口中PlayerRideableJumping
-
handleStopJump
public void handleStopJump()- 指定者:
handleStopJump
在接口中PlayerRideableJumping
-
spawnTamingParticles
protected void spawnTamingParticles(boolean pTamed) -
handleEntityEvent
public void handleEntityEvent(byte pId) - 覆盖:
handleEntityEvent
在类中Animal
-
positionRider
- 覆盖:
positionRider
在类中Entity
-
generateMaxHealth
-
generateJumpStrength
-
generateSpeed
-
onClimbable
public boolean onClimbable()- 覆盖:
onClimbable
在类中LivingEntity
-
getStandingEyeHeight
- 覆盖:
getStandingEyeHeight
在类中LivingEntity
-
canWearArmor
public boolean canWearArmor() -
isWearingArmor
public boolean isWearingArmor() -
isArmor
-
createEquipmentSlotAccess
-
getSlot
- 覆盖:
getSlot
在类中LivingEntity
-
getControllingPassenger
- 覆盖:
getControllingPassenger
在类中Mob
-
getDismountLocationInDirection
-
getDismountLocationForPassenger
-
randomizeAttributes
-
finalizeSpawn
@Nullable public SpawnGroupData finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pReason, @Nullable SpawnGroupData pSpawnData, @Nullable CompoundTag pDataTag) 从类复制的说明: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.spawnType
field from within your override.- 覆盖:
finalizeSpawn
在类中AgeableMob
-
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
-
hasInventoryChanged
-
getAmbientStandInterval
public int getAmbientStandInterval()
-