Record Class Waxable
java.lang.Object
java.lang.Record
net.neoforged.neoforge.registries.datamaps.builtin.Waxable
- Record Components:
waxed- The block that the key value will transform into when waxed with a honeycombgenerateBlockTransform- Whether aBlockTransformer.BlockTransformDatafor removing the wax should be generated automatically
Data map value for waxable blocks allowing mods to easily register basic
waxing interactions for their blocks.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Waxable> private final booleanThe field for thegenerateBlockTransformrecord component.private final BlockThe field for thewaxedrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thegenerateBlockTransformrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.waxed()Returns the value of thewaxedrecord component.
-
Field Details
-
waxed
-
generateBlockTransform
private final boolean generateBlockTransformThe field for thegenerateBlockTransformrecord component. -
CODEC
-
-
Constructor Details
-
Waxable
-
Waxable
Creates an instance of aWaxablerecord class.- Parameters:
waxed- the value for thewaxedrecord componentgenerateBlockTransform- the value for thegenerateBlockTransformrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
waxed
-
generateBlockTransform
public boolean generateBlockTransform()Returns the value of thegenerateBlockTransformrecord component.- Returns:
- the value of the
generateBlockTransformrecord component
-