public class GenericTriggerCheckSpawns extends java.lang.Object implements CheckSpawns
LocationType
. It creates a SpawnLocation
at the target's position, sets the location type and then uses the selected spawner's selection
algorithm to create all information.Modifier and Type | Field and Description |
---|---|
LocationType |
locationType
The
LocationType to use for the SpawnLocation . |
java.lang.String |
node
The permission node required to use this checkspawns.
|
Constructor and Description |
---|
GenericTriggerCheckSpawns(LocationType locationType,
java.lang.String node) |
Modifier and Type | Method and Description |
---|---|
void |
checkSpawns(AbstractSpawner spawner,
net.minecraft.command.CommandSource sender,
java.util.List<java.lang.String> arguments)
Executes /checkspawns directly from the command.
|
java.lang.String |
getPermissionNode() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateMessages, getDefault
public java.lang.String node
public LocationType locationType
LocationType
to use for the SpawnLocation
.public GenericTriggerCheckSpawns(LocationType locationType, java.lang.String node)
public java.lang.String getPermissionNode()
getPermissionNode
in interface CheckSpawns
public void checkSpawns(AbstractSpawner spawner, net.minecraft.command.CommandSource sender, java.util.List<java.lang.String> arguments)
CheckSpawns
checkSpawns
in interface CheckSpawns