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 aModBlockVeinProperties
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
count()
Returns the value of thecount
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
maxY()
Returns the value of themaxY
record component.int
minY()
Returns the value of theminY
record component.final String
toString()
Returns a string representation of this record class.int
veinSize()
Returns the value of theveinSize
record component.
-
Constructor Details
-
ModBlockVeinProperties
public ModBlockVeinProperties(int veinSize, int minY, int maxY, int count) Creates an instance of aModBlockVeinProperties
record class.- Parameters:
veinSize
- the value for theveinSize
record componentminY
- the value for theminY
record componentmaxY
- the value for themaxY
record componentcount
- the value for thecount
record 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 thecompare
method from their corresponding wrapper classes. -
veinSize
public int veinSize()Returns the value of theveinSize
record component.- Returns:
- the value of the
veinSize
record component
-
minY
public int minY()Returns the value of theminY
record component.- Returns:
- the value of the
minY
record component
-
maxY
public int maxY()Returns the value of themaxY
record component.- Returns:
- the value of the
maxY
record component
-
count
public int count()Returns the value of thecount
record component.- Returns:
- the value of the
count
record component
-