Enum Class BlockStatePredicate.Simple
java.lang.Object
java.lang.Enum<BlockStatePredicate.Simple>
dev.latvian.mods.kubejs.block.state.BlockStatePredicate.Simple
- All Implemented Interfaces:
BlockStatePredicate,ReplacementMatch,Serializable,Comparable<BlockStatePredicate.Simple>,Constable,Predicate<net.minecraft.world.level.block.state.BlockState>
- Enclosing interface:
BlockStatePredicate
public static enum BlockStatePredicate.Simple
extends Enum<BlockStatePredicate.Simple>
implements BlockStatePredicate
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface dev.latvian.mods.kubejs.block.state.BlockStatePredicate
BlockStatePredicate.AndMatch, BlockStatePredicate.BlockMatch, BlockStatePredicate.NotMatch, BlockStatePredicate.OrMatch, BlockStatePredicate.RegexMatch, BlockStatePredicate.Simple, BlockStatePredicate.StateMatch, BlockStatePredicate.TagMatch -
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface dev.latvian.mods.kubejs.recipe.match.ReplacementMatch
NONE -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.levelgen.structure.templatesystem.RuleTestCollection<net.minecraft.world.level.block.state.BlockState> booleantest(net.minecraft.world.level.block.state.BlockState state) booleantestBlock(net.minecraft.world.level.block.Block block) static BlockStatePredicate.SimpleReturns the enum constant of this class with the specified name.static BlockStatePredicate.Simple[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface dev.latvian.mods.kubejs.block.state.BlockStatePredicate
check, getBlockIds, getBlocks
-
Enum Constant Details
-
ALL
-
NONE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
test
public boolean test(net.minecraft.world.level.block.state.BlockState state) - Specified by:
testin interfaceBlockStatePredicate- Specified by:
testin interfacePredicate<net.minecraft.world.level.block.state.BlockState>
-
testBlock
public boolean testBlock(net.minecraft.world.level.block.Block block) - Specified by:
testBlockin interfaceBlockStatePredicate
-
asRuleTest
public net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest asRuleTest()- Specified by:
asRuleTestin interfaceBlockStatePredicate
-
getBlockStates
- Specified by:
getBlockStatesin interfaceBlockStatePredicate
-