Class AbstractFireballEntity

All Implemented Interfaces:
FlyingItemEntity, Ownable, CommandOutput, Nameable, EntityLike
Direct Known Subclasses:
FireballEntity, SmallFireballEntity

public abstract class AbstractFireballEntity extends ExplosiveProjectileEntity implements FlyingItemEntity
Mappings:
Namespace Name
official byy
intermediary net/minecraft/class_3855
named net/minecraft/entity/projectile/AbstractFireballEntity
  • Field Details

    • ITEM

      private static final TrackedData<ItemStack> ITEM
      Mappings:
      Namespace Name Mixin selector
      official e Lbyy;e:Laby;
      intermediary field_17081 Lnet/minecraft/class_3855;field_17081:Lnet/minecraft/class_2940;
      named ITEM Lnet/minecraft/entity/projectile/AbstractFireballEntity;ITEM:Lnet/minecraft/entity/data/TrackedData;
  • Constructor Details

    • AbstractFireballEntity

      public AbstractFireballEntity(EntityType<? extends AbstractFireballEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbfh;<init>(Lbfl;Lcmk;)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
    • AbstractFireballEntity

      public AbstractFireballEntity(EntityType<? extends AbstractFireballEntity> type, double x, double y, double z, double directionX, double directionY, double directionZ, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbyt;<init>(Lbfl;DDDDDDLcmk;)V
      intermediary <init> Lnet/minecraft/class_1668;<init>(Lnet/minecraft/class_1299;DDDDDDLnet/minecraft/class_1937;)V
      named <init> Lnet/minecraft/entity/projectile/ExplosiveProjectileEntity;<init>(Lnet/minecraft/entity/EntityType;DDDDDDLnet/minecraft/world/World;)V
    • AbstractFireballEntity

      public AbstractFireballEntity(EntityType<? extends AbstractFireballEntity> type, LivingEntity owner, double directionX, double directionY, double directionZ, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbyt;<init>(Lbfl;Lbfx;DDDLcmk;)V
      intermediary <init> Lnet/minecraft/class_1668;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1309;DDDLnet/minecraft/class_1937;)V
      named <init> Lnet/minecraft/entity/projectile/ExplosiveProjectileEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/entity/LivingEntity;DDDLnet/minecraft/world/World;)V
  • Method Details

    • setItem

      public void setItem(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbyy;a(Lcfx;)V
      intermediary method_16936 Lnet/minecraft/class_3855;method_16936(Lnet/minecraft/class_1799;)V
      named setItem Lnet/minecraft/entity/projectile/AbstractFireballEntity;setItem(Lnet/minecraft/item/ItemStack;)V
    • getItem

      protected ItemStack getItem()
      Mappings:
      Namespace Name Mixin selector
      official o Lbyy;o()Lcfx;
      intermediary method_16938 Lnet/minecraft/class_3855;method_16938()Lnet/minecraft/class_1799;
      named getItem Lnet/minecraft/entity/projectile/AbstractFireballEntity;getItem()Lnet/minecraft/item/ItemStack;
    • getStack

      public ItemStack getStack()
      Specified by:
      getStack in interface FlyingItemEntity
      Mappings:
      Namespace Name Mixin selector
      official i Lbzb;i()Lcfx;
      intermediary method_7495 Lnet/minecraft/class_3856;method_7495()Lnet/minecraft/class_1799;
      named getStack Lnet/minecraft/entity/FlyingItemEntity;getStack()Lnet/minecraft/item/ItemStack;
    • initDataTracker

      protected void initDataTracker()
      Initializes data tracker.
      Overrides:
      initDataTracker in class ExplosiveProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbfh;a_()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses has 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 Lbfh;b(Lqr;)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 has 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 Lbfh;a(Lqr;)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