Class RaiderEntity

All Implemented Interfaces:
ComponentsAccess, Attackable, DataTracked, EquipmentHolder, Leashable, Monster, Targeter, ScoreHolder, Nameable, EntityLike, UniquelyIdentifiable, ServerWaypoint, Waypoint
Direct Known Subclasses:
IllagerEntity, RavagerEntity, WitchEntity

public abstract class RaiderEntity extends PatrolEntity
Mappings:
Namespace Name
named net/minecraft/entity/raid/RaiderEntity
intermediary net/minecraft/class_3763
official cwk
  • Field Details

    • CELEBRATING

      protected static final TrackedData<Boolean> CELEBRATING
      Mappings:
      Namespace Name Mixin selector
      named CELEBRATING Lnet/minecraft/entity/raid/RaiderEntity;CELEBRATING:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_19032 Lnet/minecraft/class_3763;field_19032:Lnet/minecraft/class_2940;
      official c Lcwk;c:Lalh;
    • OBTAINABLE_OMINOUS_BANNER_PREDICATE

      static final Predicate<ItemEntity> OBTAINABLE_OMINOUS_BANNER_PREDICATE
      Mappings:
      Namespace Name Mixin selector
      named OBTAINABLE_OMINOUS_BANNER_PREDICATE Lnet/minecraft/entity/raid/RaiderEntity;OBTAINABLE_OMINOUS_BANNER_PREDICATE:Ljava/util/function/Predicate;
      intermediary field_16600 Lnet/minecraft/class_3763;field_16600:Ljava/util/function/Predicate;
      official a Lcwk;a:Ljava/util/function/Predicate;
    • DEFAULT_WAVE

      private static final int DEFAULT_WAVE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_WAVE Lnet/minecraft/entity/raid/RaiderEntity;DEFAULT_WAVE:I
      intermediary field_57747 Lnet/minecraft/class_3763;field_57747:I
      official b Lcwk;b:I
    • DEFAULT_ABLE_TO_JOIN_RAID

      private static final boolean DEFAULT_ABLE_TO_JOIN_RAID
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_ABLE_TO_JOIN_RAID Lnet/minecraft/entity/raid/RaiderEntity;DEFAULT_ABLE_TO_JOIN_RAID:Z
      intermediary field_57748 Lnet/minecraft/class_3763;field_57748:Z
      official e Lcwk;e:Z
    • raid

      @Nullable protected @Nullable Raid raid
      Mappings:
      Namespace Name Mixin selector
      named raid Lnet/minecraft/entity/raid/RaiderEntity;raid:Lnet/minecraft/village/raid/Raid;
      intermediary field_16599 Lnet/minecraft/class_3763;field_16599:Lnet/minecraft/class_3765;
      official d Lcwk;d:Lcwj;
    • wave

      private int wave
      Mappings:
      Namespace Name Mixin selector
      named wave Lnet/minecraft/entity/raid/RaiderEntity;wave:I
      intermediary field_16601 Lnet/minecraft/class_3763;field_16601:I
      official f Lcwk;f:I
    • ableToJoinRaid

      private boolean ableToJoinRaid
      Mappings:
      Namespace Name Mixin selector
      named ableToJoinRaid Lnet/minecraft/entity/raid/RaiderEntity;ableToJoinRaid:Z
      intermediary field_16602 Lnet/minecraft/class_3763;field_16602:Z
      official ck Lcwk;ck:Z
    • outOfRaidCounter

      private int outOfRaidCounter
      Mappings:
      Namespace Name Mixin selector
      named outOfRaidCounter Lnet/minecraft/entity/raid/RaiderEntity;outOfRaidCounter:I
      intermediary field_16997 Lnet/minecraft/class_3763;field_16997:I
      official cl Lcwk;cl:I
  • Constructor Details

    • RaiderEntity

      protected RaiderEntity(EntityType<? extends RaiderEntity> 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> Lbzm;<init>(Lbzv;Ldmu;)V
  • Method Details

    • initGoals

      protected void initGoals()
      Overrides:
      initGoals in class PatrolEntity
      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 H Lcao;H()V
    • 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 Lbzm;a(Lall$a;)V
    • addBonusForWave

      public abstract void addBonusForWave(ServerWorld world, int wave, boolean unused)
      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 Lcwk;a(Laub;IZ)V
    • canJoinRaid

      public boolean canJoinRaid()
      Mappings:
      Namespace Name Mixin selector
      named canJoinRaid Lnet/minecraft/entity/raid/RaiderEntity;canJoinRaid()Z
      intermediary method_16481 Lnet/minecraft/class_3763;method_16481()Z
      official gT Lcwk;gT()Z
    • setAbleToJoinRaid

      public void setAbleToJoinRaid(boolean ableToJoinRaid)
      Mappings:
      Namespace Name Mixin selector
      named setAbleToJoinRaid Lnet/minecraft/entity/raid/RaiderEntity;setAbleToJoinRaid(Z)V
      intermediary method_16480 Lnet/minecraft/class_3763;method_16480(Z)V
      official A Lcwk;A(Z)V
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class HostileEntity
      Mappings:
      Namespace Name Mixin selector
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      official e_ Lcam;e_()V
    • updateDespawnCounter

      protected void updateDespawnCounter()
      Overrides:
      updateDespawnCounter in class HostileEntity
      Mappings:
      Namespace Name Mixin selector
      named updateDespawnCounter Lnet/minecraft/entity/mob/HostileEntity;updateDespawnCounter()V
      intermediary method_16827 Lnet/minecraft/class_1588;method_16827()V
      official gL Lcrv;gL()V
    • onDeath

      public void onDeath(DamageSource damageSource)
      Overrides:
      onDeath in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named onDeath Lnet/minecraft/entity/LivingEntity;onDeath(Lnet/minecraft/entity/damage/DamageSource;)V
      intermediary method_6078 Lnet/minecraft/class_1309;method_6078(Lnet/minecraft/class_1282;)V
      official a Lcam;a(Lbyb;)V
    • hasNoRaid

      public boolean hasNoRaid()
      Overrides:
      hasNoRaid in class PatrolEntity
      Mappings:
      Namespace Name Mixin selector
      named hasNoRaid Lnet/minecraft/entity/mob/PatrolEntity;hasNoRaid()Z
      intermediary method_16472 Lnet/minecraft/class_3732;method_16472()Z
      official gN Lcrw;gN()Z
    • setRaid

      public void setRaid(@Nullable @Nullable Raid raid)
      Mappings:
      Namespace Name Mixin selector
      named setRaid Lnet/minecraft/entity/raid/RaiderEntity;setRaid(Lnet/minecraft/village/raid/Raid;)V
      intermediary method_16476 Lnet/minecraft/class_3763;method_16476(Lnet/minecraft/class_3765;)V
      official a Lcwk;a(Lcwj;)V
    • getRaid

      @Nullable public @Nullable Raid getRaid()
      Mappings:
      Namespace Name Mixin selector
      named getRaid Lnet/minecraft/entity/raid/RaiderEntity;getRaid()Lnet/minecraft/village/raid/Raid;
      intermediary method_16478 Lnet/minecraft/class_3763;method_16478()Lnet/minecraft/class_3765;
      official gU Lcwk;gU()Lcwj;
    • isCaptain

      public boolean isCaptain()
      Mappings:
      Namespace Name Mixin selector
      named isCaptain Lnet/minecraft/entity/raid/RaiderEntity;isCaptain()Z
      intermediary method_58646 Lnet/minecraft/class_3763;method_58646()Z
      official gV Lcwk;gV()Z
    • hasRaid

      public boolean hasRaid()
      Mappings:
      Namespace Name Mixin selector
      named hasRaid Lnet/minecraft/entity/raid/RaiderEntity;hasRaid()Z
      intermediary method_58647 Lnet/minecraft/class_3763;method_58647()Z
      official gW Lcwk;gW()Z
    • hasActiveRaid

      public boolean hasActiveRaid()
      Mappings:
      Namespace Name Mixin selector
      named hasActiveRaid Lnet/minecraft/entity/raid/RaiderEntity;hasActiveRaid()Z
      intermediary method_16482 Lnet/minecraft/class_3763;method_16482()Z
      official gX Lcwk;gX()Z
    • setWave

      public void setWave(int wave)
      Mappings:
      Namespace Name Mixin selector
      named setWave Lnet/minecraft/entity/raid/RaiderEntity;setWave(I)V
      intermediary method_16477 Lnet/minecraft/class_3763;method_16477(I)V
      official b Lcwk;b(I)V
    • getWave

      public int getWave()
      Mappings:
      Namespace Name Mixin selector
      named getWave Lnet/minecraft/entity/raid/RaiderEntity;getWave()I
      intermediary method_16486 Lnet/minecraft/class_3763;method_16486()I
      official gY Lcwk;gY()I
    • isCelebrating

      public boolean isCelebrating()
      Mappings:
      Namespace Name Mixin selector
      named isCelebrating Lnet/minecraft/entity/raid/RaiderEntity;isCelebrating()Z
      intermediary method_20034 Lnet/minecraft/class_3763;method_20034()Z
      official gZ Lcwk;gZ()Z
    • setCelebrating

      public void setCelebrating(boolean celebrating)
      Mappings:
      Namespace Name Mixin selector
      named setCelebrating Lnet/minecraft/entity/raid/RaiderEntity;setCelebrating(Z)V
      intermediary method_20036 Lnet/minecraft/class_3763;method_20036(Z)V
      official B Lcwk;B(Z)V
    • writeCustomData

      protected void writeCustomData(WriteView view)
      Overrides:
      writeCustomData in class PatrolEntity
      Mappings:
      Namespace Name Mixin selector
      named writeCustomData Lnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)V
      official a Lbzm;a(Lfdc;)V
    • readCustomData

      protected void readCustomData(ReadView view)
      Overrides:
      readCustomData in class PatrolEntity
      Mappings:
      Namespace Name Mixin selector
      named readCustomData Lnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)V
      official a Lbzm;a(Lfda;)V
    • loot

      protected void loot(ServerWorld world, ItemEntity itemEntity)
      Overrides:
      loot in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named loot Lnet/minecraft/entity/mob/MobEntity;loot(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/ItemEntity;)V
      intermediary method_5949 Lnet/minecraft/class_1308;method_5949(Lnet/minecraft/class_3218;Lnet/minecraft/class_1542;)V
      official a Lcao;a(Laub;Lcqz;)V
    • canImmediatelyDespawn

      public boolean canImmediatelyDespawn(double distanceSquared)
      Overrides:
      canImmediatelyDespawn in class PatrolEntity
      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 Lcao;h(D)Z
    • cannotDespawn

      public boolean cannotDespawn()
      Overrides:
      cannotDespawn in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named cannotDespawn Lnet/minecraft/entity/mob/MobEntity;cannotDespawn()Z
      intermediary method_17326 Lnet/minecraft/class_1308;method_17326()Z
      official af Lcao;af()Z
    • getOutOfRaidCounter

      public int getOutOfRaidCounter()
      Mappings:
      Namespace Name Mixin selector
      named getOutOfRaidCounter Lnet/minecraft/entity/raid/RaiderEntity;getOutOfRaidCounter()I
      intermediary method_16836 Lnet/minecraft/class_3763;method_16836()I
      official ha Lcwk;ha()I
    • setOutOfRaidCounter

      public void setOutOfRaidCounter(int outOfRaidCounter)
      Mappings:
      Namespace Name Mixin selector
      named setOutOfRaidCounter Lnet/minecraft/entity/raid/RaiderEntity;setOutOfRaidCounter(I)V
      intermediary method_16835 Lnet/minecraft/class_3763;method_16835(I)V
      official c Lcwk;c(I)V
    • 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 LivingEntity.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 Lbzm;a(Laub;Lbyb;F)Z
    • initialize

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData)
      Overrides:
      initialize in class PatrolEntity
      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 Lcao;a(Ldnl;Lbxh;Lbzu;Lcbe;)Lcbe;
    • getCelebratingSound

      public abstract SoundEvent getCelebratingSound()
      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 ag_ Lcwk;ag_()Layy;