Package net.minecraft.entity.ai
Class WardenAngerManager
java.lang.Object
net.minecraft.entity.ai.WardenAngerManager
- Mappings:
Namespace Name named net/minecraft/entity/ai/WardenAngerManager
intermediary net/minecraft/class_7254
official coy
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
protected static final int
protected static final int
(package private) int
private final WardenAngerManager.SuspectComparator
protected final Object2IntMap
<Entity> protected final Object2IntMap
<UUID> private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec
<WardenAngerManager> createCodec
(Predicate<Entity> suspectPredicate) int
getAngerFor
(@Nullable Entity entity) int
increaseAngerAt
(Entity entity, int amount) void
removeSuspect
(Entity entity) void
tick
(ServerWorld world, Predicate<Entity> suspectPredicate) private void
private void
updateSuspectsMap
(ServerWorld world)
-
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
Lcoy;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
Lcoy;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
Lcoy;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
Lcoy;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
Lcoy;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
Lcoy;h:I
-
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
Lcoy;j:Ljava/util/function/Predicate;
-
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
Lcoy;c:Ljava/util/ArrayList;
-
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
Lcoy;k:Lcoy$a;
-
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
Lcoy;d:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
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
Lcoy;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>
Lcoy;<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
Lcoy;a(Ljava/util/function/Predicate;)Lcom/mojang/serialization/Codec;
-
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
Lcoy;b()Ljava/util/List;
-
tick
- 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
Lcoy;a(Lash;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
Lcoy;c()V
-
updateSuspectsMap
- 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
Lcoy;a(Lash;)V
-
increaseAngerAt
- 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
Lcoy;a(Lbvj;I)I
-
removeSuspect
- 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
Lcoy;a(Lbvj;)V
-
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
Lcoy;d()Lbvj;
-
getAngerFor
- 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
Lcoy;b(Lbvj;)I
-
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
Lcoy;a()Ljava/util/Optional;
-