Class FireballEntity

All Implemented Interfaces:
FlyingItemEntity, Ownable, CommandOutput, Nameable, EntityLike

public class FireballEntity extends AbstractFireballEntity
Mappings:
Namespace Name
official cck
intermediary net/minecraft/class_1674
named net/minecraft/entity/projectile/FireballEntity
  • Field Details

    • explosionPower

      private int explosionPower
      Mappings:
      Namespace Name Mixin selector
      official e Lcck;e:I
      intermediary field_7624 Lnet/minecraft/class_1674;field_7624:I
      named explosionPower Lnet/minecraft/entity/projectile/FireballEntity;explosionPower:I
  • Constructor Details

    • FireballEntity

      public FireballEntity(EntityType<? extends FireballEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbiq;<init>(Lbiu;Lcpv;)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
    • FireballEntity

      public FireballEntity(World world, LivingEntity owner, double velocityX, double velocityY, double velocityZ, int explosionPower)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcck;<init>(Lcpv;Lbjg;DDDI)V
      intermediary <init> Lnet/minecraft/class_1674;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;DDDI)V
      named <init> Lnet/minecraft/entity/projectile/FireballEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;DDDI)V
  • Method Details

    • onCollision

      protected void onCollision(HitResult hitResult)
      Overrides:
      onCollision in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lccm;a(Lehl;)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
    • onEntityHit

      protected void onEntityHit(EntityHitResult entityHitResult)
      Overrides:
      onEntityHit in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lccm;a(Lehk;)V
      intermediary method_7454 Lnet/minecraft/class_1676;method_7454(Lnet/minecraft/class_3966;)V
      named onEntityHit Lnet/minecraft/entity/projectile/ProjectileEntity;onEntityHit(Lnet/minecraft/util/hit/EntityHitResult;)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 AbstractFireballEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbiq;b(Lqw;)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 AbstractFireballEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbiq;a(Lqw;)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