Interface WouldSurvivePredicate
- All Superinterfaces:
BlockPredicate, Wrapper
Checks if the specified block state would be a valid placement at the given offset.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.static WouldSurvivePredicateCreates a new would survive predicate with a zero offset.static WouldSurvivePredicateCreates a new would survive predicate with a zero offset.static WouldSurvivePredicateof(BlockVector offset, BlockData state) Creates a new would survive predicate.static WouldSurvivePredicateof(BlockVector offset, Material material) Creates a new would survive predicate.offset()The offset from the block to check.state()The block state to test for survival.default WouldSurvivePredicate.BuilderConverts this object back to a builder.Methods inherited from interface BlockPredicate
notMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
offset
The offset from the block to check.- Returns:
- the offset
- Since:
- 3.0.0
-
state
-
toBuilder
Converts this object back to a builder.- Returns:
- a builder with the same values as this object
- Since:
- 3.0.0
-
of
Creates a new would survive predicate.- Parameters:
offset- the offsetstate- the block state to test- Returns:
- the would survive predicate
- Since:
- 3.0.0
-
of
Creates a new would survive predicate with a zero offset.- Parameters:
state- the block state to test- Returns:
- the would survive predicate
- Since:
- 3.0.0
-
of
Creates a new would survive predicate.- Parameters:
offset- the offsetmaterial- the material to test- Returns:
- the would survive predicate
- Since:
- 3.0.0
-
of
Creates a new would survive predicate with a zero offset.- Parameters:
material- the material to test- Returns:
- the would survive predicate
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-