Class BoggedEntity

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

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

    • HARD_ATTACK_INTERVAL

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

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

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

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

    • BoggedEntity

      public BoggedEntity(EntityType<? extends BoggedEntity> 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> Lbsw;<init>(Lbtc;Ldca;)V
  • Method Details

    • createBoggedAttributes

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

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class MobEntity
      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 Lbsw;a(Lako$a;)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
      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 Lbsw;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 AbstractSkeletonEntity
      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 Lbsw;a(Lus;)V
    • isSheared

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

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

      protected ActionResult interactMob(PlayerEntity player, Hand hand)
      Overrides:
      interactMob in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named interactMob Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
      intermediary method_5992 Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      official b Lbtt;b(Lcmz;Lbqv;)Lbqw;
    • 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 Lbtt;v()Lavz;
    • getHurtSound

      protected SoundEvent getHurtSound(DamageSource source)
      Overrides:
      getHurtSound in class HostileEntity
      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 Lbtr;d(Lbrp;)Lavz;
    • getDeathSound

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class HostileEntity
      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_ Lbtr;o_()Lavz;
    • getStepSound

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

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

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

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

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

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

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