net.minecraft.entity.passive

public class RabbitEntity

extends AnimalEntity

All mapped superinterfaces:

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

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

Field summary

Modifier and TypeField
private static final EntityDimensions
BABY_DIMENSIONS
field_1_851
BABY_DIMENSIONS
public static final double
STROLL_SPEED_MOD
field_30356
field_30356
public static final double
BREED_SPEED_MOD
field_30357
field_30357
public static final double
FOLLOW_SPEED_MOD
field_30358
field_30358
public static final double
FLEE_SPEED_MOD
field_30359
ESCAPE_DANGER_SPEED
public static final double
ATTACK_SPEED_MOD
field_30360
MELEE_ATTACK_SPEED
private static final double
BABY_JUMP_HEIGHT
field_1_852
field_1_852
private static final double
ADULT_JUMP_HEIGHT
field_1_850
field_1_850
private static final int
JUMP_DELAY_TICKS
field_1_1842
field_1_1842
private static final int
PANIC_JUMP_DELAY_TICKS
field_1_1843
field_1_1843
private static final int
JUMP_DURATION_IN_TICKS
field_1_854
field_1_854
private static final TrackedData<Integer>
DATA_TYPE_ID
field_6852
VARIANT
private static final int
DEFAULT_MORE_CARROT_TICKS
field_57616
DEFAULT_MORE_CARROT_TICKS
public final AnimationState
hopAnimationState
field_1_855
jumpState
public final AnimationState
idleHeadTiltAnimationState
field_1_857
lookState
private static final int
IDLE_MINIMAL_DURATION_TICKS
field_1_853
field_1_853
private int
idleAnimationTimeout
field_1_856
ticksUntilLook
private static final Identifier
KILLER_BUNNY
field_6846
KILLER_BUNNY
private static final int
DEFAULT_ATTACK_POWER
field_51585
field_51585
private static final int
EVIL_ATTACK_POWER_INCREMENT
field_51586
field_51586
private static final Identifier
EVIL_ATTACK_POWER_MODIFIER
field_51587
KILLER_BUNNY_ATTACK_DAMAGE_MODIFIER_ID
private static final int
EVIL_ARMOR_VALUE
field_30369
field_30369
private static final int
MORE_CARROTS_DELAY
field_30370
field_30370
private int
jumpTicks
field_6851
jumpTicks
private int
jumpDuration
field_6849
jumpDuration
private boolean
wasOnGround
field_6850
lastOnGround
private int
jumpDelayTicks
field_6848
ticksUntilJump
private int
moreCarrotTicks
field_6847
moreCarrotTicks

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
registerGoals()
method_5959()
initGoals()
protected EntityDimensions
getDefaultDimensions(Pose pose)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
protected float
getJumpPower()
method_6106()
getJumpVelocity()
public void
jumpFromGround()
method_6043()
jump()
public float
getJumpCompletion(float a)
method_6605(float arg0)
getJumpProgress(float tickProgress)
public void
setSpeedModifier(double speed)
method_6606(double arg0)
setSpeed(double speed)
public void
setJumping(boolean jump)
method_6100(boolean arg0)
setJumping(boolean arg0)
public void
startJumping()
method_6618()
startJump()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
customServerAiStep(ServerLevel level)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public boolean
canSpawnSprintParticle()
method_27298()
shouldSpawnSprintingParticles()
private void
facePoint(double faceX, double faceZ)
method_6616(double arg0, double arg1)
lookTowards(double x, double z)
private void
enableJumpControl()
method_6611()
enableJump()
private void
disableJumpControl()
method_6621()
disableJump()
private void
setLandingDelay()
method_6608()
doScheduleJump()
private void
checkLandingDelay()
method_6619()
scheduleJump()
public void
aiStep()
method_6007()
tickMovement()
public static DefaultAttributeContainer$Builder
createAttributes()
method_26892()
createRabbitAttributes()
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)
protected SoundEvent
getJumpSound()
method_6615()
getJumpSound()
protected SoundEvent
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
public void
playAttackSound()
method_59928()
playAttackSound()
public SoundCategory
getSoundSource()
method_5634()
getSoundCategory()
public RabbitEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public boolean
isFood(ItemStack itemStack)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
public RabbitEntity$Variant
getVariant()
method_47855()
getVariant()
private void
setVariant(Rabbit$Variant variant)
method_47853(class_1463$class_7990 arg0)
setVariant(RabbitEntity$Variant variant)
public <T> T
get(DataComponentType<? extends T> type)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
protected void
applyImplicitComponents(DataComponentGetter components)
method_66649(class_9473 arg0)
copyComponentsFrom(ComponentsAccess arg0)
protected <T> boolean
applyImplicitComponent(DataComponentType<T> type, T value)
method_66654(class_9331<T> arg0, T arg1)
setApplicableComponent(ComponentType<T> arg0, T arg1)
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)
private static RabbitEntity$Variant
getRandomRabbitVariant(LevelAccessor level, BlockPos pos)
method_47854(class_1936 arg0, class_2338 arg1)
getVariantFromPos(WorldAccess world, BlockPos pos)
public static boolean
checkRabbitSpawnRules(EntityType<Rabbit> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random)
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)
private boolean
wantsMoreFood()
method_6607()
wantsCarrots()
public void
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
public Vec3d
getLeashOffset()
method_29919()
getLeashOffset()
private void
setupAnimationStates()
method_1_788()
animationTick()
private boolean
shouldPlayIdleAnimation()
method_1_789()
shouldLook()
public void
setLeashData(Leashable$LeashData leashData)
method_60960(class_9817$class_9818 arg0)
setLeashData(Leashable$LeashData arg0)
public void
baseTick()
method_5670()
baseTick()
public PassiveEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
static boolean
access$000(Rabbit arg0)
method_24839(class_1463 arg0)
method_24839(RabbitEntity arg0)
static JumpControl
access$100(Rabbit arg0)
method_6604(class_1463 arg0)
method_6604(RabbitEntity arg0)
private static boolean
lambda$registerGoals$0(ItemStack arg0)
method_58374(class_1799 arg0)
method_58374(ItemStack stack)