@Retention(value=RUNTIME) @Target(value={TYPE,FIELD,CONSTRUCTOR,METHOD}) @Repeatable(value=MenuSlots.class) public @interface MenuSlot
InventoryMenuSlot
or simply at the class level.Modifier and Type | Optional Element and Description |
---|---|
int |
amount
The amount of the itemstack to display.
|
String[] |
compatMaterial
For compatibility with old Minecraft versions - a two String array {intended material name, fallback material
name} e.g.
|
org.bukkit.event.inventory.InventoryAction[] |
filter
Whitelist the allowed actions (empty = all allowed).
|
String |
lore
The lore of the inventory item, newline-delimited.
|
org.bukkit.Material |
material
The material to display (defaults to AIR).
|
char |
pat
For use with patterns.
|
int[] |
slot
The position of the slot within the inventory.
|
String |
title
The display name of the inventory item.
|
public abstract String[] compatMaterial
public abstract org.bukkit.event.inventory.InventoryAction[] filter
public abstract String lore
public abstract org.bukkit.Material material
InventoryMenuSlot
.public abstract String title
Copyright © 2021. All rights reserved.