Record Class BlockRegistry.Flammability
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.registry.BlockRegistry.Flammability
- Enclosing class:
BlockRegistry
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BlockRegistry.Flammability> -
Constructor Summary
ConstructorsConstructorDescriptionFlammability(int igniteOdds, int burnOdds) Creates an instance of aFlammabilityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintburnOdds()Returns the value of theburnOddsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theigniteOddsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
Flammability
public Flammability(int igniteOdds, int burnOdds) Creates an instance of aFlammabilityrecord class.- Parameters:
igniteOdds- the value for theigniteOddsrecord componentburnOdds- the value for theburnOddsrecord 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. -
igniteOdds
public int igniteOdds()Returns the value of theigniteOddsrecord component.- Returns:
- the value of the
igniteOddsrecord component
-
burnOdds
public int burnOdds()Returns the value of theburnOddsrecord component.- Returns:
- the value of the
burnOddsrecord component
-