Record Class BlockPredicate.HasSturdyFace
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.BlockPredicate.HasSturdyFace
- All Implemented Interfaces:
Wrapper, BlockPredicate
- Enclosing interface:
BlockPredicate
@AsOf("2.3.0")
public static record BlockPredicate.HasSturdyFace(BlockVector offset, BlockFace direction)
extends Record
implements BlockPredicate
- Since:
- 2.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface BlockPredicate
BlockPredicate.AllOf, BlockPredicate.AnyOf, BlockPredicate.Factory, BlockPredicate.HasSturdyFace, BlockPredicate.InsideWorldBounds, BlockPredicate.MatchingBiomes, BlockPredicate.MatchingBlocks, BlockPredicate.MatchingBlockTag, BlockPredicate.MatchingFluids, BlockPredicate.Not, BlockPredicate.Replaceable, BlockPredicate.True, BlockPredicate.Unobstructed, BlockPredicate.WouldSurviveNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
Fields inherited from interface BlockPredicate
WIRE -
Constructor Summary
ConstructorsConstructorDescriptionHasSturdyFace(BlockVector offset, BlockFace direction) Creates an instance of aHasSturdyFacerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.offset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface BlockPredicate
toMinecraft
-
Constructor Details
-
HasSturdyFace
Creates an instance of aHasSturdyFacerecord class.- Parameters:
offset- the value for theoffsetrecord componentdirection- the value for thedirectionrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
offset
Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-