net.minecraft.world.entity.animal.camel

public class Camel

extends AbstractHorse implements PlayerRideableJumping, RiderShieldingMount, Saddleable

All mapped superinterfaces:

Nameable, EntityAccess, CommandSource, ContainerListener, HasCustomInventoryScreen, PlayerRideableJumping, PlayerRideable, Saddleable, RiderShieldingMount

bra
net.minecraft.world.entity.animal.camel.Camel
net.minecraft.class_7689
net.minecraft.entity.passive.CamelEntity
net.minecraft.src.C_243588_
net.minecraft.world.entity.animal.camel.Camel

Field summary

Modifier and TypeField
public static final Ingredient
bX
TEMPTATION_ITEM
field_40131
BREEDING_INGREDIENT
f_243705_
public static final int
bY
DASH_COOLDOWN_TICKS
field_40132
field_40132
f_244289_
private static final float
cx
RUNNING_SPEED_BONUS
field_40146
field_40146
f_243982_
private static final float
cy
DASH_VERTICAL_MOMENTUM
field_40147
field_40147
f_244195_
private static final float
cz
DASH_HORIZONTAL_MOMENTUM
field_40148
field_40148
f_244101_
private static final int
cA
SITDOWN_DURATION_TICKS
field_40149
field_40149
f_244084_
private static final int
cB
STANDUP_DURATION_TICKS
field_40133
field_40133
f_244435_
private static final int
cC
IDLE_MINIMAL_DURATION_TICKS
field_40134
field_40134
f_244638_
private static final float
cD
SITTING_HEIGHT_DIFFERENCE
field_40135
field_40135
f_243730_
public static final EntityDataAccessor<Boolean>
ca
DASH
field_40139
DASHING
f_244117_
public static final EntityDataAccessor<Long>
cb
LAST_POSE_CHANGE_TICK
field_40140
LAST_POSE_TICK
f_243883_
public final AnimationState
cc
walkAnimationState
field_40141
walkingAnimationState
f_244060_
public final AnimationState
cd
sitAnimationState
field_40142
sittingTransitionAnimationState
f_243928_
public final AnimationState
ce
sitPoseAnimationState
field_40734
sittingAnimationState
f_252486_
public final AnimationState
cf
sitUpAnimationState
field_40143
standingTransitionAnimationState
f_244242_
public final AnimationState
cg
idleAnimationState
field_40144
idlingAnimationState
f_244047_
public final AnimationState
ch
dashAnimationState
field_40145
dashingAnimationState
f_244243_
private static final EntityDimensions
cE
SITTING_DIMENSIONS
field_40136
SITTING_DIMENSIONS
f_244306_
private int
cF
dashCooldown
field_40137
dashCooldown
f_244455_
private int
cG
idleAnimationTimeout
field_40138
idleAnimationCooldown
f_244476_

Constructor summary

ModifierConstructor
public (EntityType<? extends Camel> p_249295_, Level arg1)

Method summary

