Package com.plotsquared.core.components
Class ComponentPreset
java.lang.Object
com.plotsquared.core.components.ComponentPreset
- All Implemented Interfaces:
ConfigurationSerializable
A preset that can be used to set a component from
the component GUI
-
Constructor Summary
ConstructorsConstructorDescriptionComponentPreset
(ClassicPlotManagerComponent component, String pattern, double cost, String permission, String displayName, List<String> description, ItemType icon) -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentPreset
deserialize
(@NonNull Map<String, Object> map) double
getCost()
getIcon()
Creates a Map representation of this class.
-
Constructor Details
-
ComponentPreset
public ComponentPreset(ClassicPlotManagerComponent component, String pattern, double cost, String permission, String displayName, List<String> description, ItemType icon)
-
-
Method Details
-
deserialize
-
getComponent
-
getPattern
-
getCost
-
getPermission
-
getDisplayName
-
getDescription
-
getIcon
-
serialize
Description copied from interface:ConfigurationSerializable
Creates a Map representation of this class.This class must provide a method to restore this class, as defined in the
ConfigurationSerializable
interface javadoc.- Specified by:
serialize
in interfaceConfigurationSerializable
- Returns:
- Map containing the current state of this class
-