Record Class VerticalAnchor.Absolute
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.valueproviders.VerticalAnchor.Absolute
- All Implemented Interfaces:
Wrapper, VerticalAnchor
- Enclosing interface:
VerticalAnchor
@AsOf("2.3.0")
public static record VerticalAnchor.Absolute(int y)
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.final StringtoString()Returns a string representation of this record class.inty()Returns the value of theyrecord component.Methods inherited from interface VerticalAnchor
toMinecraft
-
Constructor Details
-
Absolute
public Absolute(int y) Creates an instance of aAbsoluterecord class.- Parameters:
y- the value for theyrecord 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. -
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-