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/DimensionOptions
intermediary net/minecraft/class_5363
official dvw
named dimensionTypeEntry
intermediary comp_1012
official e
named chunkGenerator
intermediary comp_1013
official f
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ChunkGenerator
The field for thechunkGenerator
record component.static final com.mojang.serialization.Codec
<DimensionOptions> private final RegistryEntry
<DimensionType> The field for thedimensionTypeEntry
record component.static final RegistryKey
<DimensionOptions> static final RegistryKey
<DimensionOptions> static final RegistryKey
<DimensionOptions> -
Constructor Summary
ConstructorDescriptionDimensionOptions
(RegistryEntry<DimensionType> dimensionTypeEntry, ChunkGenerator chunkGenerator) Creates an instance of aDimensionOptions
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechunkGenerator
record component.Returns the value of thedimensionTypeEntry
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
dimensionTypeEntry
The field for thedimensionTypeEntry
record component. -
chunkGenerator
The field for thechunkGenerator
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/world/dimension/DimensionOptions;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_25411
Lnet/minecraft/class_5363;field_25411:Lcom/mojang/serialization/Codec;
official a
Ldvw;a:Lcom/mojang/serialization/Codec;
-
OVERWORLD
- Mappings:
Namespace Name Mixin selector named OVERWORLD
Lnet/minecraft/world/dimension/DimensionOptions;OVERWORLD:Lnet/minecraft/registry/RegistryKey;
intermediary field_25412
Lnet/minecraft/class_5363;field_25412:Lnet/minecraft/class_5321;
official b
Ldvw;b:Lale;
-
NETHER
- Mappings:
Namespace Name Mixin selector named NETHER
Lnet/minecraft/world/dimension/DimensionOptions;NETHER:Lnet/minecraft/registry/RegistryKey;
intermediary field_25413
Lnet/minecraft/class_5363;field_25413:Lnet/minecraft/class_5321;
official c
Ldvw;c:Lale;
-
END
- Mappings:
Namespace Name Mixin selector named END
Lnet/minecraft/world/dimension/DimensionOptions;END:Lnet/minecraft/registry/RegistryKey;
intermediary field_25414
Lnet/minecraft/class_5363;field_25414:Lnet/minecraft/class_5321;
official d
Ldvw;d:Lale;
-
-
Constructor Details
-
DimensionOptions
public DimensionOptions(RegistryEntry<DimensionType> dimensionTypeEntry, ChunkGenerator chunkGenerator) Creates an instance of aDimensionOptions
record class.- Parameters:
dimensionTypeEntry
- the value for thedimensionTypeEntry
record componentchunkGenerator
- the value for thechunkGenerator
record 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 thedimensionTypeEntry
record component.- Returns:
- the value of the
dimensionTypeEntry
record component
-
chunkGenerator
Returns the value of thechunkGenerator
record component.- Returns:
- the value of the
chunkGenerator
record component
-