Class WardenAngerManager

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

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

    • field_38733

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

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

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

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

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

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

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

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

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

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

      protected final Object2IntMap<UUID> suspectUuidsToAngerLevel
      Mappings:
      Namespace Name Mixin selector
      named suspectUuidsToAngerLevel Lnet/minecraft/entity/ai/WardenAngerManager;suspectUuidsToAngerLevel:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      intermediary field_38735 Lnet/minecraft/class_7254;field_38735:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      official e Lcly;e: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
      named <init> Lnet/minecraft/entity/ai/WardenAngerManager;<init>(Ljava/util/function/Predicate;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_7254;<init>(Ljava/util/function/Predicate;Ljava/util/List;)V
      official <init> Lcly;<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
      named createCodec Lnet/minecraft/entity/ai/WardenAngerManager;createCodec(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;
      official a Lcly;a(Ljava/util/function/Predicate;)Lcom/mojang/serialization/Codec;
    • getSuspects

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

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

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

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

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

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

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

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

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