Class WardenAngerManager

java.lang.Object
net.minecraft.entity.ai.WardenAngerManager

public class WardenAngerManager extends Object
Mappings:
Namespace Name
official bxr
intermediary net/minecraft/class_7254
named net/minecraft/entity/ai/WardenAngerManager
  • Field Details

    • field_38733

      protected static final int field_38733
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbxr;a:I
      intermediary field_38733 Lnet/minecraft/class_7254;field_38733:I
      named field_38733 Lnet/minecraft/entity/ai/WardenAngerManager;field_38733:I
    • maxAnger

      protected static final int maxAnger
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbxr;b:I
      intermediary field_38128 Lnet/minecraft/class_7254;field_38128:I
      named maxAnger Lnet/minecraft/entity/ai/WardenAngerManager;maxAnger:I
    • angerDecreasePerTick

      private static final int angerDecreasePerTick
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Lbxr;f:I
      intermediary field_38129 Lnet/minecraft/class_7254;field_38129:I
      named angerDecreasePerTick Lnet/minecraft/entity/ai/WardenAngerManager;angerDecreasePerTick:I
    • SUSPECT_CODEC

      private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Pair<UUID,Integer>> SUSPECT_CODEC
      Mappings:
      Namespace Name Mixin selector
      official i Lbxr;i:Lcom/mojang/serialization/Codec;
      intermediary field_38737 Lnet/minecraft/class_7254;field_38737:Lcom/mojang/serialization/Codec;
      named SUSPECT_CODEC Lnet/minecraft/entity/ai/WardenAngerManager;SUSPECT_CODEC:Lcom/mojang/serialization/Codec;
    • updateTimer

      private int updateTimer
      Mappings:
      Namespace Name Mixin selector
      official g Lbxr;g:I
      intermediary field_38736 Lnet/minecraft/class_7254;field_38736:I
      named updateTimer Lnet/minecraft/entity/ai/WardenAngerManager;updateTimer:I
    • primeAnger

      int primeAnger
      Mappings:
      Namespace Name Mixin selector
      official h Lbxr;h:I
      intermediary field_39304 Lnet/minecraft/class_7254;field_39304:I
      named primeAnger Lnet/minecraft/entity/ai/WardenAngerManager;primeAnger:I
    • suspectPredicate

      private final Predicate<Entity> suspectPredicate
      Mappings:
      Namespace Name Mixin selector
      official j Lbxr;j:Ljava/util/function/Predicate;
      intermediary field_39114 Lnet/minecraft/class_7254;field_39114:Ljava/util/function/Predicate;
      named suspectPredicate Lnet/minecraft/entity/ai/WardenAngerManager;suspectPredicate:Ljava/util/function/Predicate;
    • suspects

      protected final ArrayList<Entity> suspects
      Mappings:
      Namespace Name Mixin selector
      official c Lbxr;c:Ljava/util/ArrayList;
      intermediary field_38734 Lnet/minecraft/class_7254;field_38734:Ljava/util/ArrayList;
      named suspects Lnet/minecraft/entity/ai/WardenAngerManager;suspects:Ljava/util/ArrayList;
    • suspectComparator

      private final WardenAngerManager.SuspectComparator suspectComparator
      Mappings:
      Namespace Name Mixin selector
      official k Lbxr;k:Lbxr$a;
      intermediary field_39115 Lnet/minecraft/class_7254;field_39115:Lnet/minecraft/class_7254$class_7379;
      named suspectComparator Lnet/minecraft/entity/ai/WardenAngerManager;suspectComparator:Lnet/minecraft/entity/ai/WardenAngerManager$SuspectComparator;
    • suspectsToAngerLevel

      protected final Object2IntMap<Entity> suspectsToAngerLevel
      Mappings:
      Namespace Name Mixin selector
      official d Lbxr;d:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      intermediary field_38130 Lnet/minecraft/class_7254;field_38130:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      named suspectsToAngerLevel Lnet/minecraft/entity/ai/WardenAngerManager;suspectsToAngerLevel:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
    • suspectUuidsToAngerLevel

      protected final Object2IntMap<UUID> suspectUuidsToAngerLevel
      Mappings:
      Namespace Name Mixin selector
      official e Lbxr;e:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      intermediary field_38735 Lnet/minecraft/class_7254;field_38735:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      named suspectUuidsToAngerLevel Lnet/minecraft/entity/ai/WardenAngerManager;suspectUuidsToAngerLevel:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
  • Constructor Details

    • WardenAngerManager

      public WardenAngerManager(Predicate<Entity> suspectPredicate, List<com.mojang.datafixers.util.Pair<UUID,Integer>> suspectUuidsToAngerLevel)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbxr;<init>(Ljava/util/function/Predicate;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_7254;<init>(Ljava/util/function/Predicate;Ljava/util/List;)V
      named <init> Lnet/minecraft/entity/ai/WardenAngerManager;<init>(Ljava/util/function/Predicate;Ljava/util/List;)V
  • Method Details

    • createCodec

      public static com.mojang.serialization.Codec<WardenAngerManager> createCodec(Predicate<Entity> suspectPredicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxr;a(Ljava/util/function/Predicate;)Lcom/mojang/serialization/Codec;
      intermediary method_43692 Lnet/minecraft/class_7254;method_43692(Ljava/util/function/Predicate;)Lcom/mojang/serialization/Codec;
      named createCodec Lnet/minecraft/entity/ai/WardenAngerManager;createCodec(Ljava/util/function/Predicate;)Lcom/mojang/serialization/Codec;
    • getSuspects

      private List<com.mojang.datafixers.util.Pair<UUID,Integer>> getSuspects()
      Mappings:
      Namespace Name Mixin selector
      official b Lbxr;b()Ljava/util/List;
      intermediary method_43108 Lnet/minecraft/class_7254;method_43108()Ljava/util/List;
      named getSuspects Lnet/minecraft/entity/ai/WardenAngerManager;getSuspects()Ljava/util/List;
    • tick

      public void tick(ServerWorld world, Predicate<Entity> suspectPredicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxr;a(Laif;Ljava/util/function/Predicate;)V
      intermediary method_42176 Lnet/minecraft/class_7254;method_42176(Lnet/minecraft/class_3218;Ljava/util/function/Predicate;)V
      named tick Lnet/minecraft/entity/ai/WardenAngerManager;tick(Lnet/minecraft/server/world/ServerWorld;Ljava/util/function/Predicate;)V
    • updatePrimeAnger

      private void updatePrimeAnger()
      Mappings:
      Namespace Name Mixin selector
      official c Lbxr;c()V
      intermediary method_43998 Lnet/minecraft/class_7254;method_43998()V
      named updatePrimeAnger Lnet/minecraft/entity/ai/WardenAngerManager;updatePrimeAnger()V
    • updateSuspectsMap

      private void updateSuspectsMap(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxr;a(Laif;)V
      intermediary method_43104 Lnet/minecraft/class_7254;method_43104(Lnet/minecraft/class_3218;)V
      named updateSuspectsMap Lnet/minecraft/entity/ai/WardenAngerManager;updateSuspectsMap(Lnet/minecraft/server/world/ServerWorld;)V
    • increaseAngerAt

      public int increaseAngerAt(Entity entity, int amount)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxr;a(Lbfj;I)I
      intermediary method_42179 Lnet/minecraft/class_7254;method_42179(Lnet/minecraft/class_1297;I)I
      named increaseAngerAt Lnet/minecraft/entity/ai/WardenAngerManager;increaseAngerAt(Lnet/minecraft/entity/Entity;I)I
    • removeSuspect

      public void removeSuspect(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxr;a(Lbfj;)V
      intermediary method_42178 Lnet/minecraft/class_7254;method_42178(Lnet/minecraft/class_1297;)V
      named removeSuspect Lnet/minecraft/entity/ai/WardenAngerManager;removeSuspect(Lnet/minecraft/entity/Entity;)V
    • getPrimeSuspectInternal

      @Nullable private @Nullable Entity getPrimeSuspectInternal()
      Mappings:
      Namespace Name Mixin selector
      official d Lbxr;d()Lbfj;
      intermediary method_42187 Lnet/minecraft/class_7254;method_42187()Lnet/minecraft/class_1297;
      named getPrimeSuspectInternal Lnet/minecraft/entity/ai/WardenAngerManager;getPrimeSuspectInternal()Lnet/minecraft/entity/Entity;
    • getAngerFor

      public int getAngerFor(@Nullable @Nullable Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official b Lbxr;b(Lbfj;)I
      intermediary method_42185 Lnet/minecraft/class_7254;method_42185(Lnet/minecraft/class_1297;)I
      named getAngerFor Lnet/minecraft/entity/ai/WardenAngerManager;getAngerFor(Lnet/minecraft/entity/Entity;)I
    • getPrimeSuspect

      public Optional<LivingEntity> getPrimeSuspect()
      Mappings:
      Namespace Name Mixin selector
      official a Lbxr;a()Ljava/util/Optional;
      intermediary method_42181 Lnet/minecraft/class_7254;method_42181()Ljava/util/Optional;
      named getPrimeSuspect Lnet/minecraft/entity/ai/WardenAngerManager;getPrimeSuspect()Ljava/util/Optional;