Record Class Oxidizable
java.lang.Object
java.lang.Record
net.neoforged.neoforge.registries.datamaps.builtin.Oxidizable
- Record Components:
nextOxidationStage- the block that the key value will transform into when its oxidation stage changes
Data map value for oxidizable blocks allowing mods to easily register basic
oxidizing interactions for their blocks.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Oxidizable> private final BlockThe field for thenextOxidationStagerecord component.static final com.mojang.serialization.Codec<Oxidizable> -
Constructor Summary
ConstructorsConstructorDescriptionOxidizable(Block nextOxidationStage) Creates an instance of aOxidizablerecord class. -
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.Returns the value of thenextOxidationStagerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
nextOxidationStage
The field for thenextOxidationStagerecord component. -
OXIDIZABLE_CODEC
-
CODEC
-
-
Constructor Details
-
Oxidizable
Creates an instance of aOxidizablerecord class.- Parameters:
nextOxidationStage- the value for thenextOxidationStagerecord 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 withObjects::equals(Object,Object). -
nextOxidationStage
Returns the value of thenextOxidationStagerecord component.- Returns:
- the value of the
nextOxidationStagerecord component
-