Package net.luckperms.api.metastacking
Interface MetaStackElement
public interface MetaStackElement
Represents an element within a
MetaStackDefinition.
The element itself does not contain any mutable state.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldAccumulate(@NonNull ChatMetaType type, @NonNull ChatMetaNode<?, ?> node, @Nullable ChatMetaNode<?, ?> current) Returns if the given node should be accumulated onto the stack.
-
Method Details
-
shouldAccumulate
boolean shouldAccumulate(@NonNull ChatMetaType type, @NonNull ChatMetaNode<?, ?> node, @Nullable ChatMetaNode<?, ?> current) Returns if the given node should be accumulated onto the stack.- Parameters:
type- the type of entry being accumulatednode- the node being consideredcurrent- the current value being used. If this returns true, the current value will be replaced by this entry- Returns:
- true if the node should be accumulated into this element, replacing the current value
-