Class VindicatorEntity

All Implemented Interfaces:
Monster, CommandOutput, Nameable, EntityLike

public class VindicatorEntity extends IllagerEntity
Mappings:
Namespace Name
official bus
intermediary net/minecraft/class_1632
named net/minecraft/entity/mob/VindicatorEntity
  • Field Details

    • JOHNNY_KEY

      private static final String JOHNNY_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbus;b:Ljava/lang/String;
      intermediary field_30504 Lnet/minecraft/class_1632;field_30504:Ljava/lang/String;
      named JOHNNY_KEY Lnet/minecraft/entity/mob/VindicatorEntity;JOHNNY_KEY:Ljava/lang/String;
    • DIFFICULTY_ALLOWS_DOOR_BREAKING_PREDICATE

      static final Predicate<Difficulty> DIFFICULTY_ALLOWS_DOOR_BREAKING_PREDICATE
      Mappings:
      Namespace Name Mixin selector
      official e Lbus;e:Ljava/util/function/Predicate;
      intermediary field_19014 Lnet/minecraft/class_1632;field_19014:Ljava/util/function/Predicate;
      named DIFFICULTY_ALLOWS_DOOR_BREAKING_PREDICATE Lnet/minecraft/entity/mob/VindicatorEntity;DIFFICULTY_ALLOWS_DOOR_BREAKING_PREDICATE:Ljava/util/function/Predicate;
    • johnny

      boolean johnny
      Mappings:
      Namespace Name Mixin selector
      official bX Lbus;bX:Z
      intermediary field_7406 Lnet/minecraft/class_1632;field_7406:Z
      named johnny Lnet/minecraft/entity/mob/VindicatorEntity;johnny:Z
  • Constructor Details

    • VindicatorEntity

      public VindicatorEntity(EntityType<? extends VindicatorEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbdr;<init>(Lbdv;Lcjw;)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 IllagerEntity
      Mappings:
      Namespace Name Mixin selector
      official u Lbei;u()V
      intermediary method_5959 Lnet/minecraft/class_1308;method_5959()V
      named initGoals Lnet/minecraft/entity/mob/MobEntity;initGoals()V
    • mobTick

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

      public static DefaultAttributeContainer.Builder createVindicatorAttributes()
      Mappings:
      Namespace Name Mixin selector
      official p Lbus;p()Lbfi$a;
      intermediary method_26926 Lnet/minecraft/class_1632;method_26926()Lnet/minecraft/class_5132$class_5133;
      named createVindicatorAttributes Lnet/minecraft/entity/mob/VindicatorEntity;createVindicatorAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
    • 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 Lbdr;b(Lqp;)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 m Lbtl;m()Lbtl$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;
    • 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 Lbdr;a(Lqp;)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
    • getCelebratingSound

      public SoundEvent getCelebratingSound()
      Specified by:
      getCelebratingSound in class RaiderEntity
      Mappings:
      Namespace Name Mixin selector
      official N_ Lbxx;N_()Laln;
      intermediary method_20033 Lnet/minecraft/class_3763;method_20033()Lnet/minecraft/class_3414;
      named getCelebratingSound Lnet/minecraft/entity/raid/RaiderEntity;getCelebratingSound()Lnet/minecraft/sound/SoundEvent;
    • initialize

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData, @Nullable @Nullable NbtCompound entityNbt)
      Overrides:
      initialize in class RaiderEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbei;a(Lckl;Lbck;Lbek;Lbez;Lqp;)Lbez;
      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_2487;)Lnet/minecraft/class_1315;
      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/nbt/NbtCompound;)Lnet/minecraft/entity/EntityData;
    • initEquipment

      protected void initEquipment(Random random, LocalDifficulty localDifficulty)
      Overrides:
      initEquipment in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbei;a(Laoh;Lbck;)V
      intermediary method_5964 Lnet/minecraft/class_1308;method_5964(Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)V
      named initEquipment Lnet/minecraft/entity/mob/MobEntity;initEquipment(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)V
    • isTeammate

      public boolean isTeammate(Entity other)
      Returns whether this entity and other are in the same team.

      This returns false if this entity is not in any team.

      Overrides:
      isTeammate in class Entity
      Returns:
      whether this entity and other are in the same team
      Mappings:
      Namespace Name Mixin selector
      official q Lbdr;q(Lbdr;)Z
      intermediary method_5722 Lnet/minecraft/class_1297;method_5722(Lnet/minecraft/class_1297;)Z
      named isTeammate Lnet/minecraft/entity/Entity;isTeammate(Lnet/minecraft/entity/Entity;)Z
    • setCustomName

      public void setCustomName(@Nullable @Nullable Text name)
      Sets the custom name of the entity to name (or null to remove the custom name).
      Overrides:
      setCustomName in class Entity
      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b(Lss;)V
      intermediary method_5665 Lnet/minecraft/class_1297;method_5665(Lnet/minecraft/class_2561;)V
      named setCustomName Lnet/minecraft/entity/Entity;setCustomName(Lnet/minecraft/text/Text;)V
    • getAmbientSound

      protected SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official r Lbei;r()Laln;
      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;
    • getDeathSound

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class HostileEntity
      Mappings:
      Namespace Name Mixin selector
      official c_ Lbeg;c_()Laln;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
    • getHurtSound

      protected SoundEvent getHurtSound(DamageSource source)
      Overrides:
      getHurtSound in class HostileEntity
      Mappings:
      Namespace Name Mixin selector
      official c Lbeg;c(Lbcz;)Laln;
      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;
    • addBonusForWave

      public void addBonusForWave(int wave, boolean unused)
      Specified by:
      addBonusForWave in class RaiderEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbxx;a(IZ)V
      intermediary method_16484 Lnet/minecraft/class_3763;method_16484(IZ)V
      named addBonusForWave Lnet/minecraft/entity/raid/RaiderEntity;addBonusForWave(IZ)V