Class BoggedEntity

All Implemented Interfaces:
RangedAttackMob, Attackable, DataTracked, Monster, Shearable, Targeter, ScoreHolder, CommandOutput, Nameable, EntityLike

public class BoggedEntity extends AbstractSkeletonEntity implements Shearable
Mappings:
Namespace Name
official chx
intermediary net/minecraft/class_9254
named net/minecraft/entity/mob/BoggedEntity
  • Field Details

    • HARD_ATTACK_INTERVAL

      private static final int HARD_ATTACK_INTERVAL
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lchx;c:I
      intermediary field_49151 Lnet/minecraft/class_9254;field_49151:I
      named HARD_ATTACK_INTERVAL Lnet/minecraft/entity/mob/BoggedEntity;HARD_ATTACK_INTERVAL:I
    • REGULAR_ATTACK_INTERVAL

      private static final int REGULAR_ATTACK_INTERVAL
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lchx;d:I
      intermediary field_49152 Lnet/minecraft/class_9254;field_49152:I
      named REGULAR_ATTACK_INTERVAL Lnet/minecraft/entity/mob/BoggedEntity;REGULAR_ATTACK_INTERVAL:I
    • SHEARED

      private static final TrackedData<Boolean> SHEARED
      Mappings:
      Namespace Name Mixin selector
      official e Lchx;e:Lajm;
      intermediary field_49241 Lnet/minecraft/class_9254;field_49241:Lnet/minecraft/class_2940;
      named SHEARED Lnet/minecraft/entity/mob/BoggedEntity;SHEARED:Lnet/minecraft/entity/data/TrackedData;
    • SHEARED_KEY

      public static final String SHEARED_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lchx;b:Ljava/lang/String;
      intermediary field_49240 Lnet/minecraft/class_9254;field_49240:Ljava/lang/String;
      named SHEARED_KEY Lnet/minecraft/entity/mob/BoggedEntity;SHEARED_KEY:Ljava/lang/String;
  • Constructor Details

    • BoggedEntity

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

    • createBoggedAttributes

      public static DefaultAttributeContainer.Builder createBoggedAttributes()
      Mappings:
      Namespace Name Mixin selector
      official gs Lchx;gs()Lbtg$a;
      intermediary method_57080 Lnet/minecraft/class_9254;method_57080()Lnet/minecraft/class_5132$class_5133;
      named createBoggedAttributes Lnet/minecraft/entity/mob/BoggedEntity;createBoggedAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbrh;a(Lajq$a;)V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
    • 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 MobEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbrh;b(Lua;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)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 AbstractSkeletonEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbrh;a(Lua;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • isSheared

      public boolean isSheared()
      Mappings:
      Namespace Name Mixin selector
      official gt Lchx;gt()Z
      intermediary method_57308 Lnet/minecraft/class_9254;method_57308()Z
      named isSheared Lnet/minecraft/entity/mob/BoggedEntity;isSheared()Z
    • setSheared

      public void setSheared(boolean sheared)
      Mappings:
      Namespace Name Mixin selector
      official w Lchx;w(Z)V
      intermediary method_57310 Lnet/minecraft/class_9254;method_57310(Z)V
      named setSheared Lnet/minecraft/entity/mob/BoggedEntity;setSheared(Z)V
    • interactMob

      protected ActionResult interactMob(PlayerEntity player, Hand hand)
      Overrides:
      interactMob in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbsc;b(Lclh;Lbpl;)Lbpm;
      intermediary method_5992 Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      named interactMob Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
    • getAmbientSound

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

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

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

      protected SoundEvent getStepSound()
      Specified by:
      getStepSound in class AbstractSkeletonEntity
      Mappings:
      Namespace Name Mixin selector
      official u Lchv;u()Lavb;
      intermediary method_6998 Lnet/minecraft/class_1547;method_6998()Lnet/minecraft/class_3414;
      named getStepSound Lnet/minecraft/entity/mob/AbstractSkeletonEntity;getStepSound()Lnet/minecraft/sound/SoundEvent;
    • createArrowProjectile

      protected PersistentProjectileEntity createArrowProjectile(ItemStack arrow, float damageModifier)
      Overrides:
      createArrowProjectile in class AbstractSkeletonEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lchv;b(Lcsz;F)Lcln;
      intermediary method_6996 Lnet/minecraft/class_1547;method_6996(Lnet/minecraft/class_1799;F)Lnet/minecraft/class_1665;
      named createArrowProjectile Lnet/minecraft/entity/mob/AbstractSkeletonEntity;createArrowProjectile(Lnet/minecraft/item/ItemStack;F)Lnet/minecraft/entity/projectile/PersistentProjectileEntity;
    • getHardAttackInterval

      protected int getHardAttackInterval()
      Overrides:
      getHardAttackInterval in class AbstractSkeletonEntity
      Mappings:
      Namespace Name Mixin selector
      official gp Lchv;gp()I
      intermediary method_57078 Lnet/minecraft/class_1547;method_57078()I
      named getHardAttackInterval Lnet/minecraft/entity/mob/AbstractSkeletonEntity;getHardAttackInterval()I
    • getRegularAttackInterval

      protected int getRegularAttackInterval()
      Overrides:
      getRegularAttackInterval in class AbstractSkeletonEntity
      Mappings:
      Namespace Name Mixin selector
      official gq Lchv;gq()I
      intermediary method_57079 Lnet/minecraft/class_1547;method_57079()I
      named getRegularAttackInterval Lnet/minecraft/entity/mob/AbstractSkeletonEntity;getRegularAttackInterval()I
    • sheared

      public void sheared(SoundCategory shearedSoundCategory)
      Specified by:
      sheared in interface Shearable
      Mappings:
      Namespace Name Mixin selector
      official a Lbsq;a(Lavd;)V
      intermediary method_6636 Lnet/minecraft/class_5147;method_6636(Lnet/minecraft/class_3419;)V
      named sheared Lnet/minecraft/entity/Shearable;sheared(Lnet/minecraft/sound/SoundCategory;)V
    • dropShearedItems

      private void dropShearedItems()
      Mappings:
      Namespace Name Mixin selector
      official gw Lchx;gw()V
      intermediary method_57309 Lnet/minecraft/class_9254;method_57309()V
      named dropShearedItems Lnet/minecraft/entity/mob/BoggedEntity;dropShearedItems()V
    • isShearable

      public boolean isShearable()
      Specified by:
      isShearable in interface Shearable
      Mappings:
      Namespace Name Mixin selector
      official a Lbsq;a()Z
      intermediary method_27072 Lnet/minecraft/class_5147;method_27072()Z
      named isShearable Lnet/minecraft/entity/Shearable;isShearable()Z