public class GenericTriggerCheckSpawns extends java.lang.Object implements ICheckSpawns
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.
Created by Hiroku
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.ICommandSender 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, translate
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 ICheckSpawns
public void checkSpawns(AbstractSpawner spawner, net.minecraft.command.ICommandSender sender, java.util.List<java.lang.String> arguments)
ICheckSpawns
checkSpawns
in interface ICheckSpawns