Class Camel
java.lang.Object
- All Implemented Interfaces:
CommandSource
,SyncedDataHolder
,ContainerListener
,Attackable
,EquipmentUser
,HasCustomInventoryScreen
,Leashable
,OwnableEntity
,PlayerRideable
,PlayerRideableJumping
,Saddleable
,Targeting
,EntityAccess
,Nameable
,ScoreHolder
,IAttachmentHolder
,IEntityExtension
,ILivingEntityExtension
,INBTSerializable<CompoundTag>
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
(package private) class
(package private) class
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.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField
Nested classes/interfaces inherited from interface net.minecraft.world.entity.Leashable
Leashable.LeashData
-
Field Summary
Modifier and TypeFieldDescriptionstatic final float
static final EntityDataAccessor
<Boolean> static final int
private static final float
private static final int
private static final float
final AnimationState
private int
private static final int
final AnimationState
private int
static final EntityDataAccessor
<Long> static final int
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
Fields inherited from class net.minecraft.world.entity.animal.horse.AbstractHorse
allowStandSliding, BREEDING_CROSS_FACTOR, canGallop, CHEST_SLOT_OFFSET, EQUIPMENT_SLOT_OFFSET, gallopSoundCounter, INV_BASE_COUNT, 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, bodyArmorDropChance, DEFAULT_EQUIPMENT_DROP_CHANCE, goalSelector, handDropChances, jumpControl, lookControl, MAX_ENCHANTED_ARMOR_CHANCE, MAX_ENCHANTED_WEAPON_CHANCE, MAX_PICKUP_LOOT_CHANCE, MAX_WEARING_ARMOR_CHANCE, moveControl, navigation, PICKUP_REACH, PRESERVE_ITEM_DROP_CHANCE, PRESERVE_ITEM_DROP_CHANCE_THRESHOLD, RANDOM_SPAWN_BONUS_ID, targetSelector, UPDATE_GOAL_SELECTOR_EVERY_N_TICKS, xpReward
Fields inherited from class net.minecraft.world.entity.LivingEntity
animStep, animStepO, appliedScale, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, ATTRIBUTES_FIELD, autoSpinAttackDmg, autoSpinAttackItemStack, autoSpinAttackTicks, BASE_JUMP_POWER, BODY_ARMOR_OFFSET, brain, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathScore, deathTime, DEFAULT_BABY_SCALE, DEFAULT_BASE_GRAVITY, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, HAND_SLOTS, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYHeadRot, lerpYRot, lerpZ, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, MIN_MOVEMENT_DISTANCE, noActionTime, oAttackAnim, oRun, PLAYER_HURT_EXPERIENCE_TIME, 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
Fields inherited from class net.minecraft.world.entity.Entity
BASE_SAFE_FALL_DISTANCE, BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, CONTENTS_SLOT_INDEX, DATA_POSE, DATA_SHARED_FLAGS_ID, DEFAULT_BB_HEIGHT, DEFAULT_BB_WIDTH, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_2, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5, DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0, ENTITY_COUNTER, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, flyDist, forgeFluidTypeHeight, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, PASSENGERS_TAG, portalProcess, 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 class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY
Fields inherited from interface net.minecraft.commands.CommandSource
NULL
Fields inherited from interface net.minecraft.world.entity.Leashable
LEASH_ELASTIC_DIST, LEASH_TAG, LEASH_TOO_FAR_DIST
Fields inherited from interface net.minecraft.world.scores.ScoreHolder
WILDCARD, WILDCARD_NAME
-
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
canJump()
boolean
protected boolean
boolean
static AttributeSupplier.Builder
protected BodyRotationControl
protected void
protected void
defineSynchedData
(SynchedEntityData.Builder p_326213_) protected void
executeRidersJump
(float p_251967_, Vec3 p_275627_) finalizeSpawn
(ServerLevelAccessor p_249190_, DifficultyInstance p_251264_, MobSpawnType p_250254_, SpawnGroupData p_249259_) float
protected SoundEvent
private double
getBodyAnchorAnimationYOffset
(boolean p_249228_, float p_251763_, EntityDimensions p_296157_, float p_296299_) getBreedOffspring
(ServerLevel p_251227_, AgeableMob p_251047_) protected SoundEvent
getDefaultDimensions
(Pose p_316664_) protected SoundEvent
protected SoundEvent
getHurtSound
(DamageSource p_250052_) int
getLeashOffset
(float p_251477_) int
protected Vec3
getPassengerAttachmentPoint
(Entity p_295101_, EntityDimensions p_294765_, float p_294716_) long
protected Vec3
getRiddenInput
(Player p_278264_, Vec3 p_278298_) protected Vec2
getRiddenRotation
(LivingEntity p_275271_) protected float
getRiddenSpeed
(Player p_278241_) protected boolean
handleEating
(Player p_249923_, ItemStack p_248995_) boolean
handleLeashAtDistance
(Entity p_352419_, float p_352358_) void
handleStartJump
(int p_249968_) void
boolean
boolean
boolean
boolean
boolean
boolean
isTamed()
private boolean
protected Brain
<?> makeBrain
(com.mojang.serialization.Dynamic<?> p_251586_) mobInteract
(Player p_249032_, InteractionHand p_251004_) 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
readAdditionalSaveData
(CompoundTag p_250781_) boolean
protected void
void
resetLastPoseChangeTick
(long p_248642_) private void
resetLastPoseChangeTickToFullStand
(long p_265447_) protected void
void
setDashing
(boolean p_251380_) private void
void
sitDown()
void
standUp()
void
void
tick()
protected void
tickRidden
(Player p_278319_, Vec3 p_278301_) void
protected void
updateWalkAnimation
(float p_268362_) Methods inherited from class net.minecraft.world.entity.animal.horse.AbstractHorse
addBehaviourGoals, aiStep, canEatGrass, canParent, causeFallDamage, containerChanged, createBaseHorseAttributes, createInventory, doPlayerRide, dropEquipment, equipBodyArmor, equipSaddle, fedFood, followMommy, generateJumpStrength, generateMaxHealth, generateSpeed, getAmbientSoundInterval, getAmbientStandInterval, getAmbientStandSound, getAngrySound, getBodyArmorAccess, getControllingPassenger, getDismountLocationForPassenger, getEatAnim, getFlag, getInventory, getInventoryColumns, getInventorySize, getInventorySize, getMaxSpawnClusterSize, getMaxTemper, getMouthAnim, getOwnerUUID, getSlot, getSoundVolume, getStandAnim, getTemper, handleEntityEvent, hasInventoryChanged, hurt, isBred, isEating, isImmobile, isJumping, isPushable, isSaddleable, isSaddled, isStanding, makeMad, modifyTemper, onClimbable, playGallopSound, playJumpSound, positionRider, randomizeAttributes, setBred, setEating, setFlag, setIsJumping, setOffspringAttributes, setOwnerUUID, setStanding, setTamed, setTemper, spawnTamingParticles, standIfPossible, syncSaddleToClients, tameWithName
Methods inherited from class net.minecraft.world.entity.animal.Animal
canFallInLove, checkAnimalSpawnRules, finalizeSpawnChildFromBreeding, getBaseExperienceReward, getInLoveTime, getLoveCause, 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, closeRangeLeashBehaviour, followLeashSpeed, getWalkTargetValue, isPanicking, isPathFinding, shouldStayCloseToLeashHolder
Methods inherited from class net.minecraft.world.entity.Mob
ate, baseTick, canAttackType, canBeLeashed, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, canUseSlot, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, clampHeadRotationToBody, clearRestriction, convertTo, createMobAttributes, createNavigation, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, dropPreservedEquipment, dropPreservedEquipment, enchantSpawnedArmor, enchantSpawnedWeapon, equip, equip, equipItemIfPossible, getArmorAndBodyArmorSlots, getArmorSlots, getAttackBoundingBox, getBodyArmorItem, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashData, getLookControl, getLootTable, getLootTableSeed, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMoveControl, getNavigation, getPathfindingMalus, getPickResult, getPickupReach, getRestrictCenter, getRestrictRadius, getSensing, getSpawnType, getTarget, getTargetFromBrain, hasRestriction, interact, isAggressive, isBodyArmorItem, isEffectiveAi, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSpawnCancelled, isSunBurnTick, isWearingBodyArmor, isWithinMeleeAttackRange, isWithinRestriction, isWithinRestriction, jumpInFluid, jumpInLiquid, leashTooFarBehaviour, lookAt, onOffspringSpawnedFromEgg, onPathfindingDone, onPathfindingStart, pickUpItem, playAmbientSound, playAttackSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, removeAfterChangingDimensions, removeAllGoals, removeFreeWill, requiresCustomPersistence, restrictTo, serverAiStep, setAggressive, setBodyArmorItem, setCanPickUpLoot, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashData, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpawnCancelled, setSpeed, setTarget, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, stopInPlace, tickHeadTurn, updateControlFlags, wantsToPickUp
Methods inherited from class net.minecraft.world.entity.LivingEntity
activeLocationDependentEnchantments, addEffect, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, calculateEntityAnimation, calculateFallDamage, canAttack, canAttack, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canBreatheUnderwater, canDisableShield, canFreeze, canStandOnFluid, canUsePortal, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, decreaseAirSupply, die, doAutoAttackOnTouch, doesEmitEquipEvent, doHurtEquipment, doPush, dropAllDeathLoot, dropExperience, eat, eat, equipmentHasChanged, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAllSlots, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCombatTracker, getComfortableFallDistance, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDefaultGravity, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getExperienceReward, getFallFlyingTicks, getFallSounds, getFluidFallingAdjustedMovement, getFlyingSpeed, getHealth, getHitbox, getHurtDir, getItemInHand, getJumpBoostPower, getJumpPower, getJumpPower, getKillCredit, getKnockback, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxAbsorption, getMaxHeadRotationRelativeToBody, getMaxHealth, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getPreciseBodyRotation, getProjectile, getRelativePortalPosition, getScale, getSleepingPos, getSlotForHand, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getWeaponItem, getYHeadRot, goDownInWater, handleDamageEvent, handleRelativeFrictionAndCalculateMovement, hasEffect, hasInfiniteMaterials, hasItemInSlot, hasLandedInLiquid, hasLineOfSight, heal, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, igniteForTicks, increaseAirSupply, indicateDamage, internalSetAbsorptionAmount, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isInvertedHealAndHarm, isInvulnerableTo, isInWall, isPickable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadRotationStep, lerpHeadTo, lerpTargetX, lerpTargetXRot, lerpTargetY, lerpTargetYRot, lerpTargetZ, lerpTo, lookAt, makeSound, maxUpStep, onBelowWorld, onChangedBlock, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onEquippedItemBroken, onItemPickup, onLeaveCombat, playBlockFallSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, remove, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeEffectsCuredBy, removeFrost, resetForwardDirectionOfRelativePortalPosition, rideTick, sanitizeScale, sendEffectToPassengers, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRiderFaceForward, shouldShowName, skipDropExperience, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, triggerItemUseEffects, triggerOnDeathMobEffects, tryAddFrost, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime, updateUsingItem, verifyEquippedItem, wasExperienceConsumed, wouldNotSuffocateAtTargetPose
Methods inherited from class net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, absRotateTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, adjustSpawnLocation, applyGravity, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canBeCollidedWith, canBeHitByProjectile, canChangeDimensions, canCollideWith, canControlVehicle, canRide, canSpawnSprintParticle, canTrample, captureDrops, captureDrops, changeDimension, checkBelowWorld, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, fireImmune, fixupDimensions, fudgePositionAfterSizeChange, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAttachments, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCapability, getCapability, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getCustomName, getDefaultPassengerAttachmentPoint, getDeltaMovement, getDimensionChangingDelay, getDirection, getDisplayName, getEncodeId, getEntityData, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getGravity, getHandHoldingItemAngle, getId, getInBlockState, getIndirectPassengers, getKnownMovement, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getMovementEmission, getName, getNearestViewDirection, getOnPos, getOnPos, getOnPosLegacy, getPassengers, getPassengersAndSelf, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalCooldown, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandom, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getVehicleAttachmentPoint, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getY, getY, getYRot, getZ, getZ, handlePortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, igniteForSeconds, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInLiquid, isInvisible, isInvisibleTo, isInvulnerable, 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, lerpPositionAndRotationStep, level, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onExplosionHit, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, onSyncedDataUpdated, pick, placePortalTicket, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playSwimSound, position, positionRider, processFlappingMovement, processPortalCooldown, push, push, reapplyPosition, refreshDimensions, registryAccess, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setAsInsidePortal, setBoundingBox, setCustomName, setCustomNameVisible, setData, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, 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, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSound
Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingData, hasAttachments, hasData, removeData, serializeAttachments
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.minecraft.world.entity.EquipmentUser
equip, equip, equip, resolveSlot
Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, hasData, removeData, setData
Methods inherited from interface net.neoforged.neoforge.common.extensions.IEntityExtension
canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canTrample, captureDrops, captureDrops, copyAttachmentsFrom, deserializeNBT, getClassification, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getPickedResult, getSoundFromFluidType, hasCustomOutlineRendering, isAddedToWorld, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToWorld, onRemovedFromWorld, revive, sendPairingData, serializeNBT, shouldRiderSit
Methods inherited from interface net.neoforged.neoforge.common.extensions.ILivingEntityExtension
canDrownInFluidType, canSwimInFluidType, moveInFluid, self, sinkInFluid
Methods inherited from interface net.minecraft.world.entity.Leashable
canHaveALeashAttachedToIt, elasticRangeLeashBehaviour, getLeashHolder, isLeashed, mayBeLeashed, readLeashData, setDelayedLeashHolderId, setLeashedTo, writeLeashData
Methods inherited from interface net.minecraft.world.entity.OwnableEntity
getOwner, level
Methods inherited from interface net.minecraft.world.entity.Saddleable
equipSaddle, isSaddleable, isSaddled
Methods inherited from interface net.minecraft.world.scores.ScoreHolder
getFeedbackDisplayName
-
Field Details
-
BABY_SCALE
public static final float BABY_SCALE- See Also:
-
DASH_COOLDOWN_TICKS
public static final int DASH_COOLDOWN_TICKS- See Also:
-
MAX_HEAD_Y_ROT
public static final int MAX_HEAD_Y_ROT- 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:
-
DASH_MINIMUM_DURATION_TICKS
private static final int DASH_MINIMUM_DURATION_TICKS- 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
-
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
- Overrides:
defineSynchedData
in classAbstractHorse
-
finalizeSpawn
public SpawnGroupData finalizeSpawn(ServerLevelAccessor p_249190_, DifficultyInstance p_251264_, MobSpawnType p_250254_, @Nullable SpawnGroupData p_249259_) - Overrides:
finalizeSpawn
in classAbstractHorse
-
brainProvider
- Overrides:
brainProvider
in classLivingEntity
-
registerGoals
protected void registerGoals()- Overrides:
registerGoals
in classAbstractHorse
-
makeBrain
- Overrides:
makeBrain
in classLivingEntity
-
getDefaultDimensions
- Overrides:
getDefaultDimensions
in classLivingEntity
-
customServerAiStep
protected void customServerAiStep()- Overrides:
customServerAiStep
in classAnimal
-
tick
public void tick()- Overrides:
tick
in classAbstractHorse
-
setupAnimationStates
private void setupAnimationStates() -
updateWalkAnimation
protected void updateWalkAnimation(float p_268362_) - Overrides:
updateWalkAnimation
in classLivingEntity
-
travel
- Overrides:
travel
in classLivingEntity
-
tickRidden
- Overrides:
tickRidden
in classAbstractHorse
-
refuseToMove
public boolean refuseToMove() -
getRiddenSpeed
- Overrides:
getRiddenSpeed
in classAbstractHorse
-
getRiddenRotation
- Overrides:
getRiddenRotation
in classAbstractHorse
-
getRiddenInput
- Overrides:
getRiddenInput
in classAbstractHorse
-
canJump
public boolean 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
-
canSprint
public boolean canSprint() -
executeRidersJump
- Overrides:
executeRidersJump
in classAbstractHorse
-
isDashing
public boolean isDashing() -
setDashing
public void setDashing(boolean p_251380_) -
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
-
handleLeashAtDistance
- Specified by:
handleLeashAtDistance
in interfaceLeashable
- Overrides:
handleLeashAtDistance
in classAbstractHorse
-
canCamelChangePose
public boolean canCamelChangePose() -
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 classAnimal
-
getPassengerAttachmentPoint
protected Vec3 getPassengerAttachmentPoint(Entity p_295101_, EntityDimensions p_294765_, float p_294716_) - Overrides:
getPassengerAttachmentPoint
in classAbstractHorse
-
getAgeScale
public float getAgeScale()- Overrides:
getAgeScale
in classLivingEntity
-
getBodyAnchorAnimationYOffset
private double getBodyAnchorAnimationYOffset(boolean p_249228_, float p_251763_, EntityDimensions p_296157_, float p_296299_) -
getLeashOffset
- Overrides:
getLeashOffset
in classEntity
-
getMaxHeadYRot
public int getMaxHeadYRot()- Overrides:
getMaxHeadYRot
in classMob
-
canAddPassenger
- Overrides:
canAddPassenger
in classEntity
-
sendDebugPackets
protected void sendDebugPackets()- Overrides:
sendDebugPackets
in classMob
-
isCamelSitting
public boolean isCamelSitting() -
isCamelVisuallySitting
public boolean isCamelVisuallySitting() -
isInPoseTransition
public boolean isInPoseTransition() -
isVisuallySittingDown
private boolean isVisuallySittingDown() -
sitDown
public void sitDown() -
standUp
public void standUp() -
standUpInstantly
public void standUpInstantly() -
resetLastPoseChangeTick
public void resetLastPoseChangeTick(long p_248642_) -
resetLastPoseChangeTickToFullStand
private void resetLastPoseChangeTickToFullStand(long p_265447_) -
getPoseTime
public long getPoseTime() -
getSaddleSoundEvent
- Specified by:
getSaddleSoundEvent
in interfaceSaddleable
-
onSyncedDataUpdated
- Specified by:
onSyncedDataUpdated
in interfaceSyncedDataHolder
- Overrides:
onSyncedDataUpdated
in classAgeableMob
-
isTamed
public boolean isTamed()- Overrides:
isTamed
in classAbstractHorse
-
openCustomInventoryScreen
- Specified by:
openCustomInventoryScreen
in interfaceHasCustomInventoryScreen
- Overrides:
openCustomInventoryScreen
in classAbstractHorse
-
createBodyControl
- Overrides:
createBodyControl
in classMob
-