net.minecraft.entity.passive

public class CamelEntity

extends AbstractHorseEntity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible, Attackable, ServerWaypoint, Waypoint, Targeter, EquipmentHolder, Leashable, JumpingMount, Mount, RideableInventory, Tameable

net.minecraft.world.entity.animal.camel.Camel
net.minecraft.class_7689
net.minecraft.entity.passive.CamelEntity

Field summary

Modifier and TypeField
public static final float
BABY_SCALE
field_45127
field_45127
public static final int
DASH_COOLDOWN_TICKS
field_40132
field_40132
public static final int
MAX_HEAD_Y_ROT
field_41764
field_41764
private static final float
RUNNING_SPEED_BONUS
field_40146
field_40146
private static final float
DASH_VERTICAL_MOMENTUM
field_40147
field_40147
private static final float
DASH_HORIZONTAL_MOMENTUM
field_40148
field_40148
private static final int
DASH_MINIMUM_DURATION_TICKS
field_43388
field_43388
private static final int
SITDOWN_DURATION_TICKS
field_40149
field_40149
private static final int
STANDUP_DURATION_TICKS
field_40133
field_40133
private static final int
IDLE_MINIMAL_DURATION_TICKS
field_40134
field_40134
private static final float
SITTING_HEIGHT_DIFFERENCE
field_40135
field_40135
private static final long
DEFAULT_LAST_POSE_CHANGE_TICK
field_57624
DEFAULT_LAST_POSE_TICK
private static final Brain$Profile<CamelEntity>
BRAIN_PROVIDER
field_1_1168
PROFILE
public static final TrackedData<Boolean>
DASH
field_40139
DASHING
public static final TrackedData<Long>
LAST_POSE_CHANGE_TICK
field_40140
LAST_POSE_TICK
public final AnimationState
sitAnimationState
field_40142
sittingTransitionAnimationState
public final AnimationState
sitPoseAnimationState
field_40734
sittingAnimationState
public final AnimationState
sitUpAnimationState
field_40143
standingTransitionAnimationState
public final AnimationState
idleAnimationState
field_40144
idlingAnimationState
public final AnimationState
dashAnimationState
field_40145
dashingAnimationState
private static final EntityDimensions
BABY_STANDING_DIMENSIONS
field_1_6074
field_1_6074
private static final EntityDimensions
BABY_SITTING_DIMENSIONS
field_1_6073
field_1_6073
private static final EntityDimensions
ADULT_SITTING_DIMENSIONS
field_40136
SITTING_DIMENSIONS
private int
dashCooldown
field_40137
dashCooldown
private int
idleAnimationTimeout
field_40138
idleAnimationCooldown

Constructor summary

ModifierConstructor
public (EntityType<? extends CamelEntity> type, World level)

Method summary

