Record Class ModOresUtils.ModBlockVeinProperties
java.lang.Object
java.lang.Record
com.rgerva.dbr.util.ModOresUtils.ModBlockVeinProperties
- Enclosing class:
ModOresUtils
public static record ModOresUtils.ModBlockVeinProperties(int veinSize, int minY, int maxY, int count)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionModBlockVeinProperties(int veinSize, int minY, int maxY, int count) Creates an instance of aModBlockVeinPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmaxY()Returns the value of themaxYrecord component.intminY()Returns the value of theminYrecord component.final StringtoString()Returns a string representation of this record class.intveinSize()Returns the value of theveinSizerecord component.
-
Constructor Details
-
ModBlockVeinProperties
public ModBlockVeinProperties(int veinSize, int minY, int maxY, int count) Creates an instance of aModBlockVeinPropertiesrecord class.- Parameters:
veinSize- the value for theveinSizerecord componentminY- the value for theminYrecord componentmaxY- the value for themaxYrecord componentcount- the value for thecountrecord 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. -
veinSize
public int veinSize()Returns the value of theveinSizerecord component.- Returns:
- the value of the
veinSizerecord component
-
minY
public int minY()Returns the value of theminYrecord component.- Returns:
- the value of the
minYrecord component
-
maxY
public int maxY()Returns the value of themaxYrecord component.- Returns:
- the value of the
maxYrecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-