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.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanmodifyItem(org.bukkit.entity.Player p, UniversalObject object, List<net.kyori.adventure.text.Component> lore) Called when theWorldSelectordecides to display aUniversalObject
-
Method Details
-
modifyItem
boolean modifyItem(@Nonnull org.bukkit.entity.Player p, @Nonnull UniversalObject object, @Nonnull List<net.kyori.adventure.text.Component> lore) Called when theWorldSelectordecides to display aUniversalObject- Parameters:
p- thePlayerthat theWorldSelectoris open toobject- theUniversalObjectthat the item representslore- the lore of the item, fresh for modification- Returns:
- whether the item should be displayed
-