Class GossipContainer

java.lang.Object
net.minecraft.world.entity.ai.gossip.GossipContainer

public class GossipContainer extends Object
  • Field Details

  • Constructor Details

    • GossipContainer

      public GossipContainer()
  • Method Details

    • getGossipEntries

      public Map<UUID,it.unimi.dsi.fastutil.objects.Object2IntMap<GossipType>> getGossipEntries()
    • decay

      public void decay()
    • unpack

    • selectGossipsForTransfer

      private Collection<GossipContainer.GossipEntry> selectGossipsForTransfer(RandomSource pRandom, int pAmount)
    • getOrCreate

      private GossipContainer.EntityGossips getOrCreate(UUID pIdentifier)
    • transferFrom

      public void transferFrom(GossipContainer pContainer, RandomSource pRandomSource, int pAmount)
    • getReputation

      public int getReputation(UUID pIdentifier, Predicate<GossipType> pGossip)
    • getCountForType

      public long getCountForType(GossipType pGossipType, DoublePredicate pGossipPredicate)
    • add

      public void add(UUID pIdentifier, GossipType pGossipType, int pGossipValue)
    • remove

      public void remove(UUID pIdentifier, GossipType pGossipType, int pGossipValue)
    • remove

      public void remove(UUID pIdentifier, GossipType pGossipType)
    • remove

      public void remove(GossipType pGossipType)
    • store

      public <T> T store(com.mojang.serialization.DynamicOps<T> p_262915_)
    • update

      public void update(com.mojang.serialization.Dynamic<?> p_26178_)
    • mergeValuesForTransfer

      private static int mergeValuesForTransfer(int p_26159_, int p_26160_)
      Returns the greater of two int values
    • mergeValuesForAddition

      private int mergeValuesForAddition(GossipType pGossipType, int pExisting, int pAdditive)