Class AbstractHorseEntity
- java.lang.Object
-
- net.minecraftforge.common.capabilities.CapabilityProvider<Entity>
-
- net.minecraft.entity.Entity
-
- net.minecraft.entity.LivingEntity
-
- net.minecraft.entity.MobEntity
-
- net.minecraft.entity.CreatureEntity
-
- net.minecraft.entity.AgeableEntity
-
- net.minecraft.entity.passive.AnimalEntity
-
- net.minecraft.entity.passive.horse.AbstractHorseEntity
-
- All Implemented Interfaces:
ICommandSource,IEquipable,IJumpingMount,IInventoryChangedListener,INameable,ICapabilityProvider,ICapabilitySerializable<CompoundNBT>,IForgeEntity,INBTSerializable<CompoundNBT>
- Direct Known Subclasses:
AbstractChestedHorseEntity,HorseEntity,SkeletonHorseEntity,ZombieHorseEntity
public abstract class AbstractHorseEntity extends AnimalEntity implements IInventoryChangedListener, IJumpingMount, IEquipable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.entity.AgeableEntity
AgeableEntity.AgeableData
-
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.IMoveCallback
-
-
Field Summary
Fields Modifier and Type Field Description private booleanallowStandSlidingprotected booleancanGallopprivate static DataParameter<java.lang.Byte>DATA_ID_FLAGSprivate static DataParameter<java.util.Optional<java.util.UUID>>DATA_ID_OWNER_UUIDprivate floateatAnimprivate floateatAnimOprivate inteatingCounterprivate static IngredientFOOD_ITEMSprotected intgallopSoundCounterprotected Inventoryinventoryprotected booleanisJumpingprivate LazyOptional<?>itemHandlerprivate static EntityPredicateMOMMY_TARGETINGprivate floatmouthAnimprivate floatmouthAnimOprivate intmouthCounterprivate static java.util.function.Predicate<LivingEntity>PARENT_HORSE_SELECTORprotected floatplayerJumpPendingScaleintsprintCounterprivate floatstandAnimprivate floatstandAnimOprivate intstandCounterinttailCounterprotected inttemper-
Fields inherited from class net.minecraft.entity.AgeableEntity
age, forcedAge, forcedAgeTimer
-
Fields inherited from class net.minecraft.entity.MobEntity
ambientSoundTime, armorDropChances, goalSelector, handDropChances, jumpControl, lookControl, moveControl, navigation, targetSelector, xpReward
-
Fields inherited from class net.minecraft.entity.LivingEntity
animationPosition, animationSpeed, animationSpeedOld, animStep, animStepO, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_LIVING_ENTITY_FLAGS, dead, deathScore, deathTime, fallFlyTicks, flyingSpeed, hurtDir, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, lyHeadRot, noActionTime, oAttackAnim, oRun, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, swinging, swingingArm, swingTime, timeOffs, useItem, useItemRemaining, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza
-
Fields inherited from class net.minecraft.entity.Entity
blocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, ENTITY_COUNTER, entityData, fallDistance, firstTick, fluidHeight, fluidOnEyes, forcedLoading, glowing, hasImpulse, horizontalCollision, hurtMarked, inChunk, invulnerableTime, isInsidePortal, level, LOGGER, maxUpStep, moveDist, noCulling, noPhysics, onGround, portalEntrancePos, portalTime, pushthrough, random, removed, stringUUID, stuckSpeedMultiplier, tickCount, uuid, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasTouchingWater, xChunk, xo, xOld, xRot, xRotO, yChunk, yo, yOld, yRot, yRotO, zChunk, zo, zOld
-
Fields inherited from interface net.minecraft.command.ICommandSource
NULL
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractHorseEntity(EntityType<? extends AbstractHorseEntity> p_i48563_1_, World p_i48563_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAdditionalSaveData(CompoundNBT p_213281_1_)protected voidaddBehaviourGoals()voidaiStep()protected intcalculateFallDamage(float p_225508_1_, float p_225508_2_)booleancanBeControlledByRider()booleancanEatGrass()booleancanJump()booleancanMate(AnimalEntity p_70878_1_)protected booleancanParent()booleancanWearArmor()booleancauseFallDamage(float p_225503_1_, float p_225503_2_)voidcontainerChanged(IInventory p_76316_1_)static AttributeModifierMap.MutableAttributecreateBaseHorseAttributes()protected voidcreateInventory()protected voiddefineSynchedData()protected voiddoPlayerRide(PlayerEntity p_110237_1_)protected voiddropEquipment()private voideating()voidequipSaddle(SoundCategory p_230266_1_)ActionResultTypefedFood(PlayerEntity p_241395_1_, ItemStack p_241395_2_)ILivingEntityDatafinalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)protected voidfollowMommy()protected doublegenerateRandomJumpStrength()protected floatgenerateRandomMaxHealth()protected doublegenerateRandomSpeed()protected SoundEventgetAmbientSound()intgetAmbientSoundInterval()protected SoundEventgetAngrySound()AgeableEntitygetBreedOffspring(ServerWorld p_241840_1_, AgeableEntity p_241840_2_)<T> LazyOptional<T>getCapability(Capability<T> capability, Direction facing)Retrieves the Optional handler for the capability requested on the specific side.EntitygetControllingPassenger()doublegetCustomJump()protected SoundEventgetDeathSound()Vector3dgetDismountLocationForPassenger(LivingEntity p_230268_1_)private Vector3dgetDismountLocationInDirection(Vector3d p_234236_1_, LivingEntity p_234236_2_)floatgetEatAnim(float p_110258_1_)protected SoundEventgetEatingSound()protected booleangetFlag(int p_110233_1_)protected SoundEventgetHurtSound(DamageSource p_184601_1_)protected intgetInventorySize()intgetMaxSpawnClusterSize()intgetMaxTemper()floatgetMouthAnim(float p_110201_1_)java.util.UUIDgetOwnerUUID()protected floatgetSoundVolume()floatgetStandAnim(float p_110223_1_)protected floatgetStandingEyeHeight(Pose p_213348_1_, EntitySize p_213348_2_)intgetTemper()protected booleanhandleEating(PlayerEntity p_190678_1_, ItemStack p_190678_2_)voidhandleEntityEvent(byte p_70103_1_)voidhandleStartJump(int p_184775_1_)voidhandleStopJump()protected voidinvalidateCaps()booleanisArmor(ItemStack p_190682_1_)booleanisBred()booleanisEating()booleanisFood(ItemStack p_70877_1_)protected booleanisImmobile()booleanisJumping()booleanisPushable()booleanisSaddleable()booleanisSaddled()booleanisStanding()booleanisTamed()booleanisWearingArmor()voidmakeMad()intmodifyTemper(int p_110198_1_)private voidmoveTail()booleanonClimbable()protected voidonLeashDistance(float p_142017_1_)voidonPlayerJump(int p_110206_1_)voidopenInventory(PlayerEntity p_110199_1_)private voidopenMouth()protected voidplayGallopSound(SoundType p_190680_1_)protected voidplayJumpSound()protected voidplayStepSound(BlockPos p_180429_1_, BlockState p_180429_2_)voidpositionRider(Entity p_184232_1_)protected voidrandomizeAttributes()voidreadAdditionalSaveData(CompoundNBT p_70037_1_)protected voidregisterGoals()voidsetBred(boolean p_110242_1_)voidsetEating(boolean p_110227_1_)protected voidsetFlag(int p_110208_1_, boolean p_110208_2_)voidsetIsJumping(boolean p_110255_1_)protected voidsetOffspringAttributes(AgeableEntity p_190681_1_, AbstractHorseEntity p_190681_2_)voidsetOwnerUUID(java.util.UUID p_184779_1_)booleansetSlot(int p_174820_1_, ItemStack p_174820_2_)voidsetStanding(boolean p_110219_1_)voidsetTamed(boolean p_110234_1_)voidsetTemper(int p_110238_1_)protected voidspawnTamingParticles(boolean p_110216_1_)private voidstand()booleantameWithName(PlayerEntity p_110263_1_)voidtick()voidtravel(Vector3d p_213352_1_)protected voidupdateContainerEquipment()-
Methods inherited from class net.minecraft.entity.passive.AnimalEntity
canFallInLove, checkAnimalSpawnRules, customServerAiStep, getExperienceReward, getInLoveTime, getLoveCause, getMyRidingOffset, getWalkTargetValue, hurt, isInLove, mobInteract, removeWhenFarAway, resetLove, setInLove, setInLoveTime, spawnChildFromBreeding, usePlayerItem
-
Methods inherited from class net.minecraft.entity.AgeableEntity
ageBoundaryReached, ageUp, ageUp, canBreed, getAge, isBaby, onSyncedDataUpdated, setAge, setBaby
-
Methods inherited from class net.minecraft.entity.CreatureEntity
checkSpawnRules, followLeashSpeed, getWalkTargetValue, isPathFinding, tickLeash
-
Methods inherited from class net.minecraft.entity.MobEntity
ate, baseTick, canAttack, canAttackType, canBeLeashed, canCutCorner, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, convertTo, createBodyControl, createLootContext, createMobAttributes, createNavigation, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getArmorSlots, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getEquipmentSlotForItem, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMoveControl, getNavigation, getPathfindingMalus, getRestrictCenter, getRestrictRadius, getSensing, getTarget, hasRestriction, interact, isAggressive, isControlledByLocalInstance, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isValidSlotForItem, isWithinRestriction, isWithinRestriction, jumpInLiquid, lookAt, onOffspringSpawnedFromEgg, pickUpItem, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, removeAfterChangingDimensions, requiresCustomPersistence, restrictTo, sendDebugPackets, serverAiStep, setAggressive, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpeed, setTarget, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, tickHeadTurn, updateControlFlags, wantsToPickUp
-
Methods inherited from class net.minecraft.entity.LivingEntity
actuallyHurt, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, canAttack, canBeAffected, canBreatheUnderwater, canSee, canSpawnSoulSpeedParticle, canStandOnFluid, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doPush, dropAllDeathLoot, dropExperience, eat, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAddEntityPacket, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEyeHeight, getFallDamageSound, getFallFlyingTicks, getFeetBlockState, getFluidFallingAdjustedMovement, getHealth, getItemInHand, getJumpPower, getKillCredit, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getMobType, getNoActionTime, getOffhandItem, getProjectile, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, heal, hurtArmor, hurtCurrentlyUsedShield, increaseAirSupply, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isDeadOrDying, isFallFlying, isHolding, isHolding, isInvertedHealAndHarm, isInWall, isPickable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, makeBrain, markHurt, onChangedBlock, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onItemPickup, onLeaveCombat, onSoulSpeedBlock, outOfWorld, playBlockFallSound, playEquipSound, push, pushEntities, randomTeleport, releaseUsingItem, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, rideableUnderWater, rideTick, setAbsorptionAmount, setArrowCount, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setOnGround, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, spawnSoulSpeedParticle, startAutoSpinAttack, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, triggerItemUseEffects, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime
-
Methods inherited from class net.minecraft.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkAndResetForcedChunkAdditionFlag, checkAndResetUpdateChunkPos, checkInsideBlocks, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBoundingBox, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFireImmuneTicks, getFluidHeight, getFluidJumpThreshold, getForward, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMotionDirection, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersRidingOffset, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getY, getY, getZ, getZ, handleInsidePortal, handleNetherPortal, hasCustomName, hashCode, hasIndirectPassenger, hasOnePlayerPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAttackable, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isMovementNoisy, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killed, lavaHurt, lerpMotion, limitPistonMovement, load, makeFlySound, makeStuckInBlock, maybeBackOffFromEdge, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, pick, playerTouch, playFlySound, playSound, playSwimSound, position, processPortalCooldown, push, reapplyPosition, refreshDimensions, remove, remove, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetPos, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowing, setId, setInvisible, setInvulnerable, setLevel, setLocationFromBoundingbox, setNoGravity, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPos, setPosAndOldPos, setPose, setPosRaw, setRemainingFireTicks, setRot, setSecondsOnFire, setSharedFlag, setShiftKeyDown, setSilent, setSwimming, setUUID, setViewScale, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, teleportTo, teleportToWithTicket, thunderHit, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming
-
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCaps
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
-
Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getDimensionsForge, getEntity, getEyeHeightForge, getParts, getPickedResult, isMultipartEntity, serializeNBT, shouldRiderSit
-
-
-
-
Field Detail
-
PARENT_HORSE_SELECTOR
private static final java.util.function.Predicate<LivingEntity> PARENT_HORSE_SELECTOR
-
MOMMY_TARGETING
private static final EntityPredicate MOMMY_TARGETING
-
FOOD_ITEMS
private static final Ingredient FOOD_ITEMS
-
DATA_ID_FLAGS
private static final DataParameter<java.lang.Byte> DATA_ID_FLAGS
-
DATA_ID_OWNER_UUID
private static final DataParameter<java.util.Optional<java.util.UUID>> DATA_ID_OWNER_UUID
-
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
protected Inventory inventory
-
temper
protected int temper
-
playerJumpPendingScale
protected float playerJumpPendingScale
-
allowStandSliding
private boolean allowStandSliding
-
eatAnim
private float eatAnim
-
eatAnimO
private float eatAnimO
-
standAnim
private float standAnim
-
standAnimO
private float standAnimO
-
mouthAnim
private float mouthAnim
-
mouthAnimO
private float mouthAnimO
-
canGallop
protected boolean canGallop
-
gallopSoundCounter
protected int gallopSoundCounter
-
itemHandler
private LazyOptional<?> itemHandler
-
-
Constructor Detail
-
AbstractHorseEntity
protected AbstractHorseEntity(EntityType<? extends AbstractHorseEntity> p_i48563_1_, World p_i48563_2_)
-
-
Method Detail
-
registerGoals
protected void registerGoals()
- Overrides:
registerGoalsin classMobEntity
-
addBehaviourGoals
protected void addBehaviourGoals()
-
defineSynchedData
protected void defineSynchedData()
- Overrides:
defineSynchedDatain classAgeableEntity
-
getFlag
protected boolean getFlag(int p_110233_1_)
-
setFlag
protected void setFlag(int p_110208_1_, boolean p_110208_2_)
-
isTamed
public boolean isTamed()
-
getOwnerUUID
@Nullable public java.util.UUID getOwnerUUID()
-
setOwnerUUID
public void setOwnerUUID(@Nullable java.util.UUID p_184779_1_)
-
isJumping
public boolean isJumping()
-
setTamed
public void setTamed(boolean p_110234_1_)
-
setIsJumping
public void setIsJumping(boolean p_110255_1_)
-
onLeashDistance
protected void onLeashDistance(float p_142017_1_)
- Overrides:
onLeashDistancein classCreatureEntity
-
isEating
public boolean isEating()
-
isStanding
public boolean isStanding()
-
isBred
public boolean isBred()
-
setBred
public void setBred(boolean p_110242_1_)
-
isSaddleable
public boolean isSaddleable()
- Specified by:
isSaddleablein interfaceIEquipable
-
equipSaddle
public void equipSaddle(@Nullable SoundCategory p_230266_1_)- Specified by:
equipSaddlein interfaceIEquipable
-
isSaddled
public boolean isSaddled()
- Specified by:
isSaddledin interfaceIEquipable
-
getTemper
public int getTemper()
-
setTemper
public void setTemper(int p_110238_1_)
-
modifyTemper
public int modifyTemper(int p_110198_1_)
-
isPushable
public boolean isPushable()
- Overrides:
isPushablein classLivingEntity
-
eating
private void eating()
-
causeFallDamage
public boolean causeFallDamage(float p_225503_1_, float p_225503_2_)- Overrides:
causeFallDamagein classLivingEntity
-
calculateFallDamage
protected int calculateFallDamage(float p_225508_1_, float p_225508_2_)- Overrides:
calculateFallDamagein classLivingEntity
-
getInventorySize
protected int getInventorySize()
-
createInventory
protected void createInventory()
-
updateContainerEquipment
protected void updateContainerEquipment()
-
containerChanged
public void containerChanged(IInventory p_76316_1_)
- Specified by:
containerChangedin interfaceIInventoryChangedListener
-
getCustomJump
public double getCustomJump()
-
getEatingSound
@Nullable protected SoundEvent getEatingSound()
-
getDeathSound
@Nullable protected SoundEvent getDeathSound()
- Overrides:
getDeathSoundin classLivingEntity
-
getHurtSound
@Nullable protected SoundEvent getHurtSound(DamageSource p_184601_1_)
- Overrides:
getHurtSoundin classLivingEntity
-
getAmbientSound
@Nullable protected SoundEvent getAmbientSound()
- Overrides:
getAmbientSoundin classMobEntity
-
getAngrySound
@Nullable protected SoundEvent getAngrySound()
-
playStepSound
protected void playStepSound(BlockPos p_180429_1_, BlockState p_180429_2_)
- Overrides:
playStepSoundin classEntity
-
playGallopSound
protected void playGallopSound(SoundType p_190680_1_)
-
createBaseHorseAttributes
public static AttributeModifierMap.MutableAttribute createBaseHorseAttributes()
-
getMaxSpawnClusterSize
public int getMaxSpawnClusterSize()
- Overrides:
getMaxSpawnClusterSizein classMobEntity
-
getMaxTemper
public int getMaxTemper()
-
getSoundVolume
protected float getSoundVolume()
- Overrides:
getSoundVolumein classLivingEntity
-
getAmbientSoundInterval
public int getAmbientSoundInterval()
- Overrides:
getAmbientSoundIntervalin classAnimalEntity
-
openInventory
public void openInventory(PlayerEntity p_110199_1_)
-
fedFood
public ActionResultType fedFood(PlayerEntity p_241395_1_, ItemStack p_241395_2_)
-
handleEating
protected boolean handleEating(PlayerEntity p_190678_1_, ItemStack p_190678_2_)
-
doPlayerRide
protected void doPlayerRide(PlayerEntity p_110237_1_)
-
isImmobile
protected boolean isImmobile()
- Overrides:
isImmobilein classLivingEntity
-
isFood
public boolean isFood(ItemStack p_70877_1_)
- Overrides:
isFoodin classAnimalEntity
-
moveTail
private void moveTail()
-
dropEquipment
protected void dropEquipment()
- Overrides:
dropEquipmentin classLivingEntity
-
aiStep
public void aiStep()
- Overrides:
aiStepin classAnimalEntity
-
followMommy
protected void followMommy()
-
canEatGrass
public boolean canEatGrass()
-
openMouth
private void openMouth()
-
setEating
public void setEating(boolean p_110227_1_)
-
setStanding
public void setStanding(boolean p_110219_1_)
-
stand
private void stand()
-
makeMad
public void makeMad()
-
tameWithName
public boolean tameWithName(PlayerEntity p_110263_1_)
-
travel
public void travel(Vector3d p_213352_1_)
- Overrides:
travelin classLivingEntity
-
playJumpSound
protected void playJumpSound()
-
addAdditionalSaveData
public void addAdditionalSaveData(CompoundNBT p_213281_1_)
- Overrides:
addAdditionalSaveDatain classAnimalEntity
-
readAdditionalSaveData
public void readAdditionalSaveData(CompoundNBT p_70037_1_)
- Overrides:
readAdditionalSaveDatain classAnimalEntity
-
canMate
public boolean canMate(AnimalEntity p_70878_1_)
- Overrides:
canMatein classAnimalEntity
-
canParent
protected boolean canParent()
-
getBreedOffspring
@Nullable public AgeableEntity getBreedOffspring(ServerWorld p_241840_1_, AgeableEntity p_241840_2_)
- Specified by:
getBreedOffspringin classAgeableEntity
-
setOffspringAttributes
protected void setOffspringAttributes(AgeableEntity p_190681_1_, AbstractHorseEntity p_190681_2_)
-
canBeControlledByRider
public boolean canBeControlledByRider()
- Overrides:
canBeControlledByRiderin classMobEntity
-
getEatAnim
public float getEatAnim(float p_110258_1_)
-
getStandAnim
public float getStandAnim(float p_110223_1_)
-
getMouthAnim
public float getMouthAnim(float p_110201_1_)
-
onPlayerJump
public void onPlayerJump(int p_110206_1_)
- Specified by:
onPlayerJumpin interfaceIJumpingMount
-
canJump
public boolean canJump()
- Specified by:
canJumpin interfaceIJumpingMount
-
handleStartJump
public void handleStartJump(int p_184775_1_)
- Specified by:
handleStartJumpin interfaceIJumpingMount
-
handleStopJump
public void handleStopJump()
- Specified by:
handleStopJumpin interfaceIJumpingMount
-
spawnTamingParticles
protected void spawnTamingParticles(boolean p_110216_1_)
-
handleEntityEvent
public void handleEntityEvent(byte p_70103_1_)
- Overrides:
handleEntityEventin classAnimalEntity
-
positionRider
public void positionRider(Entity p_184232_1_)
- Overrides:
positionRiderin classEntity
-
generateRandomMaxHealth
protected float generateRandomMaxHealth()
-
generateRandomJumpStrength
protected double generateRandomJumpStrength()
-
generateRandomSpeed
protected double generateRandomSpeed()
-
onClimbable
public boolean onClimbable()
- Overrides:
onClimbablein classLivingEntity
-
getStandingEyeHeight
protected float getStandingEyeHeight(Pose p_213348_1_, EntitySize p_213348_2_)
- Overrides:
getStandingEyeHeightin classLivingEntity
-
canWearArmor
public boolean canWearArmor()
-
isWearingArmor
public boolean isWearingArmor()
-
isArmor
public boolean isArmor(ItemStack p_190682_1_)
-
setSlot
public boolean setSlot(int p_174820_1_, ItemStack p_174820_2_)
-
getControllingPassenger
@Nullable public Entity getControllingPassenger()
- Overrides:
getControllingPassengerin classEntity
-
getDismountLocationInDirection
@Nullable private Vector3d getDismountLocationInDirection(Vector3d p_234236_1_, LivingEntity p_234236_2_)
-
getDismountLocationForPassenger
public Vector3d getDismountLocationForPassenger(LivingEntity p_230268_1_)
- Overrides:
getDismountLocationForPassengerin classEntity
-
randomizeAttributes
protected void randomizeAttributes()
-
finalizeSpawn
@Nullable public ILivingEntityData finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, @Nullable ILivingEntityData p_213386_4_, @Nullable CompoundNBT p_213386_5_)
- Overrides:
finalizeSpawnin classAgeableEntity
-
getCapability
public <T> LazyOptional<T> getCapability(Capability<T> capability, @Nullable Direction facing)
Description 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 interfaceICapabilityProvider- Overrides:
getCapabilityin classLivingEntity- Returns:
- The requested an optional holding the requested capability.
-
invalidateCaps
protected void invalidateCaps()
- Overrides:
invalidateCapsin classLivingEntity
-
-