Class DragonFireballEntity

All Implemented Interfaces:
CommandOutput, Nameable, EntityLike

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

    • DAMAGE_RANGE

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

    • DragonFireballEntity

      public DragonFireballEntity(EntityType<? extends DragonFireballEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbdr;<init>(Lbdv;Lcjw;)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
    • DragonFireballEntity

      public DragonFireballEntity(World world, LivingEntity owner, double directionX, double directionY, double directionZ)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbwy;<init>(Lcjw;Lbeg;DDD)V
      intermediary <init> Lnet/minecraft/class_1670;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;DDD)V
      named <init> Lnet/minecraft/entity/projectile/DragonFireballEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;DDD)V
  • Method Details

    • onCollision

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

      public boolean canHit()
      Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.
      Overrides:
      canHit in class ExplosiveProjectileEntity
      Returns:
      whether the entity can be hit with a projectile or be targeted by the player crosshair
      Mappings:
      Namespace Name Mixin selector
      official bn Lbdr;bn()Z
      intermediary method_5863 Lnet/minecraft/class_1297;method_5863()Z
      named canHit Lnet/minecraft/entity/Entity;canHit()Z
    • 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
      official a Lbdr;a(Lbcz;F)Z
      intermediary method_5643 Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
    • getParticleType

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

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