Class SpellcastingIllagerEntity

All Implemented Interfaces:
Attackable, Monster, Targeter, CommandOutput, Nameable, EntityLike
Direct Known Subclasses:
EvokerEntity, IllusionerEntity

public abstract class SpellcastingIllagerEntity extends IllagerEntity
Mappings:
Namespace Name
official bwm
intermediary net/minecraft/class_1617
named net/minecraft/entity/mob/SpellcastingIllagerEntity
  • Field Details

    • SPELL

      private static final TrackedData<Byte> SPELL
      Mappings:
      Namespace Name Mixin selector
      official e Lbwm;e:Laby;
      intermediary field_7373 Lnet/minecraft/class_1617;field_7373:Lnet/minecraft/class_2940;
      named SPELL Lnet/minecraft/entity/mob/SpellcastingIllagerEntity;SPELL:Lnet/minecraft/entity/data/TrackedData;
    • spellTicks

      protected int spellTicks
      Mappings:
      Namespace Name Mixin selector
      official b Lbwm;b:I
      intermediary field_7372 Lnet/minecraft/class_1617;field_7372:I
      named spellTicks Lnet/minecraft/entity/mob/SpellcastingIllagerEntity;spellTicks:I
    • spell

      Mappings:
      Namespace Name Mixin selector
      official bT Lbwm;bT:Lbwm$a;
      intermediary field_7371 Lnet/minecraft/class_1617;field_7371:Lnet/minecraft/class_1617$class_1618;
      named spell Lnet/minecraft/entity/mob/SpellcastingIllagerEntity;spell:Lnet/minecraft/entity/mob/SpellcastingIllagerEntity$Spell;
  • Constructor Details

    • SpellcastingIllagerEntity

      protected SpellcastingIllagerEntity(EntityType<? extends SpellcastingIllagerEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbfj;<init>(Lbfn;Lcmm;)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

    • initDataTracker

      protected void initDataTracker()
      Initializes data tracker.
      Overrides:
      initDataTracker in class RaiderEntity
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbfj;a_()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses has 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 RaiderEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbfj;a(Lqr;)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
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses has 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 RaiderEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbfj;b(Lqr;)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
    • getState

      public IllagerEntity.State getState()
      Overrides:
      getState in class IllagerEntity
      Mappings:
      Namespace Name Mixin selector
      official q Lbvk;q()Lbvk$a;
      intermediary method_6990 Lnet/minecraft/class_1543;method_6990()Lnet/minecraft/class_1543$class_1544;
      named getState Lnet/minecraft/entity/mob/IllagerEntity;getState()Lnet/minecraft/entity/mob/IllagerEntity$State;
    • isSpellcasting

      public boolean isSpellcasting()
      Mappings:
      Namespace Name Mixin selector
      official gi Lbwm;gi()Z
      intermediary method_7137 Lnet/minecraft/class_1617;method_7137()Z
      named isSpellcasting Lnet/minecraft/entity/mob/SpellcastingIllagerEntity;isSpellcasting()Z
    • setSpell

      public void setSpell(SpellcastingIllagerEntity.Spell spell)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwm;a(Lbwm$a;)V
      intermediary method_7138 Lnet/minecraft/class_1617;method_7138(Lnet/minecraft/class_1617$class_1618;)V
      named setSpell Lnet/minecraft/entity/mob/SpellcastingIllagerEntity;setSpell(Lnet/minecraft/entity/mob/SpellcastingIllagerEntity$Spell;)V
    • getSpell

      protected SpellcastingIllagerEntity.Spell getSpell()
      Mappings:
      Namespace Name Mixin selector
      official gj Lbwm;gj()Lbwm$a;
      intermediary method_7140 Lnet/minecraft/class_1617;method_7140()Lnet/minecraft/class_1617$class_1618;
      named getSpell Lnet/minecraft/entity/mob/SpellcastingIllagerEntity;getSpell()Lnet/minecraft/entity/mob/SpellcastingIllagerEntity$Spell;
    • mobTick

      protected void mobTick()
      Overrides:
      mobTick in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official W Lbgb;W()V
      intermediary method_5958 Lnet/minecraft/class_1308;method_5958()V
      named mobTick Lnet/minecraft/entity/mob/MobEntity;mobTick()V
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class MobEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lbfj;l()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      named tick Lnet/minecraft/entity/Entity;tick()V
    • getSpellTicks

      protected int getSpellTicks()
      Mappings:
      Namespace Name Mixin selector
      official gk Lbwm;gk()I
      intermediary method_7139 Lnet/minecraft/class_1617;method_7139()I
      named getSpellTicks Lnet/minecraft/entity/mob/SpellcastingIllagerEntity;getSpellTicks()I
    • getCastSpellSound

      protected abstract SoundEvent getCastSpellSound()
      Mappings:
      Namespace Name Mixin selector
      official fY Lbwm;fY()Lamg;
      intermediary method_7142 Lnet/minecraft/class_1617;method_7142()Lnet/minecraft/class_3414;
      named getCastSpellSound Lnet/minecraft/entity/mob/SpellcastingIllagerEntity;getCastSpellSound()Lnet/minecraft/sound/SoundEvent;