public static enum TestForBlocksCommand.MatchMode extends Enum<TestForBlocksCommand.MatchMode>
Modifier and Type | Method and Description |
---|---|
static TestForBlocksCommand.MatchMode |
fromCommandName(String commandName)
Returns the MatchMode with a given subcommand name, or null if none match.
|
String |
getCommandName() |
abstract boolean |
isFiltered(GlowBlock fromBlock)
Whether the source region's block is filtered from matching.
|
boolean |
matches(GlowBlock fromBlock,
GlowBlock toBlock)
Whether the block from the source region matches the block from the destination region.
|
static TestForBlocksCommand.MatchMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TestForBlocksCommand.MatchMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TestForBlocksCommand.MatchMode ALL
public static final TestForBlocksCommand.MatchMode MASKED
public static TestForBlocksCommand.MatchMode[] values()
for (TestForBlocksCommand.MatchMode c : TestForBlocksCommand.MatchMode.values()) System.out.println(c);
public static TestForBlocksCommand.MatchMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static TestForBlocksCommand.MatchMode fromCommandName(String commandName)
commandName
- the subcommand name to look up.public abstract boolean isFiltered(GlowBlock fromBlock)
fromBlock
- The block in the source region.public boolean matches(GlowBlock fromBlock, GlowBlock toBlock)
fromBlock
- The block from the source region.toBlock
- The block from the destination region.public String getCommandName()
Copyright © 2021. All rights reserved.