Record Class DimensionPadding
java.lang.Object
java.lang.Record
dev.wyck.worldgen.structure.pools.DimensionPadding
- Record Components:
bottom- blocks kept clear above the dimension floortop- blocks kept clear below the dimension ceiling
Blocks of clearance a jigsaw structure keeps from the bottom and top of the dimension.
- Since:
- 3.4.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDimensionPadding(int bottom, int top) Creates an instance of aDimensionPaddingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbottom()Returns the value of thebottomrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static DimensionPaddingof(int padding) Creates padding that is the same at the bottom and top.static DimensionPaddingof(int bottom, int top) Creates padding.inttop()Returns the value of thetoprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ZERO
-
-
Constructor Details
-
DimensionPadding
-
-
Method Details
-
of
Creates padding that is the same at the bottom and top.- Parameters:
padding- blocks kept clear at both ends- Returns:
- the padding
- Since:
- 3.4.0
-
of
Creates padding.- Parameters:
bottom- blocks kept clear above the dimension floortop- blocks kept clear below the dimension ceiling- Returns:
- the padding
- Since:
- 3.4.0
-
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. -
bottom
-
top
-