Class GhastEntity

All Implemented Interfaces:
Monster, CommandOutput, Nameable, EntityLike

public class GhastEntity extends FlyingEntity implements Monster
Mappings:
Namespace Name
official bqn
intermediary net/minecraft/class_1571
named net/minecraft/entity/mob/GhastEntity
  • Field Details

    • SHOOTING

      private static final TrackedData<Boolean> SHOOTING
      Mappings:
      Namespace Name Mixin selector
      official b Lbqn;b:Lzr;
      intermediary field_7273 Lnet/minecraft/class_1571;field_7273:Lnet/minecraft/class_2940;
      named SHOOTING Lnet/minecraft/entity/mob/GhastEntity;SHOOTING:Lnet/minecraft/entity/data/TrackedData;
    • fireballStrength

      private int fireballStrength
      Mappings:
      Namespace Name Mixin selector
      official c Lbqn;c:I
      intermediary field_7272 Lnet/minecraft/class_1571;field_7272:I
      named fireballStrength Lnet/minecraft/entity/mob/GhastEntity;fireballStrength:I
  • Constructor Details

    • GhastEntity

      public GhastEntity(EntityType<? extends GhastEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbaq;<init>(Lbau;Lcga;)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
  • Method Details

    • initGoals

      protected void initGoals()
      Overrides:
      initGoals in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official u Lbbh;u()V
      intermediary method_5959 Lnet/minecraft/class_1308;method_5959()V
      named initGoals Lnet/minecraft/entity/mob/MobEntity;initGoals()V
    • isShooting

      public boolean isShooting()
      Mappings:
      Namespace Name Mixin selector
      official n Lbqn;n()Z
      intermediary method_7050 Lnet/minecraft/class_1571;method_7050()Z
      named isShooting Lnet/minecraft/entity/mob/GhastEntity;isShooting()Z
    • setShooting

      public void setShooting(boolean shooting)
      Mappings:
      Namespace Name Mixin selector
      official v Lbqn;v(Z)V
      intermediary method_7048 Lnet/minecraft/class_1571;method_7048(Z)V
      named setShooting Lnet/minecraft/entity/mob/GhastEntity;setShooting(Z)V
    • getFireballStrength

      public int getFireballStrength()
      Mappings:
      Namespace Name Mixin selector
      official q Lbqn;q()I
      intermediary method_7049 Lnet/minecraft/class_1571;method_7049()I
      named getFireballStrength Lnet/minecraft/entity/mob/GhastEntity;getFireballStrength()I
    • isDisallowedInPeaceful

      protected boolean isDisallowedInPeaceful()
      Overrides:
      isDisallowedInPeaceful in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official Q Lbbh;Q()Z
      intermediary method_23734 Lnet/minecraft/class_1308;method_23734()Z
      named isDisallowedInPeaceful Lnet/minecraft/entity/mob/MobEntity;isDisallowedInPeaceful()Z
    • isFireballFromPlayer

      private static boolean isFireballFromPlayer(DamageSource damageSource)
      Returns whether damageSource is caused by a player's fireball.

      This returns true for ghast fireballs reflected by a player, since the attacker is set as the player in that case.

      Returns:
      whether damageSource is caused by a player's fireball
      Mappings:
      Namespace Name Mixin selector
      official g Lbqn;g(Lazz;)Z
      intermediary method_44320 Lnet/minecraft/class_1571;method_44320(Lnet/minecraft/class_1282;)Z
      named isFireballFromPlayer Lnet/minecraft/entity/mob/GhastEntity;isFireballFromPlayer(Lnet/minecraft/entity/damage/DamageSource;)Z
    • isInvulnerableTo

      public boolean isInvulnerableTo(DamageSource damageSource)
      Overrides:
      isInvulnerableTo in class Entity
      Mappings:
      Namespace Name Mixin selector
      official b Lbaq;b(Lazz;)Z
      intermediary method_5679 Lnet/minecraft/class_1297;method_5679(Lnet/minecraft/class_1282;)Z
      named isInvulnerableTo Lnet/minecraft/entity/Entity;isInvulnerableTo(Lnet/minecraft/entity/damage/DamageSource;)Z
    • damage

      public boolean damage(DamageSource source, float amount)
      Overrides:
      damage in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbaq;a(Lazz;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
    • initDataTracker

      protected void initDataTracker()
      Overrides:
      initDataTracker in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbaq;a_()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • createGhastAttributes

      public static DefaultAttributeContainer.Builder createGhastAttributes()
      Mappings:
      Namespace Name Mixin selector
      official t Lbqn;t()Lbcf$a;
      intermediary method_26913 Lnet/minecraft/class_1571;method_26913()Lnet/minecraft/class_5132$class_5133;
      named createGhastAttributes Lnet/minecraft/entity/mob/GhastEntity;createGhastAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
    • getSoundCategory

      public SoundCategory getSoundCategory()
      Overrides:
      getSoundCategory in class Entity
      Mappings:
      Namespace Name Mixin selector
      official cS Lbaq;cS()Lajf;
      intermediary method_5634 Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;
      named getSoundCategory Lnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;
    • getAmbientSound

      protected SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official r Lbbh;r()Lajd;
      intermediary method_5994 Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
      named getAmbientSound Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
    • getHurtSound

      protected SoundEvent getHurtSound(DamageSource source)
      Overrides:
      getHurtSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official c Lbbf;c(Lazz;)Lajd;
      intermediary method_6011 Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
      named getHurtSound Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
    • getDeathSound

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official x_ Lbbf;x_()Lajd;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
    • getSoundVolume

      protected float getSoundVolume()
      Overrides:
      getSoundVolume in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official eD Lbbf;eD()F
      intermediary method_6107 Lnet/minecraft/class_1309;method_6107()F
      named getSoundVolume Lnet/minecraft/entity/LivingEntity;getSoundVolume()F
    • canSpawn

      public static boolean canSpawn(EntityType<GhastEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      official b Lbqn;b(Lbau;Lcgb;Lbbj;Lgt;Lalu;)Z
      intermediary method_20675 Lnet/minecraft/class_1571;method_20675(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z
      named canSpawn Lnet/minecraft/entity/mob/GhastEntity;canSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Z
    • getLimitPerChunk

      public int getLimitPerChunk()
      Overrides:
      getLimitPerChunk in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official fp Lbbh;fp()I
      intermediary method_5945 Lnet/minecraft/class_1308;method_5945()I
      named getLimitPerChunk Lnet/minecraft/entity/mob/MobEntity;getLimitPerChunk()I
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Overrides:
      writeCustomDataToNbt in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbaq;b(Lpj;)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)
      Overrides:
      readCustomDataFromNbt in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbaq;a(Lpj;)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
    • getActiveEyeHeight

      protected float getActiveEyeHeight(EntityPose pose, EntityDimensions dimensions)
      Overrides:
      getActiveEyeHeight in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbbf;b(Lbbr;Lbar;)F
      intermediary method_18394 Lnet/minecraft/class_1309;method_18394(Lnet/minecraft/class_4050;Lnet/minecraft/class_4048;)F
      named getActiveEyeHeight Lnet/minecraft/entity/LivingEntity;getActiveEyeHeight(Lnet/minecraft/entity/EntityPose;Lnet/minecraft/entity/EntityDimensions;)F