Class
Link to class
ZenScript Copyimport mods.roots.predicates.StatePredicate;
Methods
Link to methods
ZenScript CopyStatePredicate create(
IBlockState state // description of a blockstate against which only blocks themselves (and not state properties) will be compared
);
Creates an IPredicate where the state is stored, and is matched against other states purely by ensuring that they are of the same block, ignoring any property values.
Examples
Link to examples
ZenScript Copyimport mods.roots.predicates.StatePredicate;
StatePredicate.create(<blockstate:minecraft:cobblestone>);
Notes
Link to notes
Simply matches blocks between states, ignoring any property values.