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 cgj
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 Lcgj;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 Lcgj;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
    • field_49241

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

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

    • BoggedEntity

      public BoggedEntity(EntityType<? extends BoggedEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbpv;<init>(Lbqb;Lcyx;)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 gq Lcgj;gq()Lbru$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 Lbpv;a(Lajc$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 Lbpv;b(Ltm;)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 Lbpv;a(Ltm;)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
    • method_57308

      public boolean method_57308()
      Mappings:
      Namespace Name Mixin selector
      official gr Lcgj;gr()Z
      intermediary method_57308 Lnet/minecraft/class_9254;method_57308()Z
      named method_57308 Lnet/minecraft/entity/mob/BoggedEntity;method_57308()Z
    • method_57310

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

      protected ActionResult interactMob(PlayerEntity player, Hand hand)
      Overrides:
      interactMob in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbqq;b(Lcjt;Lbnz;)Lboa;
      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 Lbqq;v()Laul;
      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 Lbqo;d(Lbot;)Laul;
      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_ Lbqo;o_()Laul;
      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 Lcgh;u()Laul;
      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 Lcgh;b(Lcrj;F)Lcjz;
      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 gn Lcgh;gn()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 go Lcgh;go()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 Lbre;a(Laun;)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
    • method_57309

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

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