public class VillagerGossips extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
VillagerGossips.GossipEntry |
(package private) static class |
VillagerGossips.Reputation |
Modifier and Type | Field and Description |
---|---|
private Map<UUID,VillagerGossips.Reputation> |
entityReputation |
Constructor and Description |
---|
VillagerGossips() |
Modifier and Type | Method and Description |
---|---|
void |
decay() |
void |
deserialize(com.mojang.serialization.Dynamic<?> dynamic) |
private Stream<VillagerGossips.GossipEntry> |
entries() |
private VillagerGossips.Reputation |
getReputationFor(UUID target) |
int |
getReputationFor(UUID target,
Predicate<VillageGossipType> gossipTypeFilter) |
private static int |
max(int left,
int right) |
private int |
mergeReputation(VillageGossipType type,
int left,
int right) |
private Collection<VillagerGossips.GossipEntry> |
pickGossips(Random random,
int count) |
<T> com.mojang.serialization.Dynamic<T> |
serialize(com.mojang.serialization.DynamicOps<T> dynamicOps) |
void |
shareGossipFrom(VillagerGossips from,
Random random,
int count) |
void |
startGossip(UUID target,
VillageGossipType type,
int value) |
private final Map<UUID,VillagerGossips.Reputation> entityReputation
public void decay()
private Stream<VillagerGossips.GossipEntry> entries()
private Collection<VillagerGossips.GossipEntry> pickGossips(Random random, int count)
private VillagerGossips.Reputation getReputationFor(UUID target)
public void shareGossipFrom(VillagerGossips from, Random random, int count)
public int getReputationFor(UUID target, Predicate<VillageGossipType> gossipTypeFilter)
public void startGossip(UUID target, VillageGossipType type, int value)
public <T> com.mojang.serialization.Dynamic<T> serialize(com.mojang.serialization.DynamicOps<T> dynamicOps)
public void deserialize(com.mojang.serialization.Dynamic<?> dynamic)
private static int max(int left, int right)
private int mergeReputation(VillageGossipType type, int left, int right)