Record Class DataFixerHelper.BlockPosFixer
java.lang.Object
java.lang.Record
com.simibubi.create.foundation.utility.DataFixerHelper.BlockPosFixer
- Enclosing class:
DataFixerHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFunction<com.mojang.serialization.Dynamic<?>, com.mojang.serialization.Dynamic<?>> Returns the value of thecustomFixerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.com.mojang.datafixers.DSL.TypeReferenceReturns the value of thereferencerecord component.renames()Returns the value of therenamesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockPosFixer
public BlockPosFixer(com.mojang.datafixers.DSL.TypeReference reference, String id, Map<String, String> renames, Function<com.mojang.serialization.Dynamic<?>, com.mojang.serialization.Dynamic<?>> customFixer) Creates an instance of aBlockPosFixerrecord class.- Parameters:
reference- the value for thereferencerecord componentid- the value for theidrecord componentrenames- the value for therenamesrecord componentcustomFixer- the value for thecustomFixerrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
reference
public com.mojang.datafixers.DSL.TypeReference reference()Returns the value of thereferencerecord component.- Returns:
- the value of the
referencerecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
renames
Returns the value of therenamesrecord component.- Returns:
- the value of the
renamesrecord component
-
customFixer
public Function<com.mojang.serialization.Dynamic<?>,com.mojang.serialization.Dynamic<?>> customFixer()Returns the value of thecustomFixerrecord component.- Returns:
- the value of the
customFixerrecord component
-