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 ComponentPresetdeserialize(@NonNull Map<String, Object> map) doublegetCost()getIcon()Creates a Map representation of this class.
-
Constructor Details
-
ComponentPreset
-
-
Method Details
-
deserialize
-
getComponent
-
getPattern
-
getCost
public double getCost() -
getPermission
-
getDisplayName
-
getDescription
-
getIcon
-
serialize
Description copied from interface:ConfigurationSerializableCreates a Map representation of this class.This class must provide a method to restore this class, as defined in the
ConfigurationSerializableinterface javadoc.- Specified by:
serializein interfaceConfigurationSerializable- Returns:
- Map containing the current state of this class
-