Class CommandSign
java.lang.Object
com.ryandw11.structure.api.structaddon.StructureSign
com.ryandw11.structure.schematic.structuresigns.CommandSign
The Command Structure Sign.
This structure sign is registered in the StructureSignHandler
constructor.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
onStructureSpawn(@NotNull org.bukkit.Location location, @NotNull Structure structure)
The method that is called when a structure is spawned.Methods inherited from class com.ryandw11.structure.api.structaddon.StructureSign
calculateRangedIntArgument, calculateRangedIntArgument, getDoubleArgument, getDoubleArgument, getIntArgument, getIntArgument, getRangedIntArgument, getRangedIntArgument, getSignRotation, getStringArgument, getStructureMaximumLocation, getStructureMinimumLocation, getStructureRotation, getStylizedIntArgument, hasArgument, initialize
-
Constructor Details
-
CommandSign
public CommandSign()
-
-
Method Details
-
onStructureSpawn
public boolean onStructureSpawn(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull Structure structure)Description copied from class:StructureSign
The method that is called when a structure is spawned.This method should be implemented by your implementation. Use the get...Argument methods to grab the arguments on the signs.
- Specified by:
onStructureSpawn
in classStructureSign
- Parameters:
location
- The location of the sign.structure
- The structure that was spawned.- Returns:
- True if the sign should be removed, false if it should stay.
-