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
ConstructorDescriptionComponentPreset(ClassicPlotManagerComponent component, String pattern, double cost, String permission, String displayName, List<String> description, com.sk89q.worldedit.world.item.ItemType icon)
-
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentPreset
deserialize(@NonNull Map<String,Object> map)
double
getCost()
com.sk89q.worldedit.world.item.ItemType
getIcon()
Creates a Map representation of this class.
-
Constructor Details
-
ComponentPreset
-
-
Method Details
-
deserialize
-
getComponent
-
getPattern
-
getCost
public double getCost() -
getPermission
-
getDisplayName
-
getDescription
-
getIcon
public com.sk89q.worldedit.world.item.ItemType 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
-