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 p_217760_, int p_217761_)
    • getOrCreate

      private GossipContainer.EntityGossips getOrCreate(UUID p_26190_)
    • transferFrom

      public void transferFrom(GossipContainer p_217763_, RandomSource p_217764_, int p_217765_)
    • getReputation

      public int getReputation(UUID p_26196_, Predicate<GossipType> p_26197_)
    • getCountForType

      public long getCountForType(GossipType p_148163_, DoublePredicate p_148164_)
    • add

      public void add(UUID p_26192_, GossipType p_26193_, int p_26194_)
    • remove

      public void remove(UUID p_148176_, GossipType p_148177_, int p_148178_)
    • remove

      public void remove(UUID p_148169_, GossipType p_148170_)
    • remove

      public void remove(GossipType p_148161_)
    • store

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

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

      private static int mergeValuesForTransfer(int p_26159_, int p_26160_)
    • mergeValuesForAddition

      private int mergeValuesForAddition(GossipType p_26168_, int p_26169_, int p_26170_)