Class GossipManager


  • public class GossipManager
    extends java.lang.Object
    • Constructor Detail

      • GossipManager

        public GossipManager()
    • Method Detail

      • decay

        public void decay()
      • selectGossipsForTransfer

        private java.util.Collection<GossipManager.GossipEntry> selectGossipsForTransfer​(java.util.Random p_220920_1_,
                                                                                         int p_220920_2_)
      • 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_)