public abstract class AbstractHorseEntity extends AnimalEntity implements IInventoryChangedListener, IJumpingMount, IEquipable
AgeableEntity.AgeableData
Entity.IMoveCallback
Modifier and Type | Field and Description |
---|---|
private boolean |
allowStandSliding |
protected boolean |
canGallop |
private static DataParameter<java.lang.Byte> |
DATA_ID_FLAGS |
private static DataParameter<java.util.Optional<java.util.UUID>> |
DATA_ID_OWNER_UUID |
private float |
eatAnim |
private float |
eatAnimO |
private int |
eatingCounter |
private static Ingredient |
FOOD_ITEMS |
protected int |
gallopSoundCounter |
protected Inventory |
inventory |
protected boolean |
isJumping |
private LazyOptional<?> |
itemHandler |
private static EntityPredicate |
MOMMY_TARGETING |
private float |
mouthAnim |
private float |
mouthAnimO |
private int |
mouthCounter |
private static java.util.function.Predicate<LivingEntity> |
PARENT_HORSE_SELECTOR |
protected float |
playerJumpPendingScale |
int |
sprintCounter |
private float |
standAnim |
private float |
standAnimO |
private int |
standCounter |
int |
tailCounter |
protected int |
temper |
age, forcedAge, forcedAgeTimer
ambientSoundTime, armorDropChances, goalSelector, handDropChances, jumpControl, lookControl, moveControl, navigation, targetSelector, xpReward
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
blocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, 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
NULL
Modifier | Constructor and Description |
---|---|
protected |
AbstractHorseEntity(EntityType<? extends AbstractHorseEntity> p_i48563_1_,
World p_i48563_2_) |
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalSaveData(CompoundNBT p_213281_1_) |
protected void |
addBehaviourGoals() |
void |
aiStep() |
protected int |
calculateFallDamage(float p_225508_1_,
float p_225508_2_) |
boolean |
canBeControlledByRider() |
boolean |
canEatGrass() |
boolean |
canJump() |
boolean |
canMate(AnimalEntity p_70878_1_) |
protected boolean |
canParent() |
boolean |
canWearArmor() |
boolean |
causeFallDamage(float p_225503_1_,
float p_225503_2_) |
void |
containerChanged(IInventory p_76316_1_) |
static AttributeModifierMap.MutableAttribute |
createBaseHorseAttributes() |
protected void |
createInventory() |
protected void |
defineSynchedData() |
protected void |
doPlayerRide(PlayerEntity p_110237_1_) |
protected void |
dropEquipment() |
private void |
eating() |
void |
equipSaddle(SoundCategory p_230266_1_) |
ActionResultType |
fedFood(PlayerEntity p_241395_1_,
ItemStack p_241395_2_) |
ILivingEntityData |
finalizeSpawn(IServerWorld p_213386_1_,
DifficultyInstance p_213386_2_,
SpawnReason p_213386_3_,
ILivingEntityData p_213386_4_,
CompoundNBT p_213386_5_) |
protected void |
followMommy() |
protected double |
generateRandomJumpStrength() |
protected float |
generateRandomMaxHealth() |
protected double |
generateRandomSpeed() |
protected SoundEvent |
getAmbientSound() |
int |
getAmbientSoundInterval() |
protected SoundEvent |
getAngrySound() |
AgeableEntity |
getBreedOffspring(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.
|
Entity |
getControllingPassenger() |
double |
getCustomJump() |
protected SoundEvent |
getDeathSound() |
Vector3d |
getDismountLocationForPassenger(LivingEntity p_230268_1_) |
private Vector3d |
getDismountLocationInDirection(Vector3d p_234236_1_,
LivingEntity p_234236_2_) |
float |
getEatAnim(float p_110258_1_) |
protected SoundEvent |
getEatingSound() |
protected boolean |
getFlag(int p_110233_1_) |
protected SoundEvent |
getHurtSound(DamageSource p_184601_1_) |
protected int |
getInventorySize() |
int |
getMaxSpawnClusterSize() |
int |
getMaxTemper() |
float |
getMouthAnim(float p_110201_1_) |
java.util.UUID |
getOwnerUUID() |
protected float |
getSoundVolume() |
float |
getStandAnim(float p_110223_1_) |
protected float |
getStandingEyeHeight(Pose p_213348_1_,
EntitySize p_213348_2_) |
int |
getTemper() |
protected boolean |
handleEating(PlayerEntity p_190678_1_,
ItemStack p_190678_2_) |
void |
handleEntityEvent(byte p_70103_1_) |
void |
handleStartJump(int p_184775_1_) |
void |
handleStopJump() |
protected void |
invalidateCaps() |
boolean |
isArmor(ItemStack p_190682_1_) |
boolean |
isBred() |
boolean |
isEating() |
boolean |
isFood(ItemStack p_70877_1_) |
protected boolean |
isImmobile() |
boolean |
isJumping() |
boolean |
isPushable() |
boolean |
isSaddleable() |
boolean |
isSaddled() |
boolean |
isStanding() |
boolean |
isTamed() |
boolean |
isWearingArmor() |
void |
makeMad() |
int |
modifyTemper(int p_110198_1_) |
private void |
moveTail() |
boolean |
onClimbable() |
protected void |
onLeashDistance(float p_142017_1_) |
void |
onPlayerJump(int p_110206_1_) |
void |
openInventory(PlayerEntity p_110199_1_) |
private void |
openMouth() |
protected void |
playGallopSound(SoundType p_190680_1_) |
protected void |
playJumpSound() |
protected void |
playStepSound(BlockPos p_180429_1_,
BlockState p_180429_2_) |
void |
positionRider(Entity p_184232_1_) |
protected void |
randomizeAttributes() |
void |
readAdditionalSaveData(CompoundNBT p_70037_1_) |
protected void |
registerGoals() |
void |
setBred(boolean p_110242_1_) |
void |
setEating(boolean p_110227_1_) |
protected void |
setFlag(int p_110208_1_,
boolean p_110208_2_) |
void |
setIsJumping(boolean p_110255_1_) |
protected void |
setOffspringAttributes(AgeableEntity p_190681_1_,
AbstractHorseEntity p_190681_2_) |
void |
setOwnerUUID(java.util.UUID p_184779_1_) |
boolean |
setSlot(int p_174820_1_,
ItemStack p_174820_2_) |
void |
setStanding(boolean p_110219_1_) |
void |
setTamed(boolean p_110234_1_) |
void |
setTemper(int p_110238_1_) |
protected void |
spawnTamingParticles(boolean p_110216_1_) |
private void |
stand() |
boolean |
tameWithName(PlayerEntity p_110263_1_) |
void |
tick() |
void |
travel(Vector3d p_213352_1_) |
protected void |
updateContainerEquipment() |
canFallInLove, checkAnimalSpawnRules, customServerAiStep, getExperienceReward, getInLoveTime, getLoveCause, getMyRidingOffset, getWalkTargetValue, hurt, isInLove, mobInteract, removeWhenFarAway, resetLove, setInLove, setInLoveTime, spawnChildFromBreeding, usePlayerItem
ageBoundaryReached, ageUp, ageUp, canBreed, getAge, isBaby, onSyncedDataUpdated, setAge, setBaby
checkSpawnRules, followLeashSpeed, getWalkTargetValue, isPathFinding, tickLeash
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
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
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
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCaps
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getParts, getPickedResult, isMultipartEntity, serializeNBT, shouldRiderSit
getCapability
private static final java.util.function.Predicate<LivingEntity> PARENT_HORSE_SELECTOR
private static final EntityPredicate MOMMY_TARGETING
private static final Ingredient FOOD_ITEMS
private static final DataParameter<java.lang.Byte> DATA_ID_FLAGS
private static final DataParameter<java.util.Optional<java.util.UUID>> DATA_ID_OWNER_UUID
private int eatingCounter
private int mouthCounter
private int standCounter
public int tailCounter
public int sprintCounter
protected boolean isJumping
protected Inventory inventory
protected int temper
protected float playerJumpPendingScale
private boolean allowStandSliding
private float eatAnim
private float eatAnimO
private float standAnim
private float standAnimO
private float mouthAnim
private float mouthAnimO
protected boolean canGallop
protected int gallopSoundCounter
private LazyOptional<?> itemHandler
protected AbstractHorseEntity(EntityType<? extends AbstractHorseEntity> p_i48563_1_, World p_i48563_2_)
protected void registerGoals()
registerGoals
in class MobEntity
protected void addBehaviourGoals()
protected void defineSynchedData()
defineSynchedData
in class AgeableEntity
protected boolean getFlag(int p_110233_1_)
protected void setFlag(int p_110208_1_, boolean p_110208_2_)
public boolean isTamed()
@Nullable public java.util.UUID getOwnerUUID()
public void setOwnerUUID(@Nullable java.util.UUID p_184779_1_)
public boolean isJumping()
public void setTamed(boolean p_110234_1_)
public void setIsJumping(boolean p_110255_1_)
protected void onLeashDistance(float p_142017_1_)
onLeashDistance
in class CreatureEntity
public boolean isEating()
public boolean isStanding()
public boolean isBred()
public void setBred(boolean p_110242_1_)
public boolean isSaddleable()
isSaddleable
in interface IEquipable
public void equipSaddle(@Nullable SoundCategory p_230266_1_)
equipSaddle
in interface IEquipable
public boolean isSaddled()
isSaddled
in interface IEquipable
public int getTemper()
public void setTemper(int p_110238_1_)
public int modifyTemper(int p_110198_1_)
public boolean isPushable()
isPushable
in class LivingEntity
private void eating()
public boolean causeFallDamage(float p_225503_1_, float p_225503_2_)
causeFallDamage
in class LivingEntity
protected int calculateFallDamage(float p_225508_1_, float p_225508_2_)
calculateFallDamage
in class LivingEntity
protected int getInventorySize()
protected void createInventory()
protected void updateContainerEquipment()
public void containerChanged(IInventory p_76316_1_)
containerChanged
in interface IInventoryChangedListener
public double getCustomJump()
@Nullable protected SoundEvent getEatingSound()
@Nullable protected SoundEvent getDeathSound()
getDeathSound
in class LivingEntity
@Nullable protected SoundEvent getHurtSound(DamageSource p_184601_1_)
getHurtSound
in class LivingEntity
@Nullable protected SoundEvent getAmbientSound()
getAmbientSound
in class MobEntity
@Nullable protected SoundEvent getAngrySound()
protected void playStepSound(BlockPos p_180429_1_, BlockState p_180429_2_)
playStepSound
in class Entity
protected void playGallopSound(SoundType p_190680_1_)
public static AttributeModifierMap.MutableAttribute createBaseHorseAttributes()
public int getMaxSpawnClusterSize()
getMaxSpawnClusterSize
in class MobEntity
public int getMaxTemper()
protected float getSoundVolume()
getSoundVolume
in class LivingEntity
public int getAmbientSoundInterval()
getAmbientSoundInterval
in class AnimalEntity
public void openInventory(PlayerEntity p_110199_1_)
public ActionResultType fedFood(PlayerEntity p_241395_1_, ItemStack p_241395_2_)
protected boolean handleEating(PlayerEntity p_190678_1_, ItemStack p_190678_2_)
protected void doPlayerRide(PlayerEntity p_110237_1_)
protected boolean isImmobile()
isImmobile
in class LivingEntity
public boolean isFood(ItemStack p_70877_1_)
isFood
in class AnimalEntity
private void moveTail()
protected void dropEquipment()
dropEquipment
in class LivingEntity
public void aiStep()
aiStep
in class AnimalEntity
protected void followMommy()
public boolean canEatGrass()
private void openMouth()
public void setEating(boolean p_110227_1_)
public void setStanding(boolean p_110219_1_)
private void stand()
public void makeMad()
public boolean tameWithName(PlayerEntity p_110263_1_)
public void travel(Vector3d p_213352_1_)
travel
in class LivingEntity
protected void playJumpSound()
public void addAdditionalSaveData(CompoundNBT p_213281_1_)
addAdditionalSaveData
in class AnimalEntity
public void readAdditionalSaveData(CompoundNBT p_70037_1_)
readAdditionalSaveData
in class AnimalEntity
public boolean canMate(AnimalEntity p_70878_1_)
canMate
in class AnimalEntity
protected boolean canParent()
@Nullable public AgeableEntity getBreedOffspring(ServerWorld p_241840_1_, AgeableEntity p_241840_2_)
getBreedOffspring
in class AgeableEntity
protected void setOffspringAttributes(AgeableEntity p_190681_1_, AbstractHorseEntity p_190681_2_)
public boolean canBeControlledByRider()
canBeControlledByRider
in class MobEntity
public float getEatAnim(float p_110258_1_)
public float getStandAnim(float p_110223_1_)
public float getMouthAnim(float p_110201_1_)
public void onPlayerJump(int p_110206_1_)
onPlayerJump
in interface IJumpingMount
public boolean canJump()
canJump
in interface IJumpingMount
public void handleStartJump(int p_184775_1_)
handleStartJump
in interface IJumpingMount
public void handleStopJump()
handleStopJump
in interface IJumpingMount
protected void spawnTamingParticles(boolean p_110216_1_)
public void handleEntityEvent(byte p_70103_1_)
handleEntityEvent
in class AnimalEntity
public void positionRider(Entity p_184232_1_)
positionRider
in class Entity
protected float generateRandomMaxHealth()
protected double generateRandomJumpStrength()
protected double generateRandomSpeed()
public boolean onClimbable()
onClimbable
in class LivingEntity
protected float getStandingEyeHeight(Pose p_213348_1_, EntitySize p_213348_2_)
getStandingEyeHeight
in class LivingEntity
public boolean canWearArmor()
public boolean isWearingArmor()
public boolean isArmor(ItemStack p_190682_1_)
public boolean setSlot(int p_174820_1_, ItemStack p_174820_2_)
@Nullable public Entity getControllingPassenger()
getControllingPassenger
in class Entity
@Nullable private Vector3d getDismountLocationInDirection(Vector3d p_234236_1_, LivingEntity p_234236_2_)
public Vector3d getDismountLocationForPassenger(LivingEntity p_230268_1_)
getDismountLocationForPassenger
in class Entity
protected void randomizeAttributes()
@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_)
finalizeSpawn
in class AgeableEntity
public <T> LazyOptional<T> getCapability(Capability<T> capability, @Nullable Direction facing)
ICapabilityProvider
getCapability
in interface ICapabilityProvider
getCapability
in class LivingEntity
protected void invalidateCaps()
invalidateCaps
in class LivingEntity