Package net.minecraft.world.dimension
Record Class DimensionOptions
java.lang.Object
java.lang.Record
net.minecraft.world.dimension.DimensionOptions
- Record Components:
dimensionTypeEntry-chunkGenerator-
public record DimensionOptions(RegistryEntry<DimensionType> dimensionTypeEntry, ChunkGenerator chunkGenerator)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/dimension/DimensionOptionsintermediary net/minecraft/class_5363official dwznamed dimensionTypeEntryintermediary comp_1012official enamed chunkGeneratorintermediary comp_1013official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChunkGeneratorThe field for thechunkGeneratorrecord component.static final com.mojang.serialization.Codec<DimensionOptions> private final RegistryEntry<DimensionType> The field for thedimensionTypeEntryrecord component.static final RegistryKey<DimensionOptions> static final RegistryKey<DimensionOptions> static final RegistryKey<DimensionOptions> -
Constructor Summary
ConstructorsConstructorDescriptionDimensionOptions(RegistryEntry<DimensionType> dimensionTypeEntry, ChunkGenerator chunkGenerator) Creates an instance of aDimensionOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechunkGeneratorrecord component.Returns the value of thedimensionTypeEntryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
dimensionTypeEntry
The field for thedimensionTypeEntryrecord component. -
chunkGenerator
The field for thechunkGeneratorrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/dimension/DimensionOptions;CODEC:Lcom/mojang/serialization/Codec;intermediary field_25411Lnet/minecraft/class_5363;field_25411:Lcom/mojang/serialization/Codec;official aLdwz;a:Lcom/mojang/serialization/Codec;
-
OVERWORLD
- Mappings:
Namespace Name Mixin selector named OVERWORLDLnet/minecraft/world/dimension/DimensionOptions;OVERWORLD:Lnet/minecraft/registry/RegistryKey;intermediary field_25412Lnet/minecraft/class_5363;field_25412:Lnet/minecraft/class_5321;official bLdwz;b:Lakq;
-
NETHER
- Mappings:
Namespace Name Mixin selector named NETHERLnet/minecraft/world/dimension/DimensionOptions;NETHER:Lnet/minecraft/registry/RegistryKey;intermediary field_25413Lnet/minecraft/class_5363;field_25413:Lnet/minecraft/class_5321;official cLdwz;c:Lakq;
-
END
- Mappings:
Namespace Name Mixin selector named ENDLnet/minecraft/world/dimension/DimensionOptions;END:Lnet/minecraft/registry/RegistryKey;intermediary field_25414Lnet/minecraft/class_5363;field_25414:Lnet/minecraft/class_5321;official dLdwz;d:Lakq;
-
-
Constructor Details
-
DimensionOptions
public DimensionOptions(RegistryEntry<DimensionType> dimensionTypeEntry, ChunkGenerator chunkGenerator) Creates an instance of aDimensionOptionsrecord class.- Parameters:
dimensionTypeEntry- the value for thedimensionTypeEntryrecord componentchunkGenerator- the value for thechunkGeneratorrecord 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). -
dimensionTypeEntry
Returns the value of thedimensionTypeEntryrecord component.- Returns:
- the value of the
dimensionTypeEntryrecord component
-
chunkGenerator
Returns the value of thechunkGeneratorrecord component.- Returns:
- the value of the
chunkGeneratorrecord component
-