Interface UpgradeShopLayoutHandler
public interface UpgradeShopLayoutHandler
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceUsed to pass information tobuild(OpenEvent)
- 
Method SummaryModifier and TypeMethodDescriptionGets called when layout is getting opened or when a player changed the page.default voidreadConfigProperties(ConfigurationSection section) Read the user-defined configurations from the layouts config file.default voidWrite the user-defined configurations into the layouts config file.
- 
Method Details- 
buildGets called when layout is getting opened or when a player changed the page.This method is being called on a separate thread! - Parameters:
- event- The event of it containing information
- Returns:
- The GUI that shall be shown to the player
 
- 
readConfigPropertiesRead the user-defined configurations from the layouts config file.- Parameters:
- section- The section that you previously added your configs into
- See Also:
 
- 
writeConfigPropertiesWrite the user-defined configurations into the layouts config file.Make sure to set the values as the values that were previously read using #readConfigs(ConfigurationSection) to make sure they stay with an update. If it hasn't been called before, set your default values. - Parameters:
- section- Write your stuff into this section
 
 
-