net.minecraft.world.entity.animal

public class Rabbit

extends Animal

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, UniquelyIdentifyable, ScoreHolder, DataComponentGetter, Attackable, WaypointTransmitter, Waypoint, EquipmentUser, Leashable, Targeting

cnf
net.minecraft.world.entity.animal.Rabbit
net.minecraft.class_1463
net.minecraft.entity.passive.RabbitEntity
net.minecraft.src.C_887_

Field summary

Modifier and TypeField
public static final double
ck
STROLL_SPEED_MOD
field_30356
field_30356
f_149016_
public static final double
cl
BREED_SPEED_MOD
field_30357
field_30357
f_149017_
public static final double
cm
FOLLOW_SPEED_MOD
field_30358
field_30358
f_149018_
public static final double
co
FLEE_SPEED_MOD
field_30359
ESCAPE_DANGER_SPEED
f_149019_
public static final double
cp
ATTACK_SPEED_MOD
field_30360
MELEE_ATTACK_SPEED
f_149020_
private static final EntityDataAccessor<Integer>
cq
DATA_TYPE_ID
field_6852
VARIANT
f_29647_
private static final int
cr
DEFAULT_MORE_CARROT_TICKS
field_57616
DEFAULT_MORE_CARROT_TICKS
f_382246_
private static final ResourceLocation
cs
KILLER_BUNNY
field_6846
KILLER_BUNNY
f_29648_
private static final int
ct
DEFAULT_ATTACK_POWER
field_51585
field_51585
f_336616_
private static final int
cu
EVIL_ATTACK_POWER_INCREMENT
field_51586
field_51586
f_337297_
private static final ResourceLocation
cv
EVIL_ATTACK_POWER_MODIFIER
field_51587
KILLER_BUNNY_ATTACK_DAMAGE_MODIFIER_ID
f_336699_
private static final int
cw
EVIL_ARMOR_VALUE
field_30369
field_30369
f_149029_
private static final int
cx
MORE_CARROTS_DELAY
field_30370
field_30370
f_149030_
private int
cy
jumpTicks
field_6851
jumpTicks
f_29649_
private int
cz
jumpDuration
field_6849
jumpDuration
f_29650_
private boolean
cA
wasOnGround
field_6850
lastOnGround
f_29651_
private int
cB
jumpDelayTicks
field_6848
ticksUntilJump
f_29652_
int
cC
moreCarrotTicks
field_6847
moreCarrotTicks
f_29653_

Constructor summary

ModifierConstructor
public (EntityType<? extends Rabbit> p_29657_, Level arg1)

Method summary

Modifier and TypeMethod
protected void
H()
registerGoals()
method_5959()
initGoals()
m_8099_()
protected float
fn()
getJumpPower()
method_6106()
getJumpVelocity()
m_6118_()
public void
s()
jumpFromGround()
method_6043()
jump()
m_6135_()
public float
J(float arg0)
getJumpCompletion(float arg0)
method_6605(float arg0)
getJumpProgress(float tickProgress)
m_29735_(float arg0)
public void
i(double arg0)
setSpeedModifier(double arg0)
method_6606(double arg0)
setSpeed(double speed)
m_29725_(double arg0)
public void
t(boolean arg0)
setJumping(boolean arg0)
method_6100(boolean arg0)
setJumping(boolean arg0)
m_6862_(boolean arg0)
public void
m()
startJumping()
method_6618()
startJump()
m_29716_()
protected void
a(all$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
public void
a(aub arg0)
customServerAiStep(ServerLevel arg0)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
m_8024_(C_12_ arg0)
public boolean
by()
canSpawnSprintParticle()
method_27298()
shouldSpawnSprintingParticles()
m_5843_()
private void
c(double arg0, double arg1)
facePoint(double arg0, double arg1)
method_6616(double arg0, double arg1)
lookTowards(double x, double z)
m_29686_(double p_29688_, double arg1)
private void
gI()
enableJumpControl()
method_6611()
enableJump()
m_29720_()
private void
gJ()
disableJumpControl()
method_6621()
disableJump()
m_29721_()
private void
gK()
setLandingDelay()
method_6608()
doScheduleJump()
m_29722_()
private void
gL()
checkLandingDelay()
method_6619()
scheduleJump()
m_29723_()
public void
e_()
aiStep()
method_6007()
tickMovement()
m_8107_()
public static AttributeSupplier$Builder
n()
createAttributes()
method_26892()
createRabbitAttributes()
m_29717_()
protected void
a(fdc arg0)
addAdditionalSaveData(ValueOutput arg0)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
m_7380_(C_398537_ arg0)
protected void
a(fda arg0)
readAdditionalSaveData(ValueInput arg0)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
m_7378_(C_398549_ arg0)
protected SoundEvent
t()
getJumpSound()
method_6615()
getJumpSound()
m_29718_()
protected SoundEvent
p()
getAmbientSound()
method_5994()
getAmbientSound()
m_7515_()
protected SoundEvent
e(byb arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
protected SoundEvent
f_()
getDeathSound()
method_6002()
getDeathSound()
m_5592_()
public void
gA()
playAttackSound()
method_59928()
playAttackSound()
m_339982_()
public SoundSource
do()
getSoundSource()
method_5634()
getSoundCategory()
m_5720_()
public Rabbit
b(aub arg0, bzc arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_6620(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
m_142606_(C_12_ p_149036_, C_141062_ arg1)
public boolean
i(dcv arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
m_6898_(C_1391_ arg0)
public Rabbit$Variant
gH()
getVariant()
method_47855()
getVariant()
m_262485_()
private void
a(cnf$g arg0)
setVariant(Rabbit$Variant arg0)
method_47853(class_1463$class_7990 arg0)
setVariant(RabbitEntity$Variant variant)
m_262421_(C_887_$C_262194_ arg0)
public <T> T
a(kp<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
m_318834_(C_313543_<? extends T> arg0)
protected void
a(kl arg0)
applyImplicitComponents(DataComponentGetter arg0)
method_66649(class_9473 arg0)
copyComponentsFrom(ComponentsAccess arg0)
m_383893_(C_379187_ arg0)
protected <T> boolean
b(kp<T> arg0, T arg1)
applyImplicitComponent(DataComponentType<T> arg0, T arg1)
method_66654(class_9331<T> arg0, T arg1)
setApplicableComponent(ComponentType<T> arg0, T arg1)
m_383901_(C_313543_<T> p_396457_, T arg1)
public SpawnGroupData
a(dnl arg0, bxh arg1, bzu arg2, cbe arg3)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, EntitySpawnReason arg2, SpawnGroupData arg3)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
m_6518_(C_1618_ p_29679_, C_469_ p_367611_, C_345845_ p_29681_, C_542_ arg3)
private static Rabbit$Variant
a(dmv arg0, jb arg1)
getRandomRabbitVariant(LevelAccessor arg0, BlockPos arg1)
method_47854(class_1936 arg0, class_2338 arg1)
getVariantFromPos(WorldAccess world, BlockPos pos)
m_262482_(C_1598_ p_262699_, C_4675_ p_262700_)
public static boolean
c(bzv<cnf> arg0, dmv arg1, bzu arg2, jb arg3, bck arg4)
checkRabbitSpawnRules(EntityType<Rabbit> arg0, LevelAccessor arg1, EntitySpawnReason arg2, BlockPos arg3, RandomSource arg4)
method_20669(class_1299<class_1463> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawn(EntityType<RabbitEntity> entity, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
m_218255_(C_513_<C_887_> p_218256_, C_1598_ p_218257_, C_345845_ p_365577_, C_4675_ p_218259_, C_212974_ p_218260_)
boolean
gT()
wantsMoreFood()
method_6607()
wantsCarrots()
m_29724_()
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
m_7822_(byte arg0)
public Vec3
F()
getLeashOffset()
method_29919()
getLeashOffset()
m_27831_()