Record Class WorldLoader.DataLoadOutput<D>
java.lang.Object
java.lang.Record
net.minecraft.server.WorldLoader.DataLoadOutput<D>
- Enclosing class:
WorldLoader
public static record WorldLoader.DataLoadOutput<D>(D cookie, RegistryAccess.Frozen finalDimensions)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DThe field for thecookierecord component.private final RegistryAccess.FrozenThe field for thefinalDimensionsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDataLoadOutput(D cookie, RegistryAccess.Frozen finalDimensions) Creates an instance of aDataLoadOutputrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncookie()Returns the value of thecookierecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefinalDimensionsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
cookie
The field for thecookierecord component. -
finalDimensions
The field for thefinalDimensionsrecord component.
-
-
Constructor Details
-
DataLoadOutput
Creates an instance of aDataLoadOutputrecord class.- Parameters:
cookie- the value for thecookierecord componentfinalDimensions- the value for thefinalDimensionsrecord 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). -
cookie
Returns the value of thecookierecord component.- Returns:
- the value of the
cookierecord component
-
finalDimensions
Returns the value of thefinalDimensionsrecord component.- Returns:
- the value of the
finalDimensionsrecord component
-