Record Class Spread
java.lang.Object
java.lang.Record
fr.robie.machineengine.api.resource.fluid.Spread
- Record Components:
ticks- ticks per spreading step, 5 (water) or more: a fluid can't spread faster than the water that carries itrange- how many blocks it flows from a source on flat ground, 1 to 7 (water: 7)
How a placed fluid spreads, compared with water.
-
Field Summary
Fields -
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.intrange()Returns the value of therangerecord component.intticks()Returns the value of theticksrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
WATER
-
-
Constructor Details
-
Spread
-
-
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. -
ticks
-
range
-