Modifier and TypeMethod
public void
b(qp arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(qp arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public static AttributeSupplier$Builder
p()
createAttributes()
method_45360()
createCamelAttributes()
m_247319_()
protected void
a_()
defineSynchedData()
method_5693()
initDataTracker()
m_8097_()
public SpawnGroupData
a(ckl arg0, bck arg1, bek arg2, bez arg3, qp arg4)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, MobSpawnType arg2, SpawnGroupData arg3, CompoundTag arg4)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3, class_2487 arg4)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3, NbtCompound arg4)
m_6518_(C_1618_ p_251264_, C_469_ p_250254_, C_529_ p_249259_, C_542_ p_251838_, C_4917_ arg4)
protected Brain$Provider<Camel>
dE()
brainProvider()
method_28306()
createBrainProfile()
m_5490_()
protected void
u()
registerGoals()
method_5959()
initGoals()
m_8099_()
protected Brain<?>
a(com.mojang.serialization.Dynamic<?> arg0)
makeBrain(com.mojang.serialization.Dynamic<?> arg0)
method_18867(com.mojang.serialization.Dynamic<?> arg0)
deserializeBrain(com.mojang.serialization.Dynamic<?> arg0)
m_8075_(com.mojang.serialization.Dynamic<?> arg0)
public EntityDimensions
a(bes arg0)
getDimensions(Pose arg0)
method_18377(class_4050 arg0)
getDimensions(EntityPose arg0)
m_6972_(C_535_ arg0)
protected float
b(bes arg0, bds arg1)
getStandingEyeHeight(Pose arg0, EntityDimensions arg1)
method_18394(class_4050 arg0, class_4048 arg1)
getActiveEyeHeight(EntityPose arg0, EntityDimensions arg1)
m_6431_(C_535_ p_250490_, C_510_ arg1)
public double
c()
getRiderShieldingHeight()
method_47923()
getPassengerAttackYOffset()
m_262813_()
protected void
U()
customServerAiStep()
method_5958()
mobTick()
m_8024_()
public void
l()
tick()
method_5773()
tick()
m_8119_()
private void
gA()
setupAnimationStates()
method_45356()
updateAnimations()
m_245223_()
public void
h(eae arg0)
travel(Vec3 arg0)
method_6091(class_243 arg0)
travel(Vec3d arg0)
m_7023_(C_3046_ arg0)
public boolean
t()
refuseToMove()
method_45357()
isStationary()
m_245824_()
protected float
l(beg arg0)
getDrivenMovementSpeed(LivingEntity arg0)
method_45358(class_1309 arg0)
getHorsebackMovementSpeed(LivingEntity arg0)
m_245547_(C_524_ arg0)
protected boolean
m(beg arg0)
mountIgnoresControllerInput(LivingEntity arg0)
method_45359(class_1309 arg0)
ignoresMovementInput(LivingEntity arg0)
m_245701_(C_524_ arg0)
public boolean
a(bwp arg0)
canJump(Player arg0)
method_6153(class_1657 arg0)
canJump(PlayerEntity arg0)
m_7132_(C_1141_ arg0)
public void
a(int arg0)
onPlayerJump(int arg0)
method_6154(int arg0)
setJumpStrength(int arg0)
m_7888_(int arg0)
protected void
a(float arg0, float arg1, float arg2)
executeRidersJump(float arg0, float arg1, float arg2)
method_45343(float arg0, float arg1, float arg2)
jump(float arg0, float arg1, float arg2)
m_245980_(float p_249345_, float p_249119_, float arg2)
public boolean
fM()
isDashing()
method_45361()
isDashing()
m_245293_()
public void
v(boolean arg0)
setDashing(boolean arg0)
method_45362(boolean arg0)
setDashing(boolean dashing)
m_246841_(boolean arg0)
public boolean
fN()
isPanicking()
method_45348()
isPanicking()
m_245623_()
public void
b(int arg0)
handleStartJump(int arg0)
method_6155(int arg0)
startJumping(int arg0)
m_7199_(int arg0)
public void
a()
handleStopJump()
method_6156()
stopJumping()
m_8012_()
public int
b()
getJumpCooldown()
method_45327()
getJumpCooldown()
m_245614_()
protected SoundEvent
r()
getAmbientSound()
method_5994()
getAmbientSound()
m_7515_()
protected SoundEvent
c_()
getDeathSound()
method_6002()
getDeathSound()
m_5592_()
protected SoundEvent
c(bcz arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
protected void
b(gp arg0, cyt arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
m_7355_(C_4675_ p_251457_, C_2064_ arg1)
public boolean
n(cdt arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
m_6898_(C_1391_ arg0)
public InteractionResult
b(bwp arg0, bcl arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
m_6071_(C_1141_ p_251004_, C_470_ arg1)
protected void
y(float arg0)
onLeashDistance(float arg0)
method_6142(float arg0)
updateForLeashLength(float arg0)
m_7880_(float arg0)
protected boolean
a(bwp arg0, cdt arg1)
handleEating(Player arg0, ItemStack arg1)
method_6742(class_1657 arg0, class_1799 arg1)
receiveFood(PlayerEntity arg0, ItemStack arg1)
m_5994_(C_1141_ p_248995_, C_1391_ arg1)
protected boolean
fO()
canPerformRearing()
method_45349()
shouldAmbientStand()
m_245259_()
public boolean
a(bpo arg0)
canMate(Animal arg0)
method_6474(class_1429 arg0)
canBreedWith(AnimalEntity arg0)
m_7848_(C_801_ arg0)
public Camel
b(ahm arg0, bdo arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_45347(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
m_142606_(C_12_ p_251047_, C_141062_ arg1)
protected SoundEvent
fU()
getEatingSound()
method_28368()
getEatSound()
m_7872_()
protected void
f(bcz arg0, float arg1)
actuallyHurt(DamageSource arg0, float arg1)
method_6074(class_1282 arg0, float arg1)
applyDamage(DamageSource arg0, float arg1)
m_6475_(C_489_ p_251451_, float arg1)
public void
i(bdr arg0)
positionRider(Entity arg0)
method_5865(class_1297 arg0)
updatePassengerPosition(Entity arg0)
m_7332_(C_507_ arg0)
private double
a(boolean arg0, float arg1)
getBodyAnchorAnimationYOffset(boolean arg0, float arg1)
method_45346(boolean arg0, float arg1)
method_45346(boolean arg0, float arg1)
m_246718_(boolean p_251763_, float arg1)
public Vec3
n(float arg0)
getLeashOffset(float arg0)
method_45321(float arg0)
getLeashOffset(float arg0)
m_245894_(float arg0)
public double
bw()
getPassengersRidingOffset()
method_5621()
getMountedHeightOffset()
m_6048_()
public void
j(bdr arg0)
onPassengerTurned(Entity arg0)
method_5644(class_1297 arg0)
onPassengerLookAround(Entity arg0)
m_7340_(C_507_ arg0)
private void
a(bdr arg0)
clampRotation(Entity arg0)
method_45345(class_1297 arg0)
clampPassengerYaw(Entity passenger)
m_246824_(C_507_ arg0)
protected boolean
p(bdr arg0)
canAddPassenger(Entity arg0)
method_5818(class_1297 arg0)
canAddPassenger(Entity arg0)
m_7310_(C_507_ arg0)
public LivingEntity
fV()
getControllingPassenger()
method_42167()
getPrimaryPassenger()
m_6688_()
protected void
S()
sendDebugPackets()
method_18409()
sendAiDebugData()
m_8025_()
public boolean
fW()
isPoseSitting()
method_45350()
isSitting()
m_247350_()
public boolean
fX()
isInPoseTransition()
method_45351()
isChangingPose()
m_245346_()
private boolean
gB()
isSittingDown()
method_46398()
shouldPlaySittingTransitionAnimation()
m_253243_()
public void
fY()
sitDown()
method_45352()
startSitting()
m_245138_()
public void
fZ()
standUp()
method_45353()
startStanding()
m_246761_()
public void
ga()
standUpPanic()
method_45354()
setStanding()
m_247328_()
public void
a(long arg0)
resetLastPoseChangeTick(long arg0)
method_45344(long arg0)
setLastPoseTick(long lastPoseTick)
m_246174_(long arg0)
public long
gb()
getPoseTime()
method_45355()
getLastPoseTickDelta()
m_246237_()
public SoundEvent
e()
getSaddleSoundEvent()
method_45328()
getSaddleSound()
m_246265_()
public void
a(abn<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
m_7350_(C_5225_<?> arg0)
protected BodyRotationControl
z()
createBodyControl()
method_5963()
createBodyControl()
m_7560_()
public boolean
gc()
isTamed()
method_6727()
isTame()
m_30614_()
public void
b(bwp arg0)
openCustomInventoryScreen(Player arg0)
method_6722(class_1657 arg0)
openInventory(PlayerEntity arg0)
m_213583_(C_1141_ arg0)