Class MetaAccumulator

java.lang.Object
me.lucko.luckperms.common.cacheddata.type.MetaAccumulator

public class MetaAccumulator extends Object
Holds temporary mutable meta whilst this object is passed up the inheritance tree to accumulate meta from parents
  • Constructor Details

    • MetaAccumulator

      public MetaAccumulator(net.luckperms.api.metastacking.MetaStackDefinition prefixDefinition, net.luckperms.api.metastacking.MetaStackDefinition suffixDefinition)
  • Method Details

    • makeFromConfig

      public static MetaAccumulator makeFromConfig(LuckPermsPlugin plugin)
    • complete

      public void complete()
      "Completes" the accumulator, preventing any further changes. Also performs some final processing on the accumulators state, before data is read.
    • accumulateNode

      public void accumulateNode(net.luckperms.api.node.Node n)
    • accumulateWeight

      public void accumulateWeight(IntegerResult<net.luckperms.api.node.types.WeightNode> weight)
    • setPrimaryGroup

      public void setPrimaryGroup(String primaryGroup)
    • getMeta

      public com.google.common.collect.ListMultimap<String,StringResult<net.luckperms.api.node.types.MetaNode>> getMeta()
    • getChatMeta

      public Map<Integer,? extends StringResult<? extends net.luckperms.api.node.types.ChatMetaNode<?,?>>> getChatMeta(net.luckperms.api.node.ChatMetaType type)
    • getPrefixes

      public SortedMap<Integer,StringResult<net.luckperms.api.node.types.PrefixNode>> getPrefixes()
    • getSuffixes

      public SortedMap<Integer,StringResult<net.luckperms.api.node.types.SuffixNode>> getSuffixes()
    • getWeight

      public IntegerResult<net.luckperms.api.node.types.WeightNode> getWeight()
    • getPrimaryGroup

      public String getPrimaryGroup()
    • getPrefixDefinition

      public net.luckperms.api.metastacking.MetaStackDefinition getPrefixDefinition()
    • getSuffixDefinition

      public net.luckperms.api.metastacking.MetaStackDefinition getSuffixDefinition()
    • getPrefix

      public StringResult<net.luckperms.api.node.types.PrefixNode> getPrefix()
    • getSuffix

      public StringResult<net.luckperms.api.node.types.SuffixNode> getSuffix()
    • toString

      public String toString()
      Overrides:
      toString in class Object