Record Class VerticalAnchor.AboveBottom
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.valueproviders.VerticalAnchor.AboveBottom
- All Implemented Interfaces:
Wrapper, VerticalAnchor
- Enclosing interface:
VerticalAnchor
@AsOf("2.3.0")
public static record VerticalAnchor.AboveBottom(int offset)
extends Record
implements VerticalAnchor
- Since:
- 2.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface VerticalAnchor
VerticalAnchor.AboveBottom, VerticalAnchor.Absolute, VerticalAnchor.BelowTop, VerticalAnchor.FactoryNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
Fields inherited from interface VerticalAnchor
WIRE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intoffset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface VerticalAnchor
toMinecraft
-
Constructor Details
-
AboveBottom
public AboveBottom(int offset) Creates an instance of aAboveBottomrecord class.- Parameters:
offset- the value for theoffsetrecord 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 with thecomparemethod from their corresponding wrapper classes. -
offset
public int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-