Record Class WorldDimensions
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.WorldDimensions
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final Set<ResourceKey<LevelStem>>static final com.mojang.serialization.MapCodec<WorldDimensions>The field for thedimensionsrecord component.private static final int
- 
Constructor SummaryConstructorsConstructorDescriptionWorldDimensions(Registry<LevelStem> dimensions) Creates an instance of aWorldDimensionsrecord class.
- 
Method SummaryModifier and TypeMethodDescription(package private) static com.mojang.serialization.LifecyclecheckStability(ResourceKey<LevelStem> p_250764_, LevelStem p_248865_) Returns the value of thedimensionsrecord component.final booleanIndicates whether some other object is "equal to" this one.get(ResourceKey<LevelStem> p_250824_) final inthashCode()Returns a hash code value for this object.booleanisDebug()private static booleanisStableEnd(LevelStem p_250720_) private static booleanisStableNether(LevelStem p_250497_) private static booleanisStableOverworld(LevelStem p_250762_) private static booleanisVanillaLike(ResourceKey<LevelStem> p_250556_, LevelStem p_250034_) static Stream<ResourceKey<LevelStem>>keysInOrder(Stream<ResourceKey<LevelStem>> p_251309_) com.google.common.collect.ImmutableSet<ResourceKey<Level>>levels()replaceOverworldGenerator(RegistryAccess p_251390_, ChunkGenerator p_248755_) private static PrimaryLevelData.SpecialWorldPropertyspecialWorldProperty(Registry<LevelStem> p_251549_) final StringtoString()Returns a string representation of this record class.withOverworld(Registry<DimensionType> p_248853_, Registry<LevelStem> p_251908_, ChunkGenerator p_251737_) withOverworld(Registry<LevelStem> p_248907_, Holder<DimensionType> p_251895_, ChunkGenerator p_250220_) 
- 
Field Details- 
dimensionsThe field for thedimensionsrecord component.
- 
CODEC
- 
BUILTIN_ORDER
- 
VANILLA_DIMENSION_COUNTprivate static final int VANILLA_DIMENSION_COUNT
 
- 
- 
Constructor Details- 
WorldDimensionsCreates an instance of aWorldDimensionsrecord class.- Parameters:
- dimensions- the value for the- dimensionsrecord component
 
 
- 
- 
Method Details- 
keysInOrder
- 
replaceOverworldGeneratorpublic WorldDimensions replaceOverworldGenerator(RegistryAccess p_251390_, ChunkGenerator p_248755_) 
- 
withOverworldpublic static Registry<LevelStem> withOverworld(Registry<DimensionType> p_248853_, Registry<LevelStem> p_251908_, ChunkGenerator p_251737_) 
- 
withOverworldpublic static Registry<LevelStem> withOverworld(Registry<LevelStem> p_248907_, Holder<DimensionType> p_251895_, ChunkGenerator p_250220_) 
- 
overworld
- 
get
- 
levels
- 
isDebugpublic boolean isDebug()
- 
specialWorldPropertyprivate static PrimaryLevelData.SpecialWorldProperty specialWorldProperty(Registry<LevelStem> p_251549_) 
- 
checkStabilitystatic com.mojang.serialization.Lifecycle checkStability(ResourceKey<LevelStem> p_250764_, LevelStem p_248865_) 
- 
isVanillaLike
- 
isStableOverworld
- 
isStableNether
- 
isStableEnd
- 
bake
- 
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).
- 
dimensionsReturns the value of thedimensionsrecord component.- Returns:
- the value of the dimensionsrecord component
 
 
-