Class WitchEntity

All Implemented Interfaces:
RangedAttackMob, Attackable, DataTracked, EquipmentHolder, Monster, Targeter, ScoreHolder, CommandOutput, Nameable, EntityLike

public class WitchEntity extends RaiderEntity implements RangedAttackMob
Mappings:
Namespace Name
named net/minecraft/entity/mob/WitchEntity
intermediary net/minecraft/class_1640
official ckr
  • Field Details

    • DRINKING_SPEED_PENALTY_MODIFIER_ID

      private static final Identifier DRINKING_SPEED_PENALTY_MODIFIER_ID
      Mappings:
      Namespace Name Mixin selector
      named DRINKING_SPEED_PENALTY_MODIFIER_ID Lnet/minecraft/entity/mob/WitchEntity;DRINKING_SPEED_PENALTY_MODIFIER_ID:Lnet/minecraft/util/Identifier;
      intermediary field_7418 Lnet/minecraft/class_1640;field_7418:Lnet/minecraft/class_2960;
      official b Lckr;b:Lakq;
    • DRINKING_SPEED_PENALTY_MODIFIER

      private static final EntityAttributeModifier DRINKING_SPEED_PENALTY_MODIFIER
      Mappings:
      Namespace Name Mixin selector
      named DRINKING_SPEED_PENALTY_MODIFIER Lnet/minecraft/entity/mob/WitchEntity;DRINKING_SPEED_PENALTY_MODIFIER:Lnet/minecraft/entity/attribute/EntityAttributeModifier;
      intermediary field_7416 Lnet/minecraft/class_1640;field_7416:Lnet/minecraft/class_1322;
      official e Lckr;e:Lbus;
    • DRINKING

      private static final TrackedData<Boolean> DRINKING
      Mappings:
      Namespace Name Mixin selector
      named DRINKING Lnet/minecraft/entity/mob/WitchEntity;DRINKING:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_7419 Lnet/minecraft/class_1640;field_7419:Lnet/minecraft/class_2940;
      official ca Lckr;ca:Lajv;
    • drinkTimeLeft

      private int drinkTimeLeft
      Mappings:
      Namespace Name Mixin selector
      named drinkTimeLeft Lnet/minecraft/entity/mob/WitchEntity;drinkTimeLeft:I
      intermediary field_7417 Lnet/minecraft/class_1640;field_7417:I
      official cb Lckr;cb:I
    • raidGoal

      private RaidGoal<RaiderEntity> raidGoal
      Mappings:
      Namespace Name Mixin selector
      named raidGoal Lnet/minecraft/entity/mob/WitchEntity;raidGoal:Lnet/minecraft/entity/ai/goal/RaidGoal;
      intermediary field_17283 Lnet/minecraft/class_1640;field_17283:Lnet/minecraft/class_3909;
      official cc Lckr;cc:Lccf;
    • attackPlayerGoal

      private DisableableFollowTargetGoal<PlayerEntity> attackPlayerGoal
      Mappings:
      Namespace Name Mixin selector
      named attackPlayerGoal Lnet/minecraft/entity/mob/WitchEntity;attackPlayerGoal:Lnet/minecraft/entity/ai/goal/DisableableFollowTargetGoal;
      intermediary field_17284 Lnet/minecraft/class_1640;field_17284:Lnet/minecraft/class_3760;
      official cd Lckr;cd:Lcce;
  • Constructor Details

    • WitchEntity

      public WitchEntity(EntityType<? extends WitchEntity> 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> Lbsq;<init>(Lbsw;Ldcu;)V
  • Method Details

    • initGoals

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

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class RaiderEntity
      API Note:
      Subclasses should override this and add to the builder any data that needs to be tracked.
      Mappings:
      Namespace Name Mixin selector
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
      official a Lbsq;a(Lajz$a;)V
    • getAmbientSound

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

      protected SoundEvent getHurtSound(DamageSource source)
      Overrides:
      getHurtSound in class HostileEntity
      Mappings:
      Namespace Name Mixin selector
      named getHurtSound Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
      intermediary method_6011 Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
      official d Lbtl;d(Lbrj;)Lavn;
    • getDeathSound

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class HostileEntity
      Mappings:
      Namespace Name Mixin selector
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      official n_ Lbtl;n_()Lavn;
    • setDrinking

      public void setDrinking(boolean drinking)
      Mappings:
      Namespace Name Mixin selector
      named setDrinking Lnet/minecraft/entity/mob/WitchEntity;setDrinking(Z)V
      intermediary method_7192 Lnet/minecraft/class_1640;method_7192(Z)V
      official y Lckr;y(Z)V
    • isDrinking

      public boolean isDrinking()
      Mappings:
      Namespace Name Mixin selector
      named isDrinking Lnet/minecraft/entity/mob/WitchEntity;isDrinking()Z
      intermediary method_7193 Lnet/minecraft/class_1640;method_7193()Z
      official s Lckr;s()Z
    • createWitchAttributes

      public static DefaultAttributeContainer.Builder createWitchAttributes()
      Mappings:
      Namespace Name Mixin selector
      named createWitchAttributes Lnet/minecraft/entity/mob/WitchEntity;createWitchAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_26927 Lnet/minecraft/class_1640;method_26927()Lnet/minecraft/class_5132$class_5133;
      official t Lckr;t()Lbut$a;
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class RaiderEntity
      Mappings:
      Namespace Name Mixin selector
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      official m_ Lbtl;m_()V
    • getCelebratingSound

      public SoundEvent getCelebratingSound()
      Specified by:
      getCelebratingSound in class RaiderEntity
      Mappings:
      Namespace Name Mixin selector
      named getCelebratingSound Lnet/minecraft/entity/raid/RaiderEntity;getCelebratingSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_20033 Lnet/minecraft/class_3763;method_20033()Lnet/minecraft/class_3414;
      official ae_ Lcoh;ae_()Lavn;
    • handleStatus

      public void handleStatus(byte status)
      Called on the client when the entity receives an entity status from the server. They are often used to spawn particles or play sounds. Subclasses can override this method to handle custom entity status.
      Overrides:
      handleStatus in class MobEntity
      See Also:
      API Note:
      To send an entity status, use World.sendEntityStatus(net.minecraft.entity.Entity, byte).
      Mappings:
      Namespace Name Mixin selector
      named handleStatus Lnet/minecraft/entity/Entity;handleStatus(B)V
      intermediary method_5711 Lnet/minecraft/class_1297;method_5711(B)V
      official b Lbsq;b(B)V
    • modifyAppliedDamage

      protected float modifyAppliedDamage(DamageSource source, float amount)
      Returns the modified damage value for the applied damage.
      Overrides:
      modifyAppliedDamage in class LivingEntity
      Returns:
      the modified damage value for the applied damage
      API Note:
      Subclasses should override this to make the entity take reduced damage.
      Implementation Note:
      This applies various
      invalid reference
      protection enchantments
      and the resistance effect. WitchEntity uses this to negate their own damage and reduce the applied status effect damage.
      Mappings:
      Namespace Name Mixin selector
      named modifyAppliedDamage Lnet/minecraft/entity/LivingEntity;modifyAppliedDamage(Lnet/minecraft/entity/damage/DamageSource;F)F
      intermediary method_6036 Lnet/minecraft/class_1309;method_6036(Lnet/minecraft/class_1282;F)F
      official e Lbtl;e(Lbrj;F)F
    • shootAt

      public void shootAt(LivingEntity target, float pullProgress)
      Specified by:
      shootAt in interface RangedAttackMob
      Mappings:
      Namespace Name Mixin selector
      named shootAt Lnet/minecraft/entity/ai/RangedAttackMob;shootAt(Lnet/minecraft/entity/LivingEntity;F)V
      intermediary method_7105 Lnet/minecraft/class_1603;method_7105(Lnet/minecraft/class_1309;F)V
      official a Lckf;a(Lbtl;F)V
    • addBonusForWave

      public void addBonusForWave(ServerWorld world, int wave, boolean unused)
      Specified by:
      addBonusForWave in class RaiderEntity
      Mappings:
      Namespace Name Mixin selector
      named addBonusForWave Lnet/minecraft/entity/raid/RaiderEntity;addBonusForWave(Lnet/minecraft/server/world/ServerWorld;IZ)V
      intermediary method_16484 Lnet/minecraft/class_3763;method_16484(Lnet/minecraft/class_3218;IZ)V
      official a Lcoh;a(Laqt;IZ)V
    • canLead

      public boolean canLead()
      Overrides:
      canLead in class PatrolEntity
      Mappings:
      Namespace Name Mixin selector
      named canLead Lnet/minecraft/entity/mob/PatrolEntity;canLead()Z
      intermediary method_16485 Lnet/minecraft/class_3732;method_16485()Z
      official gn Lckc;gn()Z