Package net.minecraft.village
Class GossipManager
- java.lang.Object
-
- net.minecraft.village.GossipManager
-
public class GossipManager extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
GossipManager.GossipEntry
(package private) static class
GossipManager.Gossips
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.util.UUID,GossipManager.Gossips>
gossips
-
Constructor Summary
Constructors Constructor Description GossipManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.util.UUID p_220916_1_, GossipType p_220916_2_, int p_220916_3_)
void
decay()
private GossipManager.Gossips
getOrCreate(java.util.UUID p_220926_1_)
int
getReputation(java.util.UUID p_220921_1_, java.util.function.Predicate<GossipType> p_220921_2_)
private int
mergeValuesForAddition(GossipType p_220925_1_, int p_220925_2_, int p_220925_3_)
private static int
mergeValuesForTransfer(int p_220924_0_, int p_220924_1_)
private java.util.Collection<GossipManager.GossipEntry>
selectGossipsForTransfer(java.util.Random p_220920_1_, int p_220920_2_)
<T> com.mojang.serialization.Dynamic<T>
store(com.mojang.serialization.DynamicOps<T> p_234058_1_)
void
transferFrom(GossipManager p_220912_1_, java.util.Random p_220912_2_, int p_220912_3_)
private java.util.stream.Stream<GossipManager.GossipEntry>
unpack()
void
update(com.mojang.serialization.Dynamic<?> p_234057_1_)
-
-
-
Field Detail
-
gossips
private final java.util.Map<java.util.UUID,GossipManager.Gossips> gossips
-
-
Method Detail
-
decay
public void decay()
-
unpack
private java.util.stream.Stream<GossipManager.GossipEntry> unpack()
-
selectGossipsForTransfer
private java.util.Collection<GossipManager.GossipEntry> selectGossipsForTransfer(java.util.Random p_220920_1_, int p_220920_2_)
-
getOrCreate
private GossipManager.Gossips getOrCreate(java.util.UUID p_220926_1_)
-
transferFrom
public void transferFrom(GossipManager p_220912_1_, java.util.Random p_220912_2_, int p_220912_3_)
-
getReputation
public int getReputation(java.util.UUID p_220921_1_, java.util.function.Predicate<GossipType> p_220921_2_)
-
add
public void add(java.util.UUID p_220916_1_, GossipType p_220916_2_, int p_220916_3_)
-
store
public <T> com.mojang.serialization.Dynamic<T> store(com.mojang.serialization.DynamicOps<T> p_234058_1_)
-
update
public void update(com.mojang.serialization.Dynamic<?> p_234057_1_)
-
mergeValuesForTransfer
private static int mergeValuesForTransfer(int p_220924_0_, int p_220924_1_)
-
mergeValuesForAddition
private int mergeValuesForAddition(GossipType p_220925_1_, int p_220925_2_, int p_220925_3_)
-
-