Class AngerManagement
java.lang.Object
net.minecraft.world.entity.monster.warden.AngerManagement
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.objects.Object2IntMap
<Entity> protected final it.unimi.dsi.fastutil.objects.Object2IntMap
<UUID> protected static final int
private int
private static final int
(package private) int
protected static final int
private final AngerManagement.Sorter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearAnger
(Entity p_219267_) static com.mojang.serialization.Codec
<AngerManagement> private void
convertFromUuids
(ServerLevel p_219262_) int
getActiveAnger
(Entity p_219287_) private Entity
int
increaseAnger
(Entity p_219269_, int p_219270_) private void
void
tick
(ServerLevel p_219264_, Predicate<Entity> p_219265_)
-
Field Details
-
CONVERSION_DELAY
protected static final int CONVERSION_DELAY- See Also:
-
MAX_ANGER
protected static final int MAX_ANGER- See Also:
-
DEFAULT_ANGER_DECREASE
private static final int DEFAULT_ANGER_DECREASE- See Also:
-
conversionDelay
private int conversionDelay -
highestAnger
int highestAnger -
SUSPECT_ANGER_PAIR
-
filter
-
suspects
-
suspectSorter
-
angerBySuspect
-
angerByUuid
-
-
Constructor Details
-
AngerManagement
-
-
Method Details
-
codec
-
createUuidAngerPairs
-
tick
-
sortAndUpdateHighestAnger
private void sortAndUpdateHighestAnger() -
convertFromUuids
-
increaseAnger
-
clearAnger
-
getTopSuspect
-
getActiveAnger
-
getActiveEntity
-