Package net.minecraft.village
Class GossipManager
java.lang.Object
net.minecraft.village.GossipManager
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(UUID p_220916_1_, GossipType p_220916_2_, int p_220916_3_) void
decay()
private GossipManager.Gossips
getOrCreate
(UUID p_220926_1_) int
getReputation
(UUID p_220921_1_, 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 Collection<GossipManager.GossipEntry>
selectGossipsForTransfer
(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_, Random p_220912_2_, int p_220912_3_) private Stream<GossipManager.GossipEntry>
unpack()
void
update
(com.mojang.serialization.Dynamic<?> p_234057_1_)
-
Field Details
-
gossips
-
-
Constructor Details
-
GossipManager
public GossipManager()
-
-
Method Details
-
decay
public void decay() -
unpack
-
selectGossipsForTransfer
private Collection<GossipManager.GossipEntry> selectGossipsForTransfer(Random p_220920_1_, int p_220920_2_) -
getOrCreate
-
transferFrom
-
getReputation
-
add
-
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
-