Class RabbitEntity

All Implemented Interfaces:
Attackable, DataTracked, EquipmentHolder, Targeter, VariantHolder<RabbitEntity.RabbitType>, ScoreHolder, CommandOutput, Nameable, EntityLike

public class RabbitEntity extends AnimalEntity implements VariantHolder<RabbitEntity.RabbitType>
Mappings:
Namespace Name
named net/minecraft/entity/passive/RabbitEntity
intermediary net/minecraft/class_1463
official cga
  • Field Details

    • field_30356

      public static final double field_30356
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30356 Lnet/minecraft/entity/passive/RabbitEntity;field_30356:D
      intermediary field_30356 Lnet/minecraft/class_1463;field_30356:D
      official bY Lcga;bY:D
    • field_30357

      public static final double field_30357
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30357 Lnet/minecraft/entity/passive/RabbitEntity;field_30357:D
      intermediary field_30357 Lnet/minecraft/class_1463;field_30357:D
      official bZ Lcga;bZ:D
    • field_30358

      public static final double field_30358
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30358 Lnet/minecraft/entity/passive/RabbitEntity;field_30358:D
      intermediary field_30358 Lnet/minecraft/class_1463;field_30358:D
      official cb Lcga;cb:D
    • ESCAPE_DANGER_SPEED

      public static final double ESCAPE_DANGER_SPEED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ESCAPE_DANGER_SPEED Lnet/minecraft/entity/passive/RabbitEntity;ESCAPE_DANGER_SPEED:D
      intermediary field_30359 Lnet/minecraft/class_1463;field_30359:D
      official cc Lcga;cc:D
    • MELEE_ATTACK_SPEED

      public static final double MELEE_ATTACK_SPEED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MELEE_ATTACK_SPEED Lnet/minecraft/entity/passive/RabbitEntity;MELEE_ATTACK_SPEED:D
      intermediary field_30360 Lnet/minecraft/class_1463;field_30360:D
      official cd Lcga;cd:D
    • RABBIT_TYPE

      private static final TrackedData<Integer> RABBIT_TYPE
      Mappings:
      Namespace Name Mixin selector
      named RABBIT_TYPE Lnet/minecraft/entity/passive/RabbitEntity;RABBIT_TYPE:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_6852 Lnet/minecraft/class_1463;field_6852:Lnet/minecraft/class_2940;
      official cg Lcga;cg:Lakk;
    • KILLER_BUNNY

      private static final Identifier KILLER_BUNNY
      Mappings:
      Namespace Name Mixin selector
      named KILLER_BUNNY Lnet/minecraft/entity/passive/RabbitEntity;KILLER_BUNNY:Lnet/minecraft/util/Identifier;
      intermediary field_6846 Lnet/minecraft/class_1463;field_6846:Lnet/minecraft/class_2960;
      official ch Lcga;ch:Lalf;
    • field_30368

      public static final int field_30368
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30368 Lnet/minecraft/entity/passive/RabbitEntity;field_30368:I
      intermediary field_30368 Lnet/minecraft/class_1463;field_30368:I
      official ce Lcga;ce:I
    • field_30369

      public static final int field_30369
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30369 Lnet/minecraft/entity/passive/RabbitEntity;field_30369:I
      intermediary field_30369 Lnet/minecraft/class_1463;field_30369:I
      official cf Lcga;cf:I
    • field_30370

      private static final int field_30370
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30370 Lnet/minecraft/entity/passive/RabbitEntity;field_30370:I
      intermediary field_30370 Lnet/minecraft/class_1463;field_30370:I
      official ci Lcga;ci:I
    • jumpTicks

      private int jumpTicks
      Mappings:
      Namespace Name Mixin selector
      named jumpTicks Lnet/minecraft/entity/passive/RabbitEntity;jumpTicks:I
      intermediary field_6851 Lnet/minecraft/class_1463;field_6851:I
      official cj Lcga;cj:I
    • jumpDuration

      private int jumpDuration
      Mappings:
      Namespace Name Mixin selector
      named jumpDuration Lnet/minecraft/entity/passive/RabbitEntity;jumpDuration:I
      intermediary field_6849 Lnet/minecraft/class_1463;field_6849:I
      official ck Lcga;ck:I
    • lastOnGround

      private boolean lastOnGround
      Mappings:
      Namespace Name Mixin selector
      named lastOnGround Lnet/minecraft/entity/passive/RabbitEntity;lastOnGround:Z
      intermediary field_6850 Lnet/minecraft/class_1463;field_6850:Z
      official cl Lcga;cl:Z
    • ticksUntilJump

      private int ticksUntilJump
      Mappings:
      Namespace Name Mixin selector
      named ticksUntilJump Lnet/minecraft/entity/passive/RabbitEntity;ticksUntilJump:I
      intermediary field_6848 Lnet/minecraft/class_1463;field_6848:I
      official cm Lcga;cm:I
    • moreCarrotTicks

      int moreCarrotTicks
      Mappings:
      Namespace Name Mixin selector
      named moreCarrotTicks Lnet/minecraft/entity/passive/RabbitEntity;moreCarrotTicks:I
      intermediary field_6847 Lnet/minecraft/class_1463;field_6847:I
      official cn Lcga;cn:I
  • Constructor Details

    • RabbitEntity

      public RabbitEntity(EntityType<? extends RabbitEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      official <init> Lbsv;<init>(Lbtb;Ldbz;)V
  • Method Details

    • initGoals

      protected void initGoals()
      Overrides:
      initGoals in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named initGoals Lnet/minecraft/entity/mob/MobEntity;initGoals()V
      intermediary method_5959 Lnet/minecraft/class_1308;method_5959()V
      official z Lbts;z()V
    • getJumpVelocity

      protected float getJumpVelocity()
      Overrides:
      getJumpVelocity in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getJumpVelocity Lnet/minecraft/entity/LivingEntity;getJumpVelocity()F
      intermediary method_6106 Lnet/minecraft/class_1309;method_6106()F
      official fh Lbtq;fh()F
    • jump

      protected void jump()
      Overrides:
      jump in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named jump Lnet/minecraft/entity/LivingEntity;jump()V
      intermediary method_6043 Lnet/minecraft/class_1309;method_6043()V
      official fj Lbtq;fj()V
    • getJumpProgress

      public float getJumpProgress(float delta)
      Mappings:
      Namespace Name Mixin selector
      named getJumpProgress Lnet/minecraft/entity/passive/RabbitEntity;getJumpProgress(F)F
      intermediary method_6605 Lnet/minecraft/class_1463;method_6605(F)F
      official G Lcga;G(F)F
    • setSpeed

      public void setSpeed(double speed)
      Mappings:
      Namespace Name Mixin selector
      named setSpeed Lnet/minecraft/entity/passive/RabbitEntity;setSpeed(D)V
      intermediary method_6606 Lnet/minecraft/class_1463;method_6606(D)V
      official i Lcga;i(D)V
    • setJumping

      public void setJumping(boolean jumping)
      Overrides:
      setJumping in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named setJumping Lnet/minecraft/entity/LivingEntity;setJumping(Z)V
      intermediary method_6100 Lnet/minecraft/class_1309;method_6100(Z)V
      official s Lbtq;s(Z)V
    • startJump

      public void startJump()
      Mappings:
      Namespace Name Mixin selector
      named startJump Lnet/minecraft/entity/passive/RabbitEntity;startJump()V
      intermediary method_6618 Lnet/minecraft/class_1463;method_6618()V
      official s Lcga;s()V
    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class PassiveEntity
      API Note:
      Subclasses should override this and add to the builder any data that needs to be tracked.
      Mappings:
      Namespace Name Mixin selector
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
      official a Lbsv;a(Lako$a;)V
    • mobTick

      public void mobTick()
      Overrides:
      mobTick in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named mobTick Lnet/minecraft/entity/mob/MobEntity;mobTick()V
      intermediary method_5958 Lnet/minecraft/class_1308;method_5958()V
      official Z Lbts;Z()V
    • shouldSpawnSprintingParticles

      public boolean shouldSpawnSprintingParticles()
      Overrides:
      shouldSpawnSprintingParticles in class Entity
      Mappings:
      Namespace Name Mixin selector
      named shouldSpawnSprintingParticles Lnet/minecraft/entity/Entity;shouldSpawnSprintingParticles()Z
      intermediary method_27298 Lnet/minecraft/class_1297;method_27298()Z
      official bq Lbsv;bq()Z
    • lookTowards

      private void lookTowards(double x, double z)
      Mappings:
      Namespace Name Mixin selector
      named lookTowards Lnet/minecraft/entity/passive/RabbitEntity;lookTowards(DD)V
      intermediary method_6616 Lnet/minecraft/class_1463;method_6616(DD)V
      official c Lcga;c(DD)V
    • enableJump

      private void enableJump()
      Mappings:
      Namespace Name Mixin selector
      named enableJump Lnet/minecraft/entity/passive/RabbitEntity;enableJump()V
      intermediary method_6611 Lnet/minecraft/class_1463;method_6611()V
      official gw Lcga;gw()V
    • disableJump

      private void disableJump()
      Mappings:
      Namespace Name Mixin selector
      named disableJump Lnet/minecraft/entity/passive/RabbitEntity;disableJump()V
      intermediary method_6621 Lnet/minecraft/class_1463;method_6621()V
      official gx Lcga;gx()V
    • doScheduleJump

      private void doScheduleJump()
      Mappings:
      Namespace Name Mixin selector
      named doScheduleJump Lnet/minecraft/entity/passive/RabbitEntity;doScheduleJump()V
      intermediary method_6608 Lnet/minecraft/class_1463;method_6608()V
      official gy Lcga;gy()V
    • scheduleJump

      private void scheduleJump()
      Mappings:
      Namespace Name Mixin selector
      named scheduleJump Lnet/minecraft/entity/passive/RabbitEntity;scheduleJump()V
      intermediary method_6619 Lnet/minecraft/class_1463;method_6619()V
      official gz Lcga;gz()V
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      official n_ Lbtq;n_()V
    • createRabbitAttributes

      public static DefaultAttributeContainer.Builder createRabbitAttributes()
      Mappings:
      Namespace Name Mixin selector
      named createRabbitAttributes Lnet/minecraft/entity/passive/RabbitEntity;createRabbitAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_26892 Lnet/minecraft/class_1463;method_26892()Lnet/minecraft/class_5132$class_5133;
      official u Lcga;u()Lbux$a;
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses have to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      Overrides:
      writeCustomDataToNbt in class AnimalEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      official b Lbsv;b(Lus;)V
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses have to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      nbt might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.

      Overrides:
      readCustomDataFromNbt in class AnimalEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      official a Lbsv;a(Lus;)V
    • getJumpSound

      protected SoundEvent getJumpSound()
      Mappings:
      Namespace Name Mixin selector
      named getJumpSound Lnet/minecraft/entity/passive/RabbitEntity;getJumpSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_6615 Lnet/minecraft/class_1463;method_6615()Lnet/minecraft/class_3414;
      official y Lcga;y()Lavz;
    • getAmbientSound

      protected SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named getAmbientSound Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_5994 Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
      official v Lbts;v()Lavz;
    • getHurtSound

      protected SoundEvent getHurtSound(DamageSource source)
      Overrides:
      getHurtSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getHurtSound Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
      intermediary method_6011 Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
      official d Lbtq;d(Lbro;)Lavz;
    • getDeathSound

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      official o_ Lbtq;o_()Lavz;
    • tryAttack

      public boolean tryAttack(Entity target)
      Overrides:
      tryAttack in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named tryAttack Lnet/minecraft/entity/LivingEntity;tryAttack(Lnet/minecraft/entity/Entity;)Z
      intermediary method_6121 Lnet/minecraft/class_1309;method_6121(Lnet/minecraft/class_1297;)Z
      official C Lbtq;C(Lbsv;)Z
    • getSoundCategory

      public SoundCategory getSoundCategory()
      Returns the sound category for sounds from this entity.

      This is used by Entity.playSound(SoundEvent, float, float) and defaults to SoundCategory.NEUTRAL. Hostile entities should override this to return SoundCategory.HOSTILE.

      Overrides:
      getSoundCategory in class Entity
      Returns:
      the sound category for sounds from this entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getSoundCategory Lnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;
      intermediary method_5634 Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;
      official de Lbsv;de()Lawb;
    • createChild

      @Nullable public @Nullable RabbitEntity createChild(ServerWorld serverWorld, PassiveEntity passiveEntity)
      Specified by:
      createChild in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      named createChild Lnet/minecraft/entity/passive/RabbitEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/RabbitEntity;
      intermediary method_6620 Lnet/minecraft/class_1463;method_6620(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1463;
      official b Lcga;b(Larf;Lbsp;)Lcga;
    • isBreedingItem

      public boolean isBreedingItem(ItemStack stack)
      Specified by:
      isBreedingItem in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named isBreedingItem Lnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_6481 Lnet/minecraft/class_1429;method_6481(Lnet/minecraft/class_1799;)Z
      official o Lcfg;o(Lcuq;)Z
    • getVariant

      public RabbitEntity.RabbitType getVariant()
      Specified by:
      getVariant in interface VariantHolder<RabbitEntity.RabbitType>
      Mappings:
      Namespace Name Mixin selector
      named getVariant Lnet/minecraft/entity/passive/RabbitEntity;getVariant()Lnet/minecraft/entity/passive/RabbitEntity$RabbitType;
      intermediary method_47855 Lnet/minecraft/class_1463;method_47855()Lnet/minecraft/class_1463$class_7990;
      official gq Lcga;gq()Lcga$g;
    • setVariant

      public void setVariant(RabbitEntity.RabbitType rabbitType)
      Specified by:
      setVariant in interface VariantHolder<RabbitEntity.RabbitType>
      Mappings:
      Namespace Name Mixin selector
      named setVariant Lnet/minecraft/entity/passive/RabbitEntity;setVariant(Lnet/minecraft/entity/passive/RabbitEntity$RabbitType;)V
      intermediary method_47853 Lnet/minecraft/class_1463;method_47853(Lnet/minecraft/class_1463$class_7990;)V
      official a Lcga;a(Lcga$g;)V
    • initialize

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData)
      Overrides:
      initialize in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      named initialize Lnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;)Lnet/minecraft/entity/EntityData;
      intermediary method_5943 Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;)Lnet/minecraft/class_1315;
      official a Lbts;a(Ldco;Lbqt;Lbtu;Lbuj;)Lbuj;
    • getTypeFromPos

      private static RabbitEntity.RabbitType getTypeFromPos(WorldAccess world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named getTypeFromPos Lnet/minecraft/entity/passive/RabbitEntity;getTypeFromPos(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/passive/RabbitEntity$RabbitType;
      intermediary method_47854 Lnet/minecraft/class_1463;method_47854(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1463$class_7990;
      official a Lcga;a(Ldca;Liz;)Lcga$g;
    • canSpawn

      public static boolean canSpawn(EntityType<RabbitEntity> entity, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      named canSpawn Lnet/minecraft/entity/passive/RabbitEntity;canSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Z
      intermediary method_20669 Lnet/minecraft/class_1463;method_20669(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z
      official c Lcga;c(Lbtb;Ldca;Lbtu;Liz;Lazh;)Z
    • wantsCarrots

      boolean wantsCarrots()
      Mappings:
      Namespace Name Mixin selector
      named wantsCarrots Lnet/minecraft/entity/passive/RabbitEntity;wantsCarrots()Z
      intermediary method_6607 Lnet/minecraft/class_1463;method_6607()Z
      official gA Lcga;gA()Z
    • handleStatus

      public void handleStatus(byte status)
      Called on the client when the entity receives an entity status from the server. They are often used to spawn particles or play sounds. Subclasses can override this method to handle custom entity status.
      Overrides:
      handleStatus in class AnimalEntity
      See Also:
      API Note:
      To send an entity status, use World.sendEntityStatus(net.minecraft.entity.Entity, byte).
      Mappings:
      Namespace Name Mixin selector
      named handleStatus Lnet/minecraft/entity/Entity;handleStatus(B)V
      intermediary method_5711 Lnet/minecraft/class_1297;method_5711(B)V
      official b Lbsv;b(B)V
    • getLeashOffset

      public Vec3d getLeashOffset()
      Returns the offset from the entity's position where the leash is attached to.

      This is different from Entity.getLeashPos(float); this method is called on the entity which a leash is attached to.

      Overrides:
      getLeashOffset in class Entity
      Returns:
      the offset from the entity's position where the leash is attached to
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getLeashOffset Lnet/minecraft/entity/Entity;getLeashOffset()Lnet/minecraft/util/math/Vec3d;
      intermediary method_29919 Lnet/minecraft/class_1297;method_29919()Lnet/minecraft/class_243;
      official cM Lbsv;cM()Levs;