Class ButtonData
java.lang.Object
me.tayebyassine.homestead.gui.helpers.ButtonData
Holds the raw data for a single menu button: display name, lore lines, and item type.
Instances are created by MenuButtons and consumed by MenuItems to
produce the final ItemStack.
-
Constructor Summary
ConstructorsConstructorDescriptionButtonData(String name, List<String> lore, String type) Creates a new button data instance. -
Method Summary
Modifier and TypeMethodDescriptiongetLore()Returns the lore lines.getName()Returns the display name.Returns the raw type string as defined in the YAML.org.bukkit.MaterialgetType()Returns the resolvedMaterial, orMaterial.BARRIERif unresolvable.voidsetOriginalType(String type) Overrides the original type string and re-resolves theMaterial.
-
Constructor Details
-
ButtonData
-
-
Method Details
-
getName
Returns the display name. -
getLore
-
getOriginalType
Returns the raw type string as defined in the YAML. -
setOriginalType
Overrides the original type string and re-resolves theMaterial.- Parameters:
type- the new raw material type string
-
getType
public org.bukkit.Material getType()Returns the resolvedMaterial, orMaterial.BARRIERif unresolvable.
-