Modifier and TypeMethod
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public static DefaultAttributeContainer$Builder
createAttributes()
method_45360()
createCamelAttributes()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public EntityData
finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, SpawnGroupData groupData)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
public static boolean
checkCamelSpawnRules(EntityType<Camel> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random)
method_67661(class_1299<class_7689> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawn(EntityType<CamelEntity> type, WorldAccess world, SpawnReason reason, BlockPos pos, Random random)
protected Brain<CamelEntity>
makeBrain(Brain$Packed packedBrain)
method_18867(class_4095$class_1_142 arg0)
deserializeBrain(Brain$State arg0)
public Brain<CamelEntity>
getBrain()
method_18868()
getBrain()
protected void
registerGoals()
method_5959()
initGoals()
public EntityDimensions
getDefaultDimensions(Pose pose)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
protected void
customServerAiStep(ServerLevel level)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public void
tick()
method_5773()
tick()
private void
setupAnimationStates()
method_45356()
updateAnimations()
protected void
updateWalkAnimation(float distance)
method_48565(float arg0)
updateLimbs(float arg0)
public void
travel(Vec3 input)
method_6091(class_243 arg0)
travel(Vec3d arg0)
protected void
tickRidden(Player controller, Vec3 riddenInput)
method_49481(class_1657 arg0, class_243 arg1)
tickControlled(PlayerEntity arg0, Vec3d arg1)
public boolean
refuseToMove()
method_45357()
isStationary()
protected float
getRiddenSpeed(Player controller)
method_49485(class_1657 arg0)
getSaddledSpeed(PlayerEntity arg0)
protected Vec2f
getRiddenRotation(LivingEntity controller)
method_49489(class_1309 arg0)
getControlledRotation(LivingEntity arg0)
protected Vec3d
getRiddenInput(Player controller, Vec3 selfInput)
method_49482(class_1657 arg0, class_243 arg1)
getControlledMovementInput(PlayerEntity arg0, Vec3d arg1)
public boolean
canJump()
method_6153()
canJump()
public void
onPlayerJump(int jumpAmount)
method_6154(int arg0)
setJumpStrength(int arg0)
public boolean
canSprint()
method_48155()
canSprintAsVehicle()
protected void
executeRidersJump(float amount, Vec3 input)
method_45343(float arg0, class_243 arg1)
jump(float arg0, Vec3d arg1)
public boolean
isDashing()
method_45361()
isDashing()
public void
setDashing(boolean isDashing)
method_45362(boolean arg0)
setDashing(boolean dashing)
public void
handleStartJump(int jumpScale)
method_6155(int arg0)
startJumping(int arg0)
protected SoundEvent
getDashingSound()
method_76099()
getDashSound()
protected SoundEvent
getDashReadySound()
method_76100()
getDashReadySound()
public void
handleStopJump()
method_6156()
stopJumping()
public int
getJumpCooldown()
method_45327()
getJumpCooldown()
protected SoundEvent
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected void
playStepSound(BlockPos pos, BlockState blockState)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
public boolean
isFood(ItemStack itemStack)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
public ActionResult
mobInteract(Player player, InteractionHand hand)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
public void
onElasticLeashPull()
method_71006()
onLongLeashTick()
public Vec3d[]
getQuadLeashOffsets()
method_70992()
getQuadLeashOffsets()
public boolean
canCamelChangePose()
method_52548()
canChangePose()
protected boolean
handleEating(Player player, ItemStack itemStack)
method_6742(class_1657 arg0, class_1799 arg1)
receiveFood(PlayerEntity arg0, ItemStack arg1)
protected boolean
canPerformRearing()
method_45349()
shouldAmbientStand()
public boolean
canMate(Animal partner)
method_6474(class_1429 arg0)
canBreedWith(AnimalEntity arg0)
public CamelEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
protected SoundEvent
getEatingSound()
method_28368()
getEatSound()
protected void
actuallyHurt(ServerLevel level, DamageSource source, float dmg)
method_6074(class_3218 arg0, class_1282 arg1, float arg2)
applyDamage(ServerWorld arg0, DamageSource arg1, float arg2)
protected Vec3d
getPassengerAttachmentPoint(Entity passenger, EntityDimensions dimensions, float scale)
method_52533(class_1297 arg0, class_4048 arg1, float arg2)
getPassengerAttachmentPos(Entity arg0, EntityDimensions arg1, float arg2)
public float
getAgeScale()
method_17825()
getScaleFactor()
private double
getBodyAnchorAnimationYOffset(boolean isFront, float partialTicks, EntityDimensions dimensions, float scale)
method_45346(boolean arg0, float arg1, class_4048 arg2, float arg3)
getPassengerAttachmentY(boolean primaryPassenger, float tickProgress, EntityDimensions arg2, float scaleFactor)
public Vec3d
getLeashOffset(float partialTicks)
method_45321(float arg0)
getLeashOffset(float arg0)
public int
getMaxHeadYRot()
method_5986()
getMaxHeadRotation()
protected boolean
canAddPassenger(Entity passenger)
method_5818(class_1297 arg0)
canAddPassenger(Entity arg0)
public boolean
isCamelSitting()
method_45350()
isSitting()
public boolean
isCamelVisuallySitting()
method_48573()
shouldUpdateSittingAnimations()
public boolean
isInPoseTransition()
method_45351()
isChangingPose()
private boolean
isVisuallySittingDown()
method_46398()
shouldPlaySittingTransitionAnimation()
public void
sitDown()
method_45352()
startSitting()
public void
standUp()
method_45353()
startStanding()
protected SoundEvent
getStandUpSound()
method_76101()
getStandSound()
protected SoundEvent
getSitDownSound()
method_76102()
getSitSound()
public void
standUpInstantly()
method_45354()
setStanding()
public void
resetLastPoseChangeTick(long syncedPoseTickTime)
method_45344(long arg0)
setLastPoseTick(long lastPoseTick)
private void
resetLastPoseChangeTickToFullStand(long currentTime)
method_48160(long arg0)
initLastPoseTick(long time)
public long
getPoseTime()
method_45355()
getTimeSinceLastPoseTick()
protected RegistryEntry<SoundEvent>
getEquipSound(EquipmentSlot slot, ItemStack stack, Equippable equippable)
method_66667(class_1304 arg0, class_1799 arg1, class_10192 arg2)
getEquipSound(EquipmentSlot arg0, ItemStack arg1, EquippableComponent arg2)
protected RegistryEntry$Reference<SoundEvent>
getSaddleSound()
method_76103()
getSaddleSound()
public void
onSyncedDataUpdated(EntityDataAccessor<?> accessor)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public boolean
isTamed()
method_6727()
isTame()
public void
openCustomInventoryScreen(Player player)
method_6722(class_1657 arg0)
openInventory(PlayerEntity arg0)
protected BodyControl
createBodyControl()
method_5963()
createBodyControl()
public PassiveEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
private static List
lambda$static$0(Camel arg0)
method_1_1340(class_7689 arg0)
method_1_1340(CamelEntity camel)