Class Camel
java.lang.Object
- All Implemented Interfaces:
CommandSource
,ContainerListener
,HasCustomInventoryScreen
,PlayerRideable
,PlayerRideableJumping
,RiderShieldingMount
,Saddleable
,EntityAccess
,Nameable
,ICapabilityProvider
,ICapabilityProviderImpl<Entity>
,ICapabilitySerializable<CompoundTag>
,IForgeEntity
,IForgeLivingEntity
,INBTSerializable<CompoundTag>
public class Camel
extends AbstractHorse
implements PlayerRideableJumping, RiderShieldingMount, Saddleable
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.AgeableMob
AgeableMob.AgeableMobGroupData
Nested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntity
LivingEntity.Fallsounds
Nested classes/interfaces inherited from class net.minecraft.world.entity.Entity
Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReason
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final EntityDataAccessor<Boolean>
static final int
private static final float
private static final float
final AnimationState
private int
private static final int
final AnimationState
private int
static final EntityDataAccessor<Long>
private static final float
final AnimationState
private static final int
final AnimationState
private static final EntityDimensions
private static final float
final AnimationState
private static final int
static final Ingredient
final AnimationState
Fields inherited from class net.minecraft.world.entity.animal.horse.AbstractHorse
allowStandSliding, canGallop, CHEST_SLOT_OFFSET, EQUIPMENT_SLOT_OFFSET, gallopSoundCounter, INV_BASE_COUNT, INV_SLOT_ARMOR, INV_SLOT_SADDLE, inventory, INVENTORY_SLOT_OFFSET, isJumping, playerJumpPendingScale, sprintCounter, tailCounter, temper
Fields inherited from class net.minecraft.world.entity.animal.Animal
PARENT_AGE_AFTER_BREEDING
Fields inherited from class net.minecraft.world.entity.AgeableMob
age, BABY_START_AGE, forcedAge, forcedAgeTimer
Fields inherited from class net.minecraft.world.entity.PathfinderMob
DEFAULT_WALK_TARGET_VALUE
Fields inherited from class 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
Fields inherited from class net.minecraft.world.entity.LivingEntity
animationPosition, animationSpeed, animationSpeedOld, 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, flyingSpeed, HAND_SLOTS, hurtDir, 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, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza
Fields inherited from class 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, 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, level, MAX_ENTITY_TAG_COUNT, maxUpStep, minorHorizontalCollision, moveDist, noCulling, noPhysics, onGround, 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
Fields inherited from interface net.minecraft.commands.CommandSource
NULL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
actuallyHurt
(DamageSource p_250410_, float p_251451_) void
addAdditionalSaveData
(CompoundTag p_250330_) protected Brain.Provider<Camel>
protected boolean
canAddPassenger
(Entity p_248594_) boolean
boolean
protected boolean
private void
clampRotation
(Entity p_252070_) static AttributeSupplier.Builder
protected BodyRotationControl
protected void
protected void
protected void
executeRidersJump
(float p_251967_, float p_249345_, float p_249119_) finalizeSpawn
(ServerLevelAccessor p_249190_, DifficultyInstance p_251264_, MobSpawnType p_250254_, SpawnGroupData p_249259_, CompoundTag p_251838_) protected SoundEvent
private double
getBodyAnchorAnimationYOffset
(boolean p_249228_, float p_251763_) getBreedOffspring
(ServerLevel p_251227_, AgeableMob p_251047_) protected SoundEvent
getDimensions
(Pose p_248973_) protected float
getDrivenMovementSpeed
(LivingEntity p_252019_) protected SoundEvent
protected SoundEvent
getHurtSound
(DamageSource p_250052_) int
getLeashOffset
(float p_251477_) double
long
double
protected float
getStandingEyeHeight
(Pose p_248908_, EntityDimensions p_250490_) protected boolean
handleEating
(Player p_249923_, ItemStack p_248995_) void
handleStartJump
(int p_249968_) void
boolean
boolean
boolean
boolean
boolean
private boolean
boolean
isTamed()
protected Brain<?>
makeBrain
(com.mojang.serialization.Dynamic<?> p_251586_) mobInteract
(Player p_249032_, InteractionHand p_251004_) protected boolean
mountIgnoresControllerInput
(LivingEntity p_252088_) protected void
onLeashDistance
(float p_251143_) void
onPassengerTurned
(Entity p_250747_) void
onPlayerJump
(int p_249138_) void
onSyncedDataUpdated
(EntityDataAccessor<?> p_252215_) void
openCustomInventoryScreen
(Player p_248613_) protected void
playStepSound
(BlockPos p_252056_, BlockState p_251457_) void
positionRider
(Entity p_251173_) void
readAdditionalSaveData
(CompoundTag p_250781_) boolean
protected void
void
resetLastPoseChangeTick
(long p_248642_) protected void
void
setDashing
(boolean p_251380_) private void
void
sitDown()
void
standUp()
void
void
tick()
void
Methods inherited from class net.minecraft.world.entity.animal.horse.AbstractHorse
addBehaviourGoals, aiStep, calculateFallDamage, canEatGrass, canParent, canWearArmor, causeFallDamage, containerChanged, createBaseHorseAttributes, createInventory, doPlayerRide, dropEquipment, equipArmor, equipSaddle, fedFood, followMommy, generateRandomJumpStrength, generateRandomMaxHealth, generateRandomSpeed, getAmbientSoundInterval, getAmbientStandInterval, getAmbientStandSound, getAngrySound, getCapability, getCustomJump, getDismountLocationForPassenger, getEatAnim, getFlag, getInventorySize, getMaxSpawnClusterSize, getMaxTemper, getMouthAnim, getOwnerUUID, getSlot, getSoundVolume, getStandAnim, getTemper, handleEntityEvent, hasInventoryChanged, hurt, invalidateCaps, isArmor, isBred, isEating, isImmobile, isJumping, isPushable, isSaddleable, isSaddled, isStanding, isWearingArmor, makeMad, modifyTemper, onClimbable, playGallopSound, playJumpSound, randomizeAttributes, setBred, setEating, setFlag, setIsJumping, setOffspringAttributes, setOwnerUUID, setStanding, setTamed, setTemper, spawnTamingParticles, standIfPossible, tameWithName, updateContainerEquipment
Methods inherited from class net.minecraft.world.entity.animal.Animal
canFallInLove, checkAnimalSpawnRules, getExperienceReward, getInLoveTime, getLoveCause, getMyRidingOffset, getWalkTargetValue, isBrightEnoughToSpawn, isInLove, removeWhenFarAway, resetLove, setInLove, setInLoveTime, spawnChildFromBreeding, usePlayerItem
Methods inherited from class net.minecraft.world.entity.AgeableMob
ageBoundaryReached, ageUp, ageUp, canBreed, getAge, getSpeedUpSecondsWhenFeeding, isBaby, setAge, setBaby
Methods inherited from class net.minecraft.world.entity.PathfinderMob
checkSpawnRules, followLeashSpeed, getWalkTargetValue, isPathFinding, shouldStayCloseToLeashHolder, tickLeash
Methods inherited from class net.minecraft.world.entity.Mob
ate, baseTick, canAttackType, canBeLeashed, canCutCorner, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, clearRestriction, convertTo, createLootContext, createMobAttributes, createNavigation, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getArmorSlots, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMeleeAttackRangeSqr, getMoveControl, getNavigation, getPathfindingMalus, getPerceivedTargetDistanceSquareForMeleeAttack, getPickResult, getPickupReach, getRestrictCenter, getRestrictRadius, getSensing, getTarget, hasRestriction, interact, isAggressive, isControlledByLocalInstance, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isWithinMeleeAttackRange, isWithinRestriction, isWithinRestriction, jumpInFluid, jumpInLiquid, lookAt, onOffspringSpawnedFromEgg, pickUpItem, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, removeAfterChangingDimensions, removeAllGoals, removeFreeWill, requiresCustomPersistence, restrictTo, 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.world.entity.LivingEntity
addEffect, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, canAttack, canAttack, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canBreatheUnderwater, 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, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getEyeHeight, getFallFlyingTicks, getFallSounds, getFluidFallingAdjustedMovement, getHealth, getItemInHand, getJumpBoostPower, getJumpPower, getKillCredit, 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, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, hasLineOfSight, heal, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, increaseAirSupply, 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, onChangedBlock, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onItemPickup, onLeaveCombat, onSoulSpeedBlock, outOfWorld, playBlockFallSound, playEquipSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, reviveCaps, rideableUnderWater, rideTick, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setOnGround, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, skipDropExperience, spawnSoulSpeedParticle, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, triggerItemUseEffects, tryAddFrost, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime, updateUsingItem, verifyEquippedItem, wasExperienceConsumed
Methods inherited from class net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, allowsDismounting, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkInsideBlocks, checkOutOfWorld, checkSlowFallDistance, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, createCommandSourceStack, createHoverEvent, dampensVibrations, discard, 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, 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, getLevel, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getMovementEmission, getName, getOnPos, getOnPosLegacy, getPassengers, getPassengersAndSelf, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getPositionCodec, 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, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, lavaHurt, lerpMotion, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onFlap, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onRemovedFromWorld, pick, playEntityOnFireExtinguishedSound, playerTouch, playSound, playSound, playSwimSound, position, processFlappingMovement, processPortalCooldown, push, reapplyPosition, refreshDimensions, remove, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevelCallback, setNoGravity, setOldPosAndRot, 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, teleportToWithTicket, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, wasKilled
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCaps
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.commands.CommandSource
alwaysAccepts
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
Methods inherited from interface 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
Methods inherited from interface net.minecraftforge.common.extensions.IForgeLivingEntity
canDrownInFluidType, canSwimInFluidType, moveInFluid, self, sinkInFluid
Methods inherited from interface net.minecraft.world.entity.Saddleable
equipSaddle, isSaddleable, isSaddled
-
Field Details
-
TEMPTATION_ITEM
-
DASH_COOLDOWN_TICKS
public static final int DASH_COOLDOWN_TICKS- See Also:
-
RUNNING_SPEED_BONUS
private static final float RUNNING_SPEED_BONUS- See Also:
-
DASH_VERTICAL_MOMENTUM
private static final float DASH_VERTICAL_MOMENTUM- See Also:
-
DASH_HORIZONTAL_MOMENTUM
private static final float DASH_HORIZONTAL_MOMENTUM- See Also:
-
SITDOWN_DURATION_TICKS
private static final int SITDOWN_DURATION_TICKS- See Also:
-
STANDUP_DURATION_TICKS
private static final int STANDUP_DURATION_TICKS- See Also:
-
IDLE_MINIMAL_DURATION_TICKS
private static final int IDLE_MINIMAL_DURATION_TICKS- See Also:
-
SITTING_HEIGHT_DIFFERENCE
private static final float SITTING_HEIGHT_DIFFERENCE- See Also:
-
DASH
-
LAST_POSE_CHANGE_TICK
-
walkAnimationState
-
sitAnimationState
-
sitPoseAnimationState
-
sitUpAnimationState
-
idleAnimationState
-
dashAnimationState
-
SITTING_DIMENSIONS
-
dashCooldown
private int dashCooldown -
idleAnimationTimeout
private int idleAnimationTimeout
-
-
Constructor Details
-
Camel
-
-
Method Details
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveData
in classAbstractHorse
-
readAdditionalSaveData
- Overrides:
readAdditionalSaveData
in classAbstractHorse
-
createAttributes
-
defineSynchedData
protected void defineSynchedData()- Overrides:
defineSynchedData
in classAbstractHorse
-
finalizeSpawn
public SpawnGroupData finalizeSpawn(ServerLevelAccessor p_249190_, DifficultyInstance p_251264_, MobSpawnType p_250254_, @Nullable SpawnGroupData p_249259_, @Nullable CompoundTag p_251838_) - Overrides:
finalizeSpawn
in classAbstractHorse
-
brainProvider
- Overrides:
brainProvider
in classLivingEntity
-
registerGoals
protected void registerGoals()- Overrides:
registerGoals
in classAbstractHorse
-
makeBrain
- Overrides:
makeBrain
in classLivingEntity
-
getDimensions
- Overrides:
getDimensions
in classLivingEntity
-
getStandingEyeHeight
- Overrides:
getStandingEyeHeight
in classAbstractHorse
-
getRiderShieldingHeight
public double getRiderShieldingHeight()- Specified by:
getRiderShieldingHeight
in interfaceRiderShieldingMount
-
customServerAiStep
protected void customServerAiStep()- Overrides:
customServerAiStep
in classAnimal
-
tick
public void tick()- Overrides:
tick
in classAbstractHorse
-
setupAnimationStates
private void setupAnimationStates() -
travel
- Overrides:
travel
in classAbstractHorse
-
refuseToMove
public boolean refuseToMove() -
getDrivenMovementSpeed
- Overrides:
getDrivenMovementSpeed
in classAbstractHorse
-
mountIgnoresControllerInput
- Overrides:
mountIgnoresControllerInput
in classAbstractHorse
-
canJump
- Specified by:
canJump
in interfacePlayerRideableJumping
- Overrides:
canJump
in classAbstractHorse
-
onPlayerJump
public void onPlayerJump(int p_249138_) - Specified by:
onPlayerJump
in interfacePlayerRideableJumping
- Overrides:
onPlayerJump
in classAbstractHorse
-
executeRidersJump
protected void executeRidersJump(float p_251967_, float p_249345_, float p_249119_) - Overrides:
executeRidersJump
in classAbstractHorse
-
isDashing
public boolean isDashing() -
setDashing
public void setDashing(boolean p_251380_) -
isPanicking
public boolean isPanicking() -
handleStartJump
public void handleStartJump(int p_249968_) - Specified by:
handleStartJump
in interfacePlayerRideableJumping
- Overrides:
handleStartJump
in classAbstractHorse
-
handleStopJump
public void handleStopJump()- Specified by:
handleStopJump
in interfacePlayerRideableJumping
- Overrides:
handleStopJump
in classAbstractHorse
-
getJumpCooldown
public int getJumpCooldown()- Specified by:
getJumpCooldown
in interfacePlayerRideableJumping
-
getAmbientSound
- Overrides:
getAmbientSound
in classMob
-
getDeathSound
- Overrides:
getDeathSound
in classLivingEntity
-
getHurtSound
- Overrides:
getHurtSound
in classLivingEntity
-
playStepSound
- Overrides:
playStepSound
in classAbstractHorse
-
isFood
- Overrides:
isFood
in classAbstractHorse
-
mobInteract
- Overrides:
mobInteract
in classAbstractHorse
-
onLeashDistance
protected void onLeashDistance(float p_251143_) - Overrides:
onLeashDistance
in classAbstractHorse
-
handleEating
- Overrides:
handleEating
in classAbstractHorse
-
canPerformRearing
protected boolean canPerformRearing()- Overrides:
canPerformRearing
in classAbstractHorse
-
canMate
- Overrides:
canMate
in classAbstractHorse
-
getBreedOffspring
- Overrides:
getBreedOffspring
in classAbstractHorse
-
getEatingSound
- Overrides:
getEatingSound
in classAbstractHorse
-
actuallyHurt
- Overrides:
actuallyHurt
in classLivingEntity
-
positionRider
- Overrides:
positionRider
in classAbstractHorse
-
getBodyAnchorAnimationYOffset
private double getBodyAnchorAnimationYOffset(boolean p_249228_, float p_251763_) -
getLeashOffset
- Overrides:
getLeashOffset
in classEntity
-
getPassengersRidingOffset
public double getPassengersRidingOffset()- Overrides:
getPassengersRidingOffset
in classEntity
-
onPassengerTurned
- Overrides:
onPassengerTurned
in classEntity
-
clampRotation
-
canAddPassenger
- Overrides:
canAddPassenger
in classEntity
-
getControllingPassenger
- Overrides:
getControllingPassenger
in classAbstractHorse
-
sendDebugPackets
protected void sendDebugPackets()- Overrides:
sendDebugPackets
in classMob
-
isPoseSitting
public boolean isPoseSitting() -
isInPoseTransition
public boolean isInPoseTransition() -
isSittingDown
private boolean isSittingDown() -
sitDown
public void sitDown() -
standUp
public void standUp() -
standUpPanic
public void standUpPanic() -
resetLastPoseChangeTick
public void resetLastPoseChangeTick(long p_248642_) -
getPoseTime
public long getPoseTime() -
getSaddleSoundEvent
- Specified by:
getSaddleSoundEvent
in interfaceSaddleable
-
onSyncedDataUpdated
- Overrides:
onSyncedDataUpdated
in classAgeableMob
-
createBodyControl
- Overrides:
createBodyControl
in classMob
-
isTamed
public boolean isTamed()- Overrides:
isTamed
in classAbstractHorse
-
openCustomInventoryScreen
- Specified by:
openCustomInventoryScreen
in interfaceHasCustomInventoryScreen
- Overrides:
openCustomInventoryScreen
in classAbstractHorse
-