Package com.plotsquared.core.events
Class PlotComponentSetEvent
java.lang.Object
com.plotsquared.core.events.PlotEvent
com.plotsquared.core.events.PlotComponentSetEvent
Called when a plot component is set
-
Constructor Summary
ConstructorsConstructorDescriptionPlotComponentSetEvent(Plot plot, String component, com.sk89q.worldedit.function.pattern.Pattern pattern) PlotComponentSetEvent: Called when a player attempts to set the component of a plot (e.g. -
Method Summary
Modifier and TypeMethodDescriptionGet the component which was setcom.sk89q.worldedit.function.pattern.PatternGet the pattern being setGet the PlotIdgetWorld()Get the world namevoidsetComponent(String component) Change the component being setvoidsetPattern(com.sk89q.worldedit.function.pattern.Pattern pattern) Change the pattern being setMethods inherited from class com.plotsquared.core.events.PlotEvent
getEventName, getPlot
-
Constructor Details
-
PlotComponentSetEvent
public PlotComponentSetEvent(Plot plot, String component, com.sk89q.worldedit.function.pattern.Pattern pattern) PlotComponentSetEvent: Called when a player attempts to set the component of a plot (e.g. walls)- Parameters:
plot- The plot having its component setcomponent- The component being setpattern- The pattern the component is being set to
-
-
Method Details
-
getPlotId
Get the PlotId- Returns:
- PlotId
-
getWorld
Get the world name- Returns:
- String
-
getComponent
Get the component which was set- Returns:
- Component name
-
setComponent
Change the component being set- Parameters:
component- the component to set
-
getPattern
Get the pattern being set- Returns:
- Pattern
-
setPattern
Change the pattern being set- Parameters:
pattern- the pattern to set
-