Interface WorldSelector.ItemModifier

Enclosing class:
WorldSelector
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface WorldSelector.ItemModifier
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    modifyItem(org.bukkit.entity.Player p, UniversalObject object, List<net.kyori.adventure.text.Component> lore)
    Called when the WorldSelector decides to display a UniversalObject
  • Method Details

    • modifyItem

      boolean modifyItem(@Nonnull org.bukkit.entity.Player p, @Nonnull UniversalObject object, @Nonnull List<net.kyori.adventure.text.Component> lore)
      Called when the WorldSelector decides to display a UniversalObject
      Parameters:
      p - the Player that the WorldSelector is open to
      object - the UniversalObject that the item represents
      lore - the lore of the item, fresh for modification
      Returns:
      whether the item should be displayed