Package net.minecraft.server
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 SummaryFieldsModifier and TypeFieldDescriptionprivate final DThe field for thecookierecord component.private final RegistryAccess.FrozenThe field for thefinalDimensionsrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionDataLoadOutput(D cookie, RegistryAccess.Frozen finalDimensions) Creates an instance of aDataLoadOutputrecord class.
- 
Method SummaryModifier 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- 
cookieThe field for thecookierecord component.
- 
finalDimensionsThe field for thefinalDimensionsrecord component.
 
- 
- 
Constructor Details- 
DataLoadOutputCreates an instance of aDataLoadOutputrecord class.- Parameters:
- cookie- the value for the- cookierecord component
- finalDimensions- the value for the- finalDimensionsrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
cookieReturns the value of thecookierecord component.- Returns:
- the value of the cookierecord component
 
- 
finalDimensionsReturns the value of thefinalDimensionsrecord component.- Returns:
- the value of the finalDimensionsrecord component
 
 
-