Class AbstractFireballEntity

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

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

    • MAX_RENDER_DISTANCE_WHEN_NEWLY_SPAWNED

      private static final float MAX_RENDER_DISTANCE_WHEN_NEWLY_SPAWNED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_RENDER_DISTANCE_WHEN_NEWLY_SPAWNED Lnet/minecraft/entity/projectile/AbstractFireballEntity;MAX_RENDER_DISTANCE_WHEN_NEWLY_SPAWNED:F
      intermediary field_52508 Lnet/minecraft/class_3855;field_52508:F
      official d Lcqj;d:F
    • ITEM

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

    • AbstractFireballEntity

      public AbstractFireballEntity(EntityType<? extends AbstractFireballEntity> 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
    • AbstractFireballEntity

      public AbstractFireballEntity(EntityType<? extends AbstractFireballEntity> type, double x, double y, double z, Vec3d velocity, World world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/projectile/ExplosiveProjectileEntity;<init>(Lnet/minecraft/entity/EntityType;DDDLnet/minecraft/util/math/Vec3d;Lnet/minecraft/world/World;)V
      intermediary <init> Lnet/minecraft/class_1668;<init>(Lnet/minecraft/class_1299;DDDLnet/minecraft/class_243;Lnet/minecraft/class_1937;)V
      official <init> Lcqe;<init>(Lbvq;DDDLfbx;Ldhh;)V
    • AbstractFireballEntity

      public AbstractFireballEntity(EntityType<? extends AbstractFireballEntity> type, LivingEntity owner, Vec3d velocity, World world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/projectile/ExplosiveProjectileEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/world/World;)V
      intermediary <init> Lnet/minecraft/class_1668;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1309;Lnet/minecraft/class_243;Lnet/minecraft/class_1937;)V
      official <init> Lcqe;<init>(Lbvq;Lbwf;Lfbx;Ldhh;)V
  • Method Details

    • setItem

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

      protected void playExtinguishSound()
      Overrides:
      playExtinguishSound in class Entity
      Mappings:
      Namespace Name Mixin selector
      named playExtinguishSound Lnet/minecraft/entity/Entity;playExtinguishSound()V
      intermediary method_36975 Lnet/minecraft/class_1297;method_36975()V
      official aM Lbvj;aM()V
    • getStack

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

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class ExplosiveProjectileEntity
      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 ExplosiveProjectileEntity
      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 ExplosiveProjectileEntity
      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
    • getItem

      private ItemStack getItem()
      Mappings:
      Namespace Name Mixin selector
      named getItem Lnet/minecraft/entity/projectile/AbstractFireballEntity;getItem()Lnet/minecraft/item/ItemStack;
      intermediary method_56685 Lnet/minecraft/class_3855;method_56685()Lnet/minecraft/class_1799;
      official v Lcqj;v()Lcxo;
    • getStackReference

      public StackReference getStackReference(int mappedIndex)
      Obtains a stack reference to be modified. Used by commands like /loot or /item.
      Overrides:
      getStackReference in class Entity
      Parameters:
      mappedIndex - the mapped index as given by the item slot argument
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getStackReference Lnet/minecraft/entity/Entity;getStackReference(I)Lnet/minecraft/inventory/StackReference;
      intermediary method_32318 Lnet/minecraft/class_1297;method_32318(I)Lnet/minecraft/class_5630;
      official a_ Lbvj;a_(I)Lbwx;
    • shouldRender

      public boolean shouldRender(double distance)
      Overrides:
      shouldRender in class ExplosiveProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      named shouldRender Lnet/minecraft/entity/Entity;shouldRender(D)Z
      intermediary method_5640 Lnet/minecraft/class_1297;method_5640(D)Z
      official a Lbvj;a(D)Z