net.minecraft.world.entity.animal

public class Rabbit

extends Animal

All mapped superinterfaces:

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

cjk
net.minecraft.world.entity.animal.Rabbit
net.minecraft.class_1463
net.minecraft.entity.passive.RabbitEntity

Field summary

Modifier and TypeField
public static final double
bF
STROLL_SPEED_MOD
field_30356
field_30356
public static final double
bG
BREED_SPEED_MOD
field_30357
field_30357
public static final double
bH
FOLLOW_SPEED_MOD
field_30358
field_30358
public static final double
bJ
FLEE_SPEED_MOD
field_30359
ESCAPE_DANGER_SPEED
public static final double
bK
ATTACK_SPEED_MOD
field_30360
MELEE_ATTACK_SPEED
private static final EntityDataAccessor<Integer>
bL
DATA_TYPE_ID
field_6852
VARIANT
private static final ResourceLocation
bM
KILLER_BUNNY
field_6846
KILLER_BUNNY
private static final int
bN
DEFAULT_ATTACK_POWER
field_51585
field_51585
private static final int
bO
EVIL_ATTACK_POWER_INCREMENT
field_51586
field_51586
private static final ResourceLocation
bP
EVIL_ATTACK_POWER_MODIFIER
field_51587
KILLER_BUNNY_ATTACK_DAMAGE_MODIFIER_ID
private static final int
bQ
EVIL_ARMOR_VALUE
field_30369
field_30369
private static final int
bR
MORE_CARROTS_DELAY
field_30370
field_30370
private int
bS
jumpTicks
field_6851
jumpTicks
private int
bT
jumpDuration
field_6849
jumpDuration
private boolean
bU
wasOnGround
field_6850
lastOnGround
private int
bV
jumpDelayTicks
field_6848
ticksUntilJump
int
bW
moreCarrotTicks
field_6847
moreCarrotTicks

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
D()
registerGoals()
method_5959()
initGoals()
protected float
fg()
getJumpPower()
method_6106()
getJumpVelocity()
public void
s()
jumpFromGround()
method_6043()
jump()
public float
J(float arg0)
getJumpCompletion(float arg0)
method_6605(float arg0)
getJumpProgress(float delta)
public void
i(double arg0)
setSpeedModifier(double arg0)
method_6606(double arg0)
setSpeed(double speed)
public void
s(boolean arg0)
setJumping(boolean arg0)
method_6100(boolean arg0)
setJumping(boolean arg0)
public void
q()
startJumping()
method_6618()
startJump()
protected void
a(akl$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
a(aro arg0)
customServerAiStep(ServerLevel arg0)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public boolean
bu()
canSpawnSprintParticle()
method_27298()
shouldSpawnSprintingParticles()
private void
c(double arg0, double arg1)
facePoint(double arg0, double arg1)
method_6616(double arg0, double arg1)
lookTowards(double x, double z)
private void
gr()
enableJumpControl()
method_6611()
enableJump()
private void
gs()
disableJumpControl()
method_6621()
disableJump()
private void
gt()
setLandingDelay()
method_6608()
doScheduleJump()
private void
gu()
checkLandingDelay()
method_6619()
scheduleJump()
public void
k_()
aiStep()
method_6007()
tickMovement()
public static AttributeSupplier$Builder
t()
createAttributes()
method_26892()
createRabbitAttributes()
public void
b(tx arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tx arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
protected SoundEvent
x()
getJumpSound()
method_6615()
getJumpSound()
protected SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
e(bup arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
l_()
getDeathSound()
method_6002()
getDeathSound()
public void
gj()
playAttackSound()
method_59928()
playAttackSound()
public SoundSource
dm()
getSoundSource()
method_5634()
getSoundCategory()
public Rabbit
b(aro arg0, bvq arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_6620(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public boolean
k(cys arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
public Rabbit$Variant
gq()
getVariant()
method_47855()
getVariant()
private void
a(cjk$g arg0)
setVariant(Rabbit$Variant arg0)
method_47853(class_1463$class_7990 arg0)
setVariant(RabbitEntity$Variant variant)
public <T> T
a(ki<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
protected void
a(ke arg0)
applyImplicitComponents(DataComponentGetter arg0)
method_66649(class_9473 arg0)
copyComponentsFrom(ComponentsAccess arg0)
protected <T> boolean
b(ki<T> arg0, T arg1)
applyImplicitComponent(DataComponentType<T> arg0, T arg1)
method_66654(class_9331<T> arg0, T arg1)
setApplicableComponent(ComponentType<T> arg0, T arg1)
public SpawnGroupData
a(djg arg0, btw arg1, bwi arg2, bxr 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)
private static Rabbit$Variant
a(diq arg0, iu arg1)
getRandomRabbitVariant(LevelAccessor arg0, BlockPos arg1)
method_47854(class_1936 arg0, class_2338 arg1)
getVariantFromPos(WorldAccess world, BlockPos pos)
public static boolean
c(bwj<cjk> arg0, diq arg1, bwi arg2, iu arg3, azt 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)
boolean
gC()
wantsMoreFood()
method_6607()
wantsCarrots()
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
public Vec3
cT()
getLeashOffset()
method_29919()
getLeashOffset()