Package net.citizensnpcs.api.gui
Annotation Type MenuTransition
@Retention(RUNTIME)
@Target({TYPE,FIELD,CONSTRUCTOR,METHOD})
@Repeatable(MenuTransitions.class)
public @interface MenuTransition
Defines a menu transition to a new sub-menu. Can be linked to a
InventoryMenuTransition
or simply at the
class level.-
Required Element Summary
Modifier and TypeRequired ElementDescriptionClass
<? extends InventoryMenuPage> The next sub-menu class to transition to. -
Optional Element Summary
-
Element Details
-
filter
ClickType[] filterWhitelist the allowed clicktypes for transition (empty = all allowed).- Default:
{}
-
pat
char patFor use with patterns.- Default:
'0'
-
pos
int[] posThe position of the slot within the inventory.- Default:
{0, 0}
-
value
Class<? extends InventoryMenuPage> valueThe next sub-menu class to transition to.
-