Package net.minecraft.util.datafix.fixes
Record Class StructuresBecomeConfiguredFix.Conversion
java.lang.Object
java.lang.Record
net.minecraft.util.datafix.fixes.StructuresBecomeConfiguredFix.Conversion
- Enclosing class:
- StructuresBecomeConfiguredFix
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConversion
(Map<String, String> biomeMapping, String fallback) Creates an instance of aConversion
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebiomeMapping
record component.final boolean
Indicates whether some other object is "equal to" this one.fallback()
Returns the value of thefallback
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
biomeMapping
The field for thebiomeMapping
record component. -
fallback
The field for thefallback
record component.
-
-
Constructor Details
-
Conversion
Creates an instance of aConversion
record class.- Parameters:
biomeMapping
- the value for thebiomeMapping
record componentfallback
- the value for thefallback
record component
-
-
Method Details
-
trivial
-
biomeMapped
-
unpack
-
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)
. -
biomeMapping
Returns the value of thebiomeMapping
record component.- Returns:
- the value of the
biomeMapping
record component
-
fallback
Returns the value of thefallback
record component.- Returns:
- the value of the
fallback
record component
-