public class XMLUtil extends Object
| Constructor and Description |
|---|
XMLUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
loadFieldAttribute(Object instance,
Element element,
Object value)
Sets a field from the given instance and element to the specified value
|
static Consumer<org.bukkit.event.inventory.InventoryClickEvent> |
loadOnClickAttribute(Object instance,
Element element,
String name)
Loads an onLocalClick consumer from the given instance and element
|
@Nullable @Contract(pure=true) public static Consumer<org.bukkit.event.inventory.InventoryClickEvent> loadOnClickAttribute(@NotNull Object instance, @NotNull Element element, @NotNull String name)
instance - the object instanceelement - the elementname - the name of the attributepublic static void loadFieldAttribute(@NotNull
Object instance,
@NotNull
Element element,
@Nullable
Object value)
instance - the class instance the field is located inelement - the element from which the field is specifiedvalue - the field's new valueCopyright © 2019. All rights reserved.