Class DragonFireballEntity

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

public class DragonFireballEntity extends ExplosiveProjectileEntity
Mappings:
Namespace Name
named net/minecraft/entity/projectile/DragonFireballEntity
intermediary net/minecraft/class_1670
official cng
  • Field Details

    • DAMAGE_RANGE

      public static final float DAMAGE_RANGE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DAMAGE_RANGE Lnet/minecraft/entity/projectile/DragonFireballEntity;DAMAGE_RANGE:F
      intermediary field_30661 Lnet/minecraft/class_1670;field_30661:F
      official e Lcng;e:F
  • Constructor Details

    • DragonFireballEntity

      public DragonFireballEntity(EntityType<? extends DragonFireballEntity> 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> Lbsr;<init>(Lbsx;Ldcw;)V
    • DragonFireballEntity

      public DragonFireballEntity(World world, LivingEntity owner, Vec3d velocity)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/projectile/DragonFireballEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/math/Vec3d;)V
      intermediary <init> Lnet/minecraft/class_1670;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;Lnet/minecraft/class_243;)V
      official <init> Lcng;<init>(Ldcw;Lbtn;Lexc;)V
  • Method Details

    • onCollision

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

      public boolean damage(DamageSource source, float amount)
      Applies a damage to this entity. The exact implementation differs between subclasses.

      LivingEntity has health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.

      Some entities like ItemEntity also have health value, which the overridden method decrements. There also exist several entities, like EndCrystalEntity, where any damage discards the entity (perhaps with an explosion).

      If this is overridden, it must check the result of Entity.isInvulnerableTo(net.minecraft.entity.damage.DamageSource) and return early.

      Overrides:
      damage in class ExplosiveProjectileEntity
      Returns:
      whether the entity was actually damaged
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
      intermediary method_5643 Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
      official a Lbsr;a(Lbrk;F)Z
    • getParticleType

      protected ParticleEffect getParticleType()
      Overrides:
      getParticleType in class ExplosiveProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      named getParticleType Lnet/minecraft/entity/projectile/ExplosiveProjectileEntity;getParticleType()Lnet/minecraft/particle/ParticleEffect;
      intermediary method_7467 Lnet/minecraft/class_1668;method_7467()Lnet/minecraft/class_2394;
      official v Lcne;v()Llk;
    • isBurning

      protected boolean isBurning()
      Overrides:
      isBurning in class ExplosiveProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      named isBurning Lnet/minecraft/entity/projectile/ExplosiveProjectileEntity;isBurning()Z
      intermediary method_7468 Lnet/minecraft/class_1668;method_7468()Z
      official t Lcne;t()Z