Class WardenEntity

All Implemented Interfaces:
Attackable, DataTracked, EquipmentHolder, Leashable, Monster, Targeter, ScoreHolder, Nameable, EntityLike, Vibrations

public class WardenEntity extends HostileEntity implements Vibrations
Mappings:
Namespace Name
named net/minecraft/entity/mob/WardenEntity
intermediary net/minecraft/class_7260
official coz
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/entity/mob/WardenEntity;LOGGER:Lorg/slf4j/Logger;
      intermediary field_38138 Lnet/minecraft/class_7260;field_38138:Lorg/slf4j/Logger;
      official cb Lcoz;cb:Lorg/slf4j/Logger;
    • field_38142

      private static final int field_38142
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_38142 Lnet/minecraft/entity/mob/WardenEntity;field_38142:I
      intermediary field_38142 Lnet/minecraft/class_7260;field_38142:I
      official cc Lcoz;cc:I
    • field_38860

      private static final int field_38860
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_38860 Lnet/minecraft/entity/mob/WardenEntity;field_38860:I
      intermediary field_38860 Lnet/minecraft/class_7260;field_38860:I
      official cd Lcoz;cd:I
    • MAX_HEALTH

      private static final int MAX_HEALTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_HEALTH Lnet/minecraft/entity/mob/WardenEntity;MAX_HEALTH:I
      intermediary field_38143 Lnet/minecraft/class_7260;field_38143:I
      official ce Lcoz;ce:I
    • MOVEMENT_SPEED

      private static final float MOVEMENT_SPEED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MOVEMENT_SPEED Lnet/minecraft/entity/mob/WardenEntity;MOVEMENT_SPEED:F
      intermediary field_38144 Lnet/minecraft/class_7260;field_38144:F
      official cf Lcoz;cf:F
    • KNOCKBACK_RESISTANCE

      private static final float KNOCKBACK_RESISTANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named KNOCKBACK_RESISTANCE Lnet/minecraft/entity/mob/WardenEntity;KNOCKBACK_RESISTANCE:F
      intermediary field_38145 Lnet/minecraft/class_7260;field_38145:F
      official cg Lcoz;cg:F
    • ATTACK_KNOCKBACK

      private static final float ATTACK_KNOCKBACK
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ATTACK_KNOCKBACK Lnet/minecraft/entity/mob/WardenEntity;ATTACK_KNOCKBACK:F
      intermediary field_38146 Lnet/minecraft/class_7260;field_38146:F
      official ch Lcoz;ch:F
    • ATTACK_DAMAGE

      private static final int ATTACK_DAMAGE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ATTACK_DAMAGE Lnet/minecraft/entity/mob/WardenEntity;ATTACK_DAMAGE:I
      intermediary field_38147 Lnet/minecraft/class_7260;field_38147:I
      official ci Lcoz;ci:I
    • FOLLOW_RANGE

      private static final int FOLLOW_RANGE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named FOLLOW_RANGE Lnet/minecraft/entity/mob/WardenEntity;FOLLOW_RANGE:I
      intermediary field_52503 Lnet/minecraft/class_7260;field_52503:I
      official cj Lcoz;cj:I
    • ANGER

      private static final TrackedData<Integer> ANGER
      Mappings:
      Namespace Name Mixin selector
      named ANGER Lnet/minecraft/entity/mob/WardenEntity;ANGER:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_38148 Lnet/minecraft/class_7260;field_38148:Lnet/minecraft/class_2940;
      official ck Lcoz;ck:Lalc;
    • field_38149

      private static final int field_38149
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_38149 Lnet/minecraft/entity/mob/WardenEntity;field_38149:I
      intermediary field_38149 Lnet/minecraft/class_7260;field_38149:I
      official cl Lcoz;cl:I
    • DARKNESS_EFFECT_DURATION

      private static final int DARKNESS_EFFECT_DURATION
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DARKNESS_EFFECT_DURATION Lnet/minecraft/entity/mob/WardenEntity;DARKNESS_EFFECT_DURATION:I
      intermediary field_38150 Lnet/minecraft/class_7260;field_38150:I
      official cm Lcoz;cm:I
    • field_38151

      private static final int field_38151
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_38151 Lnet/minecraft/entity/mob/WardenEntity;field_38151:I
      intermediary field_38151 Lnet/minecraft/class_7260;field_38151:I
      official cn Lcoz;cn:I
    • field_38152

      private static final int field_38152
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_38152 Lnet/minecraft/entity/mob/WardenEntity;field_38152:I
      intermediary field_38152 Lnet/minecraft/class_7260;field_38152:I
      official co Lcoz;co:I
    • field_38153

      private static final int field_38153
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_38153 Lnet/minecraft/entity/mob/WardenEntity;field_38153:I
      intermediary field_38153 Lnet/minecraft/class_7260;field_38153:I
      official cp Lcoz;cp:I
    • ANGRINESS_AMOUNT

      private static final int ANGRINESS_AMOUNT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ANGRINESS_AMOUNT Lnet/minecraft/entity/mob/WardenEntity;ANGRINESS_AMOUNT:I
      intermediary field_38155 Lnet/minecraft/class_7260;field_38155:I
      official cq Lcoz;cq:I
    • field_38156

      private static final int field_38156
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_38156 Lnet/minecraft/entity/mob/WardenEntity;field_38156:I
      intermediary field_38156 Lnet/minecraft/class_7260;field_38156:I
      official cr Lcoz;cr:I
    • field_39117

      private static final int field_39117
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_39117 Lnet/minecraft/entity/mob/WardenEntity;field_39117:I
      intermediary field_39117 Lnet/minecraft/class_7260;field_39117:I
      official cs Lcoz;cs:I
    • field_38157

      private static final int field_38157
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_38157 Lnet/minecraft/entity/mob/WardenEntity;field_38157:I
      intermediary field_38157 Lnet/minecraft/class_7260;field_38157:I
      official ct Lcoz;ct:I
    • field_38158

      private static final int field_38158
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_38158 Lnet/minecraft/entity/mob/WardenEntity;field_38158:I
      intermediary field_38158 Lnet/minecraft/class_7260;field_38158:I
      official cu Lcoz;cu:I
    • field_38159

      private static final int field_38159
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_38159 Lnet/minecraft/entity/mob/WardenEntity;field_38159:I
      intermediary field_38159 Lnet/minecraft/class_7260;field_38159:I
      official cv Lcoz;cv:I
    • field_38160

      private static final float field_38160
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_38160 Lnet/minecraft/entity/mob/WardenEntity;field_38160:F
      intermediary field_38160 Lnet/minecraft/class_7260;field_38160:F
      official cw Lcoz;cw:F
    • field_38161

      private static final float field_38161
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_38161 Lnet/minecraft/entity/mob/WardenEntity;field_38161:F
      intermediary field_38161 Lnet/minecraft/class_7260;field_38161:F
      official cx Lcoz;cx:F
    • field_39305

      private static final int field_39305
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_39305 Lnet/minecraft/entity/mob/WardenEntity;field_39305:I
      intermediary field_39305 Lnet/minecraft/class_7260;field_39305:I
      official cy Lcoz;cy:I
    • tendrilPitch

      private int tendrilPitch
      Mappings:
      Namespace Name Mixin selector
      named tendrilPitch Lnet/minecraft/entity/mob/WardenEntity;tendrilPitch:I
      intermediary field_38162 Lnet/minecraft/class_7260;field_38162:I
      official cz Lcoz;cz:I
    • lastTendrilPitch

      private int lastTendrilPitch
      Mappings:
      Namespace Name Mixin selector
      named lastTendrilPitch Lnet/minecraft/entity/mob/WardenEntity;lastTendrilPitch:I
      intermediary field_38163 Lnet/minecraft/class_7260;field_38163:I
      official cC Lcoz;cC:I
    • heartbeatCooldown

      private int heartbeatCooldown
      Mappings:
      Namespace Name Mixin selector
      named heartbeatCooldown Lnet/minecraft/entity/mob/WardenEntity;heartbeatCooldown:I
      intermediary field_38164 Lnet/minecraft/class_7260;field_38164:I
      official cD Lcoz;cD:I
    • lastHeartbeatCooldown

      private int lastHeartbeatCooldown
      Mappings:
      Namespace Name Mixin selector
      named lastHeartbeatCooldown Lnet/minecraft/entity/mob/WardenEntity;lastHeartbeatCooldown:I
      intermediary field_38165 Lnet/minecraft/class_7260;field_38165:I
      official cE Lcoz;cE:I
    • roaringAnimationState

      public AnimationState roaringAnimationState
      Mappings:
      Namespace Name Mixin selector
      named roaringAnimationState Lnet/minecraft/entity/mob/WardenEntity;roaringAnimationState:Lnet/minecraft/entity/AnimationState;
      intermediary field_38168 Lnet/minecraft/class_7260;field_38168:Lnet/minecraft/class_7094;
      official a Lcoz;a:Lbvb;
    • sniffingAnimationState

      public AnimationState sniffingAnimationState
      Mappings:
      Namespace Name Mixin selector
      named sniffingAnimationState Lnet/minecraft/entity/mob/WardenEntity;sniffingAnimationState:Lnet/minecraft/entity/AnimationState;
      intermediary field_38169 Lnet/minecraft/class_7260;field_38169:Lnet/minecraft/class_7094;
      official b Lcoz;b:Lbvb;
    • emergingAnimationState

      public AnimationState emergingAnimationState
      Mappings:
      Namespace Name Mixin selector
      named emergingAnimationState Lnet/minecraft/entity/mob/WardenEntity;emergingAnimationState:Lnet/minecraft/entity/AnimationState;
      intermediary field_38135 Lnet/minecraft/class_7260;field_38135:Lnet/minecraft/class_7094;
      official c Lcoz;c:Lbvb;
    • diggingAnimationState

      public AnimationState diggingAnimationState
      Mappings:
      Namespace Name Mixin selector
      named diggingAnimationState Lnet/minecraft/entity/mob/WardenEntity;diggingAnimationState:Lnet/minecraft/entity/AnimationState;
      intermediary field_38136 Lnet/minecraft/class_7260;field_38136:Lnet/minecraft/class_7094;
      official d Lcoz;d:Lbvb;
    • attackingAnimationState

      public AnimationState attackingAnimationState
      Mappings:
      Namespace Name Mixin selector
      named attackingAnimationState Lnet/minecraft/entity/mob/WardenEntity;attackingAnimationState:Lnet/minecraft/entity/AnimationState;
      intermediary field_38137 Lnet/minecraft/class_7260;field_38137:Lnet/minecraft/class_7094;
      official bZ Lcoz;bZ:Lbvb;
    • chargingSonicBoomAnimationState

      public AnimationState chargingSonicBoomAnimationState
      Mappings:
      Namespace Name Mixin selector
      named chargingSonicBoomAnimationState Lnet/minecraft/entity/mob/WardenEntity;chargingSonicBoomAnimationState:Lnet/minecraft/entity/AnimationState;
      intermediary field_38859 Lnet/minecraft/class_7260;field_38859:Lnet/minecraft/class_7094;
      official ca Lcoz;ca:Lbvb;
    • gameEventHandler

      private final EntityGameEventHandler<Vibrations.VibrationListener> gameEventHandler
      Mappings:
      Namespace Name Mixin selector
      named gameEventHandler Lnet/minecraft/entity/mob/WardenEntity;gameEventHandler:Lnet/minecraft/world/event/listener/EntityGameEventHandler;
      intermediary field_38166 Lnet/minecraft/class_7260;field_38166:Lnet/minecraft/class_5715;
      official cF Lcoz;cF:Lecn;
    • vibrationCallback

      private final Vibrations.Callback vibrationCallback
      Mappings:
      Namespace Name Mixin selector
      named vibrationCallback Lnet/minecraft/entity/mob/WardenEntity;vibrationCallback:Lnet/minecraft/world/event/Vibrations$Callback;
      intermediary field_44598 Lnet/minecraft/class_7260;field_44598:Lnet/minecraft/class_8514$class_5719;
      official cG Lcoz;cG:Lecz$d;
    • vibrationListenerData

      private Vibrations.ListenerData vibrationListenerData
      Mappings:
      Namespace Name Mixin selector
      named vibrationListenerData Lnet/minecraft/entity/mob/WardenEntity;vibrationListenerData:Lnet/minecraft/world/event/Vibrations$ListenerData;
      intermediary field_44599 Lnet/minecraft/class_7260;field_44599:Lnet/minecraft/class_8514$class_8515;
      official cH Lcoz;cH:Lecz$a;
    • angerManager

      WardenAngerManager angerManager
      Mappings:
      Namespace Name Mixin selector
      named angerManager Lnet/minecraft/entity/mob/WardenEntity;angerManager:Lnet/minecraft/entity/ai/WardenAngerManager;
      intermediary field_38141 Lnet/minecraft/class_7260;field_38141:Lnet/minecraft/class_7254;
      official cI Lcoz;cI:Lcoy;
  • Constructor Details

    • WardenEntity

      public WardenEntity(EntityType<? extends HostileEntity> 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> Lbvj;<init>(Lbvq;Ldhh;)V
  • Method Details

    • createSpawnPacket

      public Packet<ClientPlayPacketListener> createSpawnPacket(EntityTrackerEntry entityTrackerEntry)
      Returns a packet to notify the clients of the entity's spawning.
      Overrides:
      createSpawnPacket in class Entity
      Returns:
      a packet to notify the clients of the entity's spawning
      API Note:
      Subclasses should return new EntitySpawnS2CPacket(this), unless they use a custom spawning packet.
      Mappings:
      Namespace Name Mixin selector
      named createSpawnPacket Lnet/minecraft/entity/Entity;createSpawnPacket(Lnet/minecraft/server/network/EntityTrackerEntry;)Lnet/minecraft/network/packet/Packet;
      intermediary method_18002 Lnet/minecraft/class_1297;method_18002(Lnet/minecraft/class_3231;)Lnet/minecraft/class_2596;
      official a Lbvj;a(Lasf;)Laac;
    • onSpawnPacket

      public void onSpawnPacket(EntitySpawnS2CPacket packet)
      Called on the client when the entity receives a spawn packet.

      This sets the entity's position, angles, ID, and UUID. Subclasses can override this to initialize additional fields.

      Overrides:
      onSpawnPacket in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named onSpawnPacket Lnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)V
      intermediary method_31471 Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)V
      official a Lbvj;a(Lacs;)V
    • canSpawn

      public boolean canSpawn(WorldView world)
      Overrides:
      canSpawn in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named canSpawn Lnet/minecraft/entity/mob/MobEntity;canSpawn(Lnet/minecraft/world/WorldView;)Z
      intermediary method_5957 Lnet/minecraft/class_1308;method_5957(Lnet/minecraft/class_4538;)Z
      official a Lbwh;a(Ldhk;)Z
    • getPathfindingFavor

      public float getPathfindingFavor(BlockPos pos, WorldView world)
      Overrides:
      getPathfindingFavor in class HostileEntity
      Mappings:
      Namespace Name Mixin selector
      named getPathfindingFavor Lnet/minecraft/entity/mob/PathAwareEntity;getPathfindingFavor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/WorldView;)F
      intermediary method_6144 Lnet/minecraft/class_1314;method_6144(Lnet/minecraft/class_2338;Lnet/minecraft/class_4538;)F
      official a Lbwn;a(Ljh;Ldhk;)F
    • isInvulnerableTo

      public boolean isInvulnerableTo(ServerWorld world, DamageSource source)
      Overrides:
      isInvulnerableTo in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named isInvulnerableTo Lnet/minecraft/entity/LivingEntity;isInvulnerableTo(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;)Z
      intermediary method_5679 Lnet/minecraft/class_1309;method_5679(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;)Z
      official a Lbwf;a(Lash;Lbtz;)Z
    • isDiggingOrEmerging

      boolean isDiggingOrEmerging()
      Mappings:
      Namespace Name Mixin selector
      named isDiggingOrEmerging Lnet/minecraft/entity/mob/WardenEntity;isDiggingOrEmerging()Z
      intermediary method_43113 Lnet/minecraft/class_7260;method_43113()Z
      official gr Lcoz;gr()Z
    • canStartRiding

      protected boolean canStartRiding(Entity entity)
      Returns whether this entity can ride entity.

      Returning false causes the entity to be unable to ride other entities. For example, WitherEntity overrides this to return false, so withers cannot ride boats or minecarts. Note that this check can be bypassed by passing true to MobEntity.startRiding(Entity, boolean).

      This is the opposite of Entity.canAddPassenger(net.minecraft.entity.Entity).

      Overrides:
      canStartRiding in class Entity
      Returns:
      whether this entity can ride entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named canStartRiding Lnet/minecraft/entity/Entity;canStartRiding(Lnet/minecraft/entity/Entity;)Z
      intermediary method_5860 Lnet/minecraft/class_1297;method_5860(Lnet/minecraft/class_1297;)Z
      official o Lbvj;o(Lbvj;)Z
    • disablesShield

      public boolean disablesShield()
      Overrides:
      disablesShield in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named disablesShield Lnet/minecraft/entity/LivingEntity;disablesShield()Z
      intermediary method_42149 Lnet/minecraft/class_1309;method_42149()Z
      official fU Lbwf;fU()Z
    • calculateNextStepSoundDistance

      protected float calculateNextStepSoundDistance()
      Overrides:
      calculateNextStepSoundDistance in class Entity
      Mappings:
      Namespace Name Mixin selector
      named calculateNextStepSoundDistance Lnet/minecraft/entity/Entity;calculateNextStepSoundDistance()F
      intermediary method_5867 Lnet/minecraft/class_1297;method_5867()F
      official aU Lbvj;aU()F
    • addAttributes

      public static DefaultAttributeContainer.Builder addAttributes()
      Mappings:
      Namespace Name Mixin selector
      named addAttributes Lnet/minecraft/entity/mob/WardenEntity;addAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_42221 Lnet/minecraft/class_7260;method_42221()Lnet/minecraft/class_5132$class_5133;
      official m Lcoz;m()Lbxm$a;
    • occludeVibrationSignals

      public boolean occludeVibrationSignals()
      Returns whether the entity should not emit vibrations.

      By default, wool or carpet

      invalid reference
      item entities
      , and WardenEntity do not emit vibrations.
      Overrides:
      occludeVibrationSignals in class Entity
      Returns:
      whether the entity should not emit vibrations
      Mappings:
      Namespace Name Mixin selector
      named occludeVibrationSignals Lnet/minecraft/entity/Entity;occludeVibrationSignals()Z
      intermediary method_33189 Lnet/minecraft/class_1297;method_33189()Z
      official bh Lbvj;bh()Z
    • getSoundVolume

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

      @Nullable protected @Nullable 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 u Lbwh;u()Laxe;
    • 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 e Lbwf;e(Lbtz;)Laxe;
    • 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 o_ Lbwf;o_()Laxe;
    • playStepSound

      protected void playStepSound(BlockPos pos, BlockState state)
      Overrides:
      playStepSound in class Entity
      Mappings:
      Namespace Name Mixin selector
      named playStepSound Lnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      intermediary method_5712 Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      official b Lbvj;b(Ljh;Ldxu;)V
    • tryAttack

      public boolean tryAttack(ServerWorld world, Entity target)
      Overrides:
      tryAttack in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named tryAttack Lnet/minecraft/entity/LivingEntity;tryAttack(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;)Z
      intermediary method_6121 Lnet/minecraft/class_1309;method_6121(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;)Z
      official c Lbwf;c(Lash;Lbvj;)Z
    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class MobEntity
      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 Lbvj;a(Lalg$a;)V
    • getAnger

      public int getAnger()
      Mappings:
      Namespace Name Mixin selector
      named getAnger Lnet/minecraft/entity/mob/WardenEntity;getAnger()I
      intermediary method_42222 Lnet/minecraft/class_7260;method_42222()I
      official p Lcoz;p()I
    • updateAnger

      private void updateAnger()
      Mappings:
      Namespace Name Mixin selector
      named updateAnger Lnet/minecraft/entity/mob/WardenEntity;updateAnger()V
      intermediary method_42217 Lnet/minecraft/class_7260;method_42217()V
      official gu Lcoz;gu()V
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class MobEntity
      See Also:
      API Note:
      This can be overridden to add additional logics. super.tick(); should be called in those cases.
      Implementation Note:
      By default, this delegates all logics to MobEntity.baseTick().
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/entity/Entity;tick()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      official h Lbvj;h()V
    • mobTick

      protected void mobTick(ServerWorld world)
      Overrides:
      mobTick in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named mobTick Lnet/minecraft/entity/mob/MobEntity;mobTick(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary method_5958 Lnet/minecraft/class_1308;method_5958(Lnet/minecraft/class_3218;)V
      official a Lbwh;a(Lash;)V
    • 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 Lbvj;b(B)V
    • getHeartRate

      private int getHeartRate()
      Mappings:
      Namespace Name Mixin selector
      named getHeartRate Lnet/minecraft/entity/mob/WardenEntity;getHeartRate()I
      intermediary method_42218 Lnet/minecraft/class_7260;method_42218()I
      official gv Lcoz;gv()I
    • getTendrilPitch

      public float getTendrilPitch(float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named getTendrilPitch Lnet/minecraft/entity/mob/WardenEntity;getTendrilPitch(F)F
      intermediary method_42223 Lnet/minecraft/class_7260;method_42223(F)F
      official J Lcoz;J(F)F
    • getHeartPitch

      public float getHeartPitch(float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named getHeartPitch Lnet/minecraft/entity/mob/WardenEntity;getHeartPitch(F)F
      intermediary method_42202 Lnet/minecraft/class_7260;method_42202(F)F
      official K Lcoz;K(F)F
    • addDigParticles

      private void addDigParticles(AnimationState animationState)
      Mappings:
      Namespace Name Mixin selector
      named addDigParticles Lnet/minecraft/entity/mob/WardenEntity;addDigParticles(Lnet/minecraft/entity/AnimationState;)V
      intermediary method_42205 Lnet/minecraft/class_7260;method_42205(Lnet/minecraft/class_7094;)V
      official a Lcoz;a(Lbvb;)V
    • onTrackedDataSet

      public void onTrackedDataSet(TrackedData<?> data)
      Called on the client when the tracked data is set.

      This can be overridden to refresh other fields when the tracked data is set or changed.

      Specified by:
      onTrackedDataSet in interface DataTracked
      Overrides:
      onTrackedDataSet in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named onTrackedDataSet Lnet/minecraft/entity/data/DataTracked;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
      intermediary method_5674 Lnet/minecraft/class_9221;method_5674(Lnet/minecraft/class_2940;)V
      official a Lalf;a(Lalc;)V
    • isImmuneToExplosion

      public boolean isImmuneToExplosion(Explosion explosion)
      Returns whether the entity is immune from explosion knockback and damage.

      Invisible ArmorStandEntity and emerging or digging WardenEntity are immune from explosions.

      Overrides:
      isImmuneToExplosion in class Entity
      Returns:
      whether the entity is immune from explosion knockback and damage
      Mappings:
      Namespace Name Mixin selector
      named isImmuneToExplosion Lnet/minecraft/entity/Entity;isImmuneToExplosion(Lnet/minecraft/world/explosion/Explosion;)Z
      intermediary method_5659 Lnet/minecraft/class_1297;method_5659(Lnet/minecraft/class_1927;)Z
      official a Lbvj;a(Ldgz;)Z
    • deserializeBrain

      protected Brain<?> deserializeBrain(com.mojang.serialization.Dynamic<?> dynamic)
      Overrides:
      deserializeBrain in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named deserializeBrain Lnet/minecraft/entity/LivingEntity;deserializeBrain(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/entity/ai/brain/Brain;
      intermediary method_18867 Lnet/minecraft/class_1309;method_18867(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_4095;
      official a Lbwf;a(Lcom/mojang/serialization/Dynamic;)Lbxh;
    • getBrain

      public Brain<WardenEntity> getBrain()
      Overrides:
      getBrain in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getBrain Lnet/minecraft/entity/LivingEntity;getBrain()Lnet/minecraft/entity/ai/brain/Brain;
      intermediary method_18868 Lnet/minecraft/class_1309;method_18868()Lnet/minecraft/class_4095;
      official ec Lbwf;ec()Lbxh;
    • sendAiDebugData

      protected void sendAiDebugData()
      Overrides:
      sendAiDebugData in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named sendAiDebugData Lnet/minecraft/entity/mob/MobEntity;sendAiDebugData()V
      intermediary method_18409 Lnet/minecraft/class_1308;method_18409()V
      official Y Lbwh;Y()V
    • updateEventHandler

      public void updateEventHandler(BiConsumer<EntityGameEventHandler<?>,ServerWorld> callback)
      Called when the entity is loaded to register game event handlers.

      Entities that listen to game events should first create an instance of EntityGameEventHandler in the entity's constructor, and override this to call callback. For example:

      
       if (this.world instanceof ServerWorld serverWorld) {
         callback.accept(this.handler, serverWorld);
       }
       
      Overrides:
      updateEventHandler in class Entity
      Mappings:
      Namespace Name Mixin selector
      named updateEventHandler Lnet/minecraft/entity/Entity;updateEventHandler(Ljava/util/function/BiConsumer;)V
      intermediary method_42147 Lnet/minecraft/class_1297;method_42147(Ljava/util/function/BiConsumer;)V
      official a Lbvj;a(Ljava/util/function/BiConsumer;)V
    • isValidTarget

      @Contract("null->false") public boolean isValidTarget(@Nullable @Nullable Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named isValidTarget Lnet/minecraft/entity/mob/WardenEntity;isValidTarget(Lnet/minecraft/entity/Entity;)Z
      intermediary method_42206 Lnet/minecraft/class_7260;method_42206(Lnet/minecraft/class_1297;)Z
      official b Lcoz;b(Lbvj;)Z
    • addDarknessToClosePlayers

      public static void addDarknessToClosePlayers(ServerWorld world, Vec3d pos, @Nullable @Nullable Entity entity, int range)
      Mappings:
      Namespace Name Mixin selector
      named addDarknessToClosePlayers Lnet/minecraft/entity/mob/WardenEntity;addDarknessToClosePlayers(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/Entity;I)V
      intermediary method_42204 Lnet/minecraft/class_7260;method_42204(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;Lnet/minecraft/class_1297;I)V
      official a Lcoz;a(Lash;Lfbx;Lbvj;I)V
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses have 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 MobEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      official b Lbvj;b(Lux;)V
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses have 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 MobEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      official a Lbvj;a(Lux;)V
    • playListeningSound

      private void playListeningSound()
      Mappings:
      Namespace Name Mixin selector
      named playListeningSound Lnet/minecraft/entity/mob/WardenEntity;playListeningSound()V
      intermediary method_42219 Lnet/minecraft/class_7260;method_42219()V
      official gw Lcoz;gw()V
    • getAngriness

      public Angriness getAngriness()
      Mappings:
      Namespace Name Mixin selector
      named getAngriness Lnet/minecraft/entity/mob/WardenEntity;getAngriness()Lnet/minecraft/entity/mob/Angriness;
      intermediary method_42214 Lnet/minecraft/class_7260;method_42214()Lnet/minecraft/class_7253;
      official t Lcoz;t()Lcox;
    • getAngerAtTarget

      private int getAngerAtTarget()
      Mappings:
      Namespace Name Mixin selector
      named getAngerAtTarget Lnet/minecraft/entity/mob/WardenEntity;getAngerAtTarget()I
      intermediary method_43999 Lnet/minecraft/class_7260;method_43999()I
      official gx Lcoz;gx()I
    • removeSuspect

      public void removeSuspect(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named removeSuspect Lnet/minecraft/entity/mob/WardenEntity;removeSuspect(Lnet/minecraft/entity/Entity;)V
      intermediary method_42211 Lnet/minecraft/class_7260;method_42211(Lnet/minecraft/class_1297;)V
      official c Lcoz;c(Lbvj;)V
    • increaseAngerAt

      public void increaseAngerAt(@Nullable @Nullable Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named increaseAngerAt Lnet/minecraft/entity/mob/WardenEntity;increaseAngerAt(Lnet/minecraft/entity/Entity;)V
      intermediary method_42213 Lnet/minecraft/class_7260;method_42213(Lnet/minecraft/class_1297;)V
      official d Lcoz;d(Lbvj;)V
    • increaseAngerAt

      public void increaseAngerAt(@Nullable @Nullable Entity entity, int amount, boolean listening)
      Mappings:
      Namespace Name Mixin selector
      named increaseAngerAt Lnet/minecraft/entity/mob/WardenEntity;increaseAngerAt(Lnet/minecraft/entity/Entity;IZ)V
      intermediary method_42212 Lnet/minecraft/class_7260;method_42212(Lnet/minecraft/class_1297;IZ)V
      official a Lcoz;a(Lbvj;IZ)V
    • getPrimeSuspect

      public Optional<LivingEntity> getPrimeSuspect()
      Mappings:
      Namespace Name Mixin selector
      named getPrimeSuspect Lnet/minecraft/entity/mob/WardenEntity;getPrimeSuspect()Ljava/util/Optional;
      intermediary method_42215 Lnet/minecraft/class_7260;method_42215()Ljava/util/Optional;
      official x Lcoz;x()Ljava/util/Optional;
    • getTarget

      @Nullable public @Nullable LivingEntity getTarget()
      Specified by:
      getTarget in interface Targeter
      Overrides:
      getTarget in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named getTarget Lnet/minecraft/entity/Targeter;getTarget()Lnet/minecraft/entity/LivingEntity;
      intermediary method_5968 Lnet/minecraft/class_8152;method_5968()Lnet/minecraft/class_1309;
      official O_ Lbxd;O_()Lbwf;
    • canImmediatelyDespawn

      public boolean canImmediatelyDespawn(double distanceSquared)
      Overrides:
      canImmediatelyDespawn in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named canImmediatelyDespawn Lnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Z
      intermediary method_5974 Lnet/minecraft/class_1308;method_5974(D)Z
      official h Lbwh;h(D)Z
    • initialize

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData)
      Overrides:
      initialize in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named initialize Lnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;)Lnet/minecraft/entity/EntityData;
      intermediary method_5943 Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;)Lnet/minecraft/class_1315;
      official a Lbwh;a(Ldhy;Lbtg;Lbvp;Lbwy;)Lbwy;
    • damage

      public boolean damage(ServerWorld world, 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 isInvulnerableTo(net.minecraft.server.world.ServerWorld, net.minecraft.entity.damage.DamageSource) and return early.

      Overrides:
      damage in class LivingEntity
      Returns:
      whether the entity was actually damaged
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Z
      intermediary method_64397 Lnet/minecraft/class_1297;method_64397(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Z
      official a Lbvj;a(Lash;Lbtz;F)Z
    • updateAttackTarget

      public void updateAttackTarget(LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      named updateAttackTarget Lnet/minecraft/entity/mob/WardenEntity;updateAttackTarget(Lnet/minecraft/entity/LivingEntity;)V
      intermediary method_43274 Lnet/minecraft/class_7260;method_43274(Lnet/minecraft/class_1309;)V
      official j Lcoz;j(Lbwf;)V
    • getBaseDimensions

      public EntityDimensions getBaseDimensions(EntityPose pose)
      Overrides:
      getBaseDimensions in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getBaseDimensions Lnet/minecraft/entity/LivingEntity;getBaseDimensions(Lnet/minecraft/entity/EntityPose;)Lnet/minecraft/entity/EntityDimensions;
      intermediary method_55694 Lnet/minecraft/class_1309;method_55694(Lnet/minecraft/class_4050;)Lnet/minecraft/class_4048;
      official e Lbwf;e(Lbwr;)Lbvm;
    • isPushable

      public boolean isPushable()
      Returns whether the entity can be pushed by other entities.
      Overrides:
      isPushable in class LivingEntity
      Returns:
      whether the entity can be pushed by other entities
      Mappings:
      Namespace Name Mixin selector
      named isPushable Lnet/minecraft/entity/Entity;isPushable()Z
      intermediary method_5810 Lnet/minecraft/class_1297;method_5810()Z
      official bI Lbvj;bI()Z
    • pushAway

      protected void pushAway(Entity entity)
      Overrides:
      pushAway in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named pushAway Lnet/minecraft/entity/LivingEntity;pushAway(Lnet/minecraft/entity/Entity;)V
      intermediary method_6087 Lnet/minecraft/class_1309;method_6087(Lnet/minecraft/class_1297;)V
      official D Lbwf;D(Lbvj;)V
    • getAngerManager

      public WardenAngerManager getAngerManager()
      Mappings:
      Namespace Name Mixin selector
      named getAngerManager Lnet/minecraft/entity/mob/WardenEntity;getAngerManager()Lnet/minecraft/entity/ai/WardenAngerManager;
      intermediary method_42216 Lnet/minecraft/class_7260;method_42216()Lnet/minecraft/class_7254;
      official go Lcoz;go()Lcoy;
    • createNavigation

      protected EntityNavigation createNavigation(World world)
      Overrides:
      createNavigation in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named createNavigation Lnet/minecraft/entity/mob/MobEntity;createNavigation(Lnet/minecraft/world/World;)Lnet/minecraft/entity/ai/pathing/EntityNavigation;
      intermediary method_5965 Lnet/minecraft/class_1308;method_5965(Lnet/minecraft/class_1937;)Lnet/minecraft/class_1408;
      official b Lbwh;b(Ldhh;)Lcfr;
    • getVibrationListenerData

      public Vibrations.ListenerData getVibrationListenerData()
      Specified by:
      getVibrationListenerData in interface Vibrations
      Mappings:
      Namespace Name Mixin selector
      named getVibrationListenerData Lnet/minecraft/world/event/Vibrations;getVibrationListenerData()Lnet/minecraft/world/event/Vibrations$ListenerData;
      intermediary method_51298 Lnet/minecraft/class_8514;method_51298()Lnet/minecraft/class_8514$class_8515;
      official gp Lecz;gp()Lecz$a;
    • getVibrationCallback

      public Vibrations.Callback getVibrationCallback()
      Specified by:
      getVibrationCallback in interface Vibrations
      Mappings:
      Namespace Name Mixin selector
      named getVibrationCallback Lnet/minecraft/world/event/Vibrations;getVibrationCallback()Lnet/minecraft/world/event/Vibrations$Callback;
      intermediary method_51299 Lnet/minecraft/class_8514;method_51299()Lnet/minecraft/class_8514$class_5719;
      official gq Lecz;gq()Lecz$d;