Interface RuleTest
- All Superinterfaces:
Wrapper
- All Known Implementing Classes:
RuleTest.AlwaysTrue, RuleTest.BlockMatch, RuleTest.BlockStateMatch, RuleTest.RandomBlockMatch, RuleTest.RandomBlockStateMatch, RuleTest.TagMatch
@NullMarked
@AsOf("2.3.0")
public sealed interface RuleTest
extends Wrapper
permits RuleTest.AlwaysTrue, RuleTest.BlockMatch, RuleTest.BlockStateMatch, RuleTest.TagMatch, RuleTest.RandomBlockMatch, RuleTest.RandomBlockStateMatch
Wraps Minecraft's RuleTest family, the block-match predicates used by ore and
replace-block configurations.
- Since:
- 2.3.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final recordstatic final recordstatic interfacestatic final recordstatic final recordstatic final recordNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic RuleTeststatic RuleTestblockMatch(Material block) static RuleTestblockStateMatch(BlockData state) static RuleTestrandomBlockMatch(Material block, float probability) static RuleTestrandomBlockStateMatch(BlockData state, float probability) static RuleTestdefault ObjectConvert this handle to the real Minecraft object.
-
Field Details
-
WIRE
-
-
Method Details
-
alwaysTrue
-
blockMatch
-
blockStateMatch
-
tagMatch
-
randomBlockMatch
-
randomBlockStateMatch
-
toMinecraft
Description copied from interface:WrapperConvert this handle to the real Minecraft object.- Specified by:
toMinecraftin interfaceWrapper- Returns:
- the real Minecraft object
-