Class ItemUseSupport
java.lang.Object
dev.rono.igniscore.api.strategy.ItemUseSupport
Default item interaction resolution from YAML
behavior sections.
Extensions implement OnItemClickListener for custom behavior;
use this helper when composing behavior tokens with extension logic outside the default interface routing.
-
Method Summary
Modifier and TypeMethodDescriptionactionFor(ItemDefinition definition, IgnisInteraction interaction) Returns the configured behavior action token for a player interaction, if any.static booleantriggers(ItemDefinition definition, IgnisInteraction interaction) Returnstruewhen the interaction has a configured non-empty action token.
-
Method Details
-
actionFor
Returns the configured behavior action token for a player interaction, if any.- Parameters:
definition- item definition carrying behavior configinteraction- player interaction type- Returns:
- normalized action token, or empty when unset or
none
-
triggers
Returnstruewhen the interaction has a configured non-empty action token.
-