public class GossipManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
GossipManager.GossipEntry |
(package private) static class |
GossipManager.Gossips |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.util.UUID,GossipManager.Gossips> |
uuid_gossips_mapping |
Constructor and Description |
---|
GossipManager() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.util.UUID p_220916_1_,
GossipType p_220916_2_,
int p_220916_3_) |
void |
deserialize(com.mojang.datafixers.Dynamic<?> p_220918_1_) |
private java.util.stream.Stream<GossipManager.GossipEntry> |
getGossipEntries() |
private static int |
getMax(int value1,
int value2) |
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 gossipTypeIn,
int p_220925_2_,
int p_220925_3_) |
private java.util.Collection<GossipManager.GossipEntry> |
selectGossipsForTransfer(java.util.Random rand,
int p_220920_2_) |
<T> com.mojang.datafixers.Dynamic<T> |
serialize(com.mojang.datafixers.types.DynamicOps<T> p_220914_1_) |
void |
tick() |
void |
transferFrom(GossipManager gossip,
java.util.Random rand,
int p_220912_3_) |
private final java.util.Map<java.util.UUID,GossipManager.Gossips> uuid_gossips_mapping
public void tick()
private java.util.stream.Stream<GossipManager.GossipEntry> getGossipEntries()
private java.util.Collection<GossipManager.GossipEntry> selectGossipsForTransfer(java.util.Random rand, int p_220920_2_)
private GossipManager.Gossips getOrCreate(java.util.UUID p_220926_1_)
public void transferFrom(GossipManager gossip, java.util.Random rand, int p_220912_3_)
public int getReputation(java.util.UUID p_220921_1_, java.util.function.Predicate<GossipType> p_220921_2_)
public void add(java.util.UUID p_220916_1_, GossipType p_220916_2_, int p_220916_3_)
public <T> com.mojang.datafixers.Dynamic<T> serialize(com.mojang.datafixers.types.DynamicOps<T> p_220914_1_)
public void deserialize(com.mojang.datafixers.Dynamic<?> p_220918_1_)
private static int getMax(int value1, int value2)
private int mergeValuesForAddition(GossipType gossipTypeIn, int p_220925_2_, int p_220925_3_)