public class RayTraceCheckSpawns extends java.lang.Object implements CheckSpawns
SpawnLocation
at the location of the block being looked at by the target, sets the location type
and then uses the selected spawner's selection algorithm to create all information.
It will comment on not looking at an acceptable block if the given block state predicate fails.
Modifier and Type | Field and Description |
---|---|
java.util.function.Predicate<net.minecraft.block.BlockState> |
isValidBlock
The condition that must be passed by the block being looked at by the target.
|
LocationType |
locationType
The
LocationType to set for the traced block. |
java.lang.String |
node
The permission node required to use this checkspawns.
|
Constructor and Description |
---|
RayTraceCheckSpawns(LocationType locationType,
java.util.function.Predicate<net.minecraft.block.BlockState> isValidBlock,
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 set for the traced block.public java.util.function.Predicate<net.minecraft.block.BlockState> isValidBlock
public RayTraceCheckSpawns(LocationType locationType, java.util.function.Predicate<net.minecraft.block.BlockState> isValidBlock, 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