Package net.minecraft.village
Class VillagerGossips
java.lang.Object
net.minecraft.village.VillagerGossips
- Mappings:
Namespace Name official bov
intermediary net/minecraft/class_4136
named net/minecraft/village/VillagerGossips
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final record
private static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<UUID,
VillagerGossips.Reputation> static final int
private static final Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decay()
void
deserialize
(com.mojang.serialization.Dynamic<?> dynamic) private Stream<VillagerGossips.GossipEntry>
entries()
long
getReputationCount
(VillageGossipType type, DoublePredicate predicate) 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) void
remove
(UUID target, VillageGossipType type) void
remove
(VillageGossipType type) void
removeGossip
(UUID target, VillageGossipType type, int value) <T> T
serialize
(com.mojang.serialization.DynamicOps<T> ops) void
shareGossipFrom
(VillagerGossips from, Random random, int count) void
startGossip
(UUID target, VillageGossipType type, int value)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official b
Lbov;b:Lorg/slf4j/Logger;
intermediary field_41669
Lnet/minecraft/class_4136;field_41669:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/village/VillagerGossips;LOGGER:Lorg/slf4j/Logger;
-
field_30236
public static final int field_30236- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbov;a:I
intermediary field_30236
Lnet/minecraft/class_4136;field_30236:I
named field_30236
Lnet/minecraft/village/VillagerGossips;field_30236:I
-
entityReputation
- Mappings:
Namespace Name Mixin selector official c
Lbov;c:Ljava/util/Map;
intermediary field_18419
Lnet/minecraft/class_4136;field_18419:Ljava/util/Map;
named entityReputation
Lnet/minecraft/village/VillagerGossips;entityReputation:Ljava/util/Map;
-
-
Constructor Details
-
VillagerGossips
public VillagerGossips()
-
-
Method Details
-
getEntityReputationAssociatedGossips
- Mappings:
Namespace Name Mixin selector official a
Lbov;a()Ljava/util/Map;
intermediary method_35120
Lnet/minecraft/class_4136;method_35120()Ljava/util/Map;
named getEntityReputationAssociatedGossips
Lnet/minecraft/village/VillagerGossips;getEntityReputationAssociatedGossips()Ljava/util/Map;
-
decay
public void decay()- Mappings:
Namespace Name Mixin selector official b
Lbov;b()V
intermediary method_20651
Lnet/minecraft/class_4136;method_20651()V
named decay
Lnet/minecraft/village/VillagerGossips;decay()V
-
entries
- Mappings:
Namespace Name Mixin selector official c
Lbov;c()Ljava/util/stream/Stream;
intermediary method_19074
Lnet/minecraft/class_4136;method_19074()Ljava/util/stream/Stream;
named entries
Lnet/minecraft/village/VillagerGossips;entries()Ljava/util/stream/Stream;
-
pickGossips
- Mappings:
Namespace Name Mixin selector official a
Lbov;a(Lapo;I)Ljava/util/Collection;
intermediary method_19070
Lnet/minecraft/class_4136;method_19070(Lnet/minecraft/class_5819;I)Ljava/util/Collection;
named pickGossips
Lnet/minecraft/village/VillagerGossips;pickGossips(Lnet/minecraft/util/math/random/Random;I)Ljava/util/Collection;
-
getReputationFor
- Mappings:
Namespace Name Mixin selector official a
Lbov;a(Ljava/util/UUID;)Lbov$a;
intermediary method_19071
Lnet/minecraft/class_4136;method_19071(Ljava/util/UUID;)Lnet/minecraft/class_4136$class_4137;
named getReputationFor
Lnet/minecraft/village/VillagerGossips;getReputationFor(Ljava/util/UUID;)Lnet/minecraft/village/VillagerGossips$Reputation;
-
getReputationFor
- Mappings:
Namespace Name Mixin selector official a
Lbov;a(Ljava/util/UUID;Ljava/util/function/Predicate;)I
intermediary method_19073
Lnet/minecraft/class_4136;method_19073(Ljava/util/UUID;Ljava/util/function/Predicate;)I
named getReputationFor
Lnet/minecraft/village/VillagerGossips;getReputationFor(Ljava/util/UUID;Ljava/util/function/Predicate;)I
-
getReputationCount
- Mappings:
Namespace Name Mixin selector official a
Lbov;a(Lbow;Ljava/util/function/DoublePredicate;)J
intermediary method_35122
Lnet/minecraft/class_4136;method_35122(Lnet/minecraft/class_4139;Ljava/util/function/DoublePredicate;)J
named getReputationCount
Lnet/minecraft/village/VillagerGossips;getReputationCount(Lnet/minecraft/village/VillageGossipType;Ljava/util/function/DoublePredicate;)J
-
startGossip
- Mappings:
Namespace Name Mixin selector official a
Lbov;a(Ljava/util/UUID;Lbow;I)V
intermediary method_19072
Lnet/minecraft/class_4136;method_19072(Ljava/util/UUID;Lnet/minecraft/class_4139;I)V
named startGossip
Lnet/minecraft/village/VillagerGossips;startGossip(Ljava/util/UUID;Lnet/minecraft/village/VillageGossipType;I)V
-
removeGossip
- Mappings:
Namespace Name Mixin selector official b
Lbov;b(Ljava/util/UUID;Lbow;I)V
intermediary method_35126
Lnet/minecraft/class_4136;method_35126(Ljava/util/UUID;Lnet/minecraft/class_4139;I)V
named removeGossip
Lnet/minecraft/village/VillagerGossips;removeGossip(Ljava/util/UUID;Lnet/minecraft/village/VillageGossipType;I)V
-
remove
- Mappings:
Namespace Name Mixin selector official a
Lbov;a(Ljava/util/UUID;Lbow;)V
intermediary method_35124
Lnet/minecraft/class_4136;method_35124(Ljava/util/UUID;Lnet/minecraft/class_4139;)V
named remove
Lnet/minecraft/village/VillagerGossips;remove(Ljava/util/UUID;Lnet/minecraft/village/VillageGossipType;)V
-
remove
- Mappings:
Namespace Name Mixin selector official a
Lbov;a(Lbow;)V
intermediary method_35121
Lnet/minecraft/class_4136;method_35121(Lnet/minecraft/class_4139;)V
named remove
Lnet/minecraft/village/VillagerGossips;remove(Lnet/minecraft/village/VillageGossipType;)V
-
serialize
public <T> T serialize(com.mojang.serialization.DynamicOps<T> ops) - Mappings:
Namespace Name Mixin selector official a
Lbov;a(Lcom/mojang/serialization/DynamicOps;)Ljava/lang/Object;
intermediary method_19067
Lnet/minecraft/class_4136;method_19067(Lcom/mojang/serialization/DynamicOps;)Ljava/lang/Object;
named serialize
Lnet/minecraft/village/VillagerGossips;serialize(Lcom/mojang/serialization/DynamicOps;)Ljava/lang/Object;
-
deserialize
public void deserialize(com.mojang.serialization.Dynamic<?> dynamic) - Mappings:
Namespace Name Mixin selector official a
Lbov;a(Lcom/mojang/serialization/Dynamic;)V
intermediary method_19066
Lnet/minecraft/class_4136;method_19066(Lcom/mojang/serialization/Dynamic;)V
named deserialize
Lnet/minecraft/village/VillagerGossips;deserialize(Lcom/mojang/serialization/Dynamic;)V
-
max
private static int max(int left, int right) - Mappings:
Namespace Name Mixin selector official a
Lbov;a(II)I
intermediary method_19059
Lnet/minecraft/class_4136;method_19059(II)I
named max
Lnet/minecraft/village/VillagerGossips;max(II)I
-
mergeReputation
- Mappings:
Namespace Name Mixin selector official a
Lbov;a(Lbow;II)I
intermediary method_19063
Lnet/minecraft/class_4136;method_19063(Lnet/minecraft/class_4139;II)I
named mergeReputation
Lnet/minecraft/village/VillagerGossips;mergeReputation(Lnet/minecraft/village/VillageGossipType;II)I
-