Package fr.maxlego08.menu.api.button
Class DefaultButtonValue
java.lang.Object
fr.maxlego08.menu.api.button.DefaultButtonValue
Contains the default values of the button. Allows changes before the button is loaded.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFile()intgetPage()Gets the default page value.Gets the default playerHead value.intgetSlot()Gets the default slot value.getSlots()Gets the default list of slots.booleanGets the default closeInventory value.booleanGets the default isPermanent value.booleanGets the default refreshOnClick value.booleanisUpdate()Gets the default update value.booleanGets the default updateOnClick value.booleanvoidsetCloseInventory(boolean closeInventory) Sets the default closeInventory value.voidvoidsetPage(int page) Sets the default page value.voidsetPermanent(boolean permanent) Sets the default isPermanent value.voidsetPlayerHead(String playerHead) Sets the default playerHead value.voidsetRefreshOnClick(boolean refreshOnClick) Sets the default refreshOnClick value.voidsetSlot(int slot) Sets the default slot value.voidSets the default list of slots.voidsetUpdate(boolean update) Sets the default update value.voidsetUpdateOnClick(boolean updateOnClick) Sets the default updateOnClick value.voidsetUseCache(boolean useCache)
-
Constructor Details
-
DefaultButtonValue
public DefaultButtonValue()
-
-
Method Details
-
getFile
-
setFile
-
getSlot
public int getSlot()Gets the default slot value.- Returns:
- The default slot value.
-
setSlot
public void setSlot(int slot) Sets the default slot value.- Parameters:
slot- The default slot value to set.
-
getPage
public int getPage()Gets the default page value.- Returns:
- The default page value.
-
setPage
public void setPage(int page) Sets the default page value.- Parameters:
page- The default page value to set.
-
getSlots
Gets the default list of slots.- Returns:
- The default list of slots.
-
setSlots
Sets the default list of slots.- Parameters:
slots- The default list of slots to set.
-
isPermanent
public boolean isPermanent()Gets the default isPermanent value.- Returns:
- The default isPermanent value.
-
setPermanent
public void setPermanent(boolean permanent) Sets the default isPermanent value.- Parameters:
permanent- The default isPermanent value to set.
-
isUpdateOnClick
public boolean isUpdateOnClick()Gets the default updateOnClick value.- Returns:
- The default updateOnClick value.
-
setUpdateOnClick
public void setUpdateOnClick(boolean updateOnClick) Sets the default updateOnClick value.- Parameters:
updateOnClick- The default updateOnClick value to set.
-
isCloseInventory
public boolean isCloseInventory()Gets the default closeInventory value.- Returns:
- The default closeInventory value.
-
setCloseInventory
public void setCloseInventory(boolean closeInventory) Sets the default closeInventory value.- Parameters:
closeInventory- The default closeInventory value to set.
-
isUpdate
public boolean isUpdate()Gets the default update value.- Returns:
- The default update value.
-
setUpdate
public void setUpdate(boolean update) Sets the default update value.- Parameters:
update- The default update value to set.
-
isRefreshOnClick
public boolean isRefreshOnClick()Gets the default refreshOnClick value.- Returns:
- The default refreshOnClick value.
-
setRefreshOnClick
public void setRefreshOnClick(boolean refreshOnClick) Sets the default refreshOnClick value.- Parameters:
refreshOnClick- The default refreshOnClick value to set.
-
getPlayerHead
Gets the default playerHead value.- Returns:
- The default playerHead value.
-
setPlayerHead
Sets the default playerHead value.- Parameters:
playerHead- The default playerHead value to set.
-
isUseCache
public boolean isUseCache() -
setUseCache
public void setUseCache(boolean useCache)
-