Package net.minecraft

Class class_9509

All Implemented Interfaces:
DataTracked, Ownable, ScoreHolder, CommandOutput, Nameable, EntityLike

public class class_9509 extends ExplosiveProjectileEntity
Mappings:
Namespace Name
official cng
intermediary net/minecraft/class_9509
named net/minecraft/class_9509
  • Field Details

    • field_50489

      private static final ItemStack field_50489
      Mappings:
      Namespace Name Mixin selector
      official e Lcng;e:Lcuh;
      intermediary field_50489 Lnet/minecraft/class_9509;field_50489:Lnet/minecraft/class_1799;
      named field_50489 Lnet/minecraft/class_9509;field_50489:Lnet/minecraft/item/ItemStack;
    • field_50490

      private static final TrackedData<Float> field_50490
      Mappings:
      Namespace Name Mixin selector
      official g Lcng;g:Lajy;
      intermediary field_50490 Lnet/minecraft/class_9509;field_50490:Lnet/minecraft/class_2940;
      named field_50490 Lnet/minecraft/class_9509;field_50490:Lnet/minecraft/entity/data/TrackedData;
    • field_50491

      private int field_50491
      Mappings:
      Namespace Name Mixin selector
      official h Lcng;h:I
      intermediary field_50491 Lnet/minecraft/class_9509;field_50491:I
      named field_50491 Lnet/minecraft/class_9509;field_50491:I
  • Constructor Details

  • Method Details

    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class ExplosiveProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbrv;a(Lakc$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 ExplosiveProjectileEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbrv;b(Luk;)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 ExplosiveProjectileEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbrv;a(Luk;)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_58944

      public void method_58944(float float2)
      Mappings:
      Namespace Name Mixin selector
      official a Lcng;a(F)V
      intermediary method_58944 Lnet/minecraft/class_9509;method_58944(F)V
      named method_58944 Lnet/minecraft/class_9509;method_58944(F)V
    • method_58945

      public float method_58945()
      Mappings:
      Namespace Name Mixin selector
      official y Lcng;y()F
      intermediary method_58945 Lnet/minecraft/class_9509;method_58945()F
      named method_58945 Lnet/minecraft/class_9509;method_58945()F
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class ExplosiveProjectileEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lbrv;l()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      named tick Lnet/minecraft/entity/Entity;tick()V
    • onCollision

      protected void onCollision(HitResult hitResult)
      Overrides:
      onCollision in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lcms;a(Lews;)V
      intermediary method_7488 Lnet/minecraft/class_1676;method_7488(Lnet/minecraft/class_239;)V
      named onCollision Lnet/minecraft/entity/projectile/ProjectileEntity;onCollision(Lnet/minecraft/util/hit/HitResult;)V