Class BoggedEntity

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

public class BoggedEntity extends AbstractSkeletonEntity implements Shearable
Mappings:
Namespace Name
named net/minecraft/entity/mob/BoggedEntity
intermediary net/minecraft/class_9254
official cmg
  • 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 b Lcmg;b: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 c Lcmg;c: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 d Lcmg;d:Lalc;
    • 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 a Lcmg;a: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> Lbvj;<init>(Lbvq;Ldhh;)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 gq Lcmg;gq()Lbxm$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 Lbvj;a(Lalg$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 Lbvj;b(Lux;)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 Lbvj;a(Lux;)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 gr Lcmg;gr()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 x Lcmg;x(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 Lbwh;b(Lcpw;Lbth;)Lbti;
    • 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 u Lbwh;u()Laxe;
    • 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 e Lbwf;e(Lbtz;)Laxe;
    • 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_ Lbwf;o_()Laxe;
    • 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 p Lcme;p()Laxe;
    • createArrowProjectile

      protected PersistentProjectileEntity createArrowProjectile(ItemStack arrow, float damageModifier, @Nullable @Nullable ItemStack shotFrom)
      Overrides:
      createArrowProjectile in class AbstractSkeletonEntity
      Mappings:
      Namespace Name Mixin selector
      named createArrowProjectile Lnet/minecraft/entity/mob/AbstractSkeletonEntity;createArrowProjectile(Lnet/minecraft/item/ItemStack;FLnet/minecraft/item/ItemStack;)Lnet/minecraft/entity/projectile/PersistentProjectileEntity;
      intermediary method_6996 Lnet/minecraft/class_1547;method_6996(Lnet/minecraft/class_1799;FLnet/minecraft/class_1799;)Lnet/minecraft/class_1665;
      official a Lcme;a(Lcxo;FLcxo;)Lcqd;
    • 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 x Lcme;x()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 go Lcme;go()I
    • sheared

      public void sheared(ServerWorld world, SoundCategory shearedSoundCategory, ItemStack shears)
      Specified by:
      sheared in interface Shearable
      Mappings:
      Namespace Name Mixin selector
      named sheared Lnet/minecraft/entity/Shearable;sheared(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/sound/SoundCategory;Lnet/minecraft/item/ItemStack;)V
      intermediary method_6636 Lnet/minecraft/class_5147;method_6636(Lnet/minecraft/class_3218;Lnet/minecraft/class_3419;Lnet/minecraft/class_1799;)V
      official a Lbww;a(Lash;Laxg;Lcxo;)V
    • dropShearedItems

      private void dropShearedItems(ServerWorld world, ItemStack shears)
      Mappings:
      Namespace Name Mixin selector
      named dropShearedItems Lnet/minecraft/entity/mob/BoggedEntity;dropShearedItems(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;)V
      intermediary method_57309 Lnet/minecraft/class_9254;method_57309(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;)V
      official d Lcmg;d(Lash;Lcxo;)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 Lbww;a()Z