Record Class WorldDimensions
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.WorldDimensions
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private static final Set<ResourceKey<LevelStem>>
static final com.mojang.serialization.MapCodec<WorldDimensions>
dimensions
记录组件的字段。private static final int
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明(专用程序包) static com.mojang.serialization.Lifecycle
checkStability
(ResourceKey<LevelStem> pKey, LevelStem pStem) 返回dimensions
记录组件的值。final boolean
指示某个其他对象是否“等于”此对象。get
(ResourceKey<LevelStem> pStemKey) final int
hashCode()
返回此对象的哈希代码值。boolean
isDebug()
private static boolean
isStableEnd
(LevelStem pLevelStem) private static boolean
isStableNether
(LevelStem pLevelStem) private static boolean
isStableOverworld
(LevelStem pLevelStem) private static boolean
isVanillaLike
(ResourceKey<LevelStem> pKey, LevelStem pStem) static Stream<ResourceKey<LevelStem>>
keysInOrder
(Stream<ResourceKey<LevelStem>> pStemKeys) com.google.common.collect.ImmutableSet<ResourceKey<Level>>
levels()
replaceOverworldGenerator
(RegistryAccess pRegistryAccess, ChunkGenerator pChunkGenerator) private static PrimaryLevelData.SpecialWorldProperty
specialWorldProperty
(Registry<LevelStem> pStemRegistry) final String
toString()
返回此记录的字符串表示形式。withOverworld
(Registry<DimensionType> pDimensionTypeRegistry, Registry<LevelStem> pStemRegistry, ChunkGenerator pChunkGenerator) withOverworld
(Registry<LevelStem> pStemRegistry, Holder<DimensionType> pDimensionType, ChunkGenerator pChunkGenerator)
-
字段详细资料
-
dimensions
dimensions
记录组件的字段。 -
CODEC
-
BUILTIN_ORDER
-
VANILLA_DIMENSION_COUNT
private static final int VANILLA_DIMENSION_COUNT
-
-
构造器详细资料
-
WorldDimensions
创建WorldDimensions
记录的实例。- 参数:
dimensions
-dimensions
记录组件的值
-
-
方法详细资料
-
keysInOrder
-
replaceOverworldGenerator
public WorldDimensions replaceOverworldGenerator(RegistryAccess pRegistryAccess, ChunkGenerator pChunkGenerator) -
withOverworld
public static Registry<LevelStem> withOverworld(Registry<DimensionType> pDimensionTypeRegistry, Registry<LevelStem> pStemRegistry, ChunkGenerator pChunkGenerator) -
withOverworld
public static Registry<LevelStem> withOverworld(Registry<LevelStem> pStemRegistry, Holder<DimensionType> pDimensionType, ChunkGenerator pChunkGenerator) -
overworld
-
get
-
levels
-
isDebug
public boolean isDebug() -
specialWorldProperty
private static PrimaryLevelData.SpecialWorldProperty specialWorldProperty(Registry<LevelStem> pStemRegistry) -
checkStability
static com.mojang.serialization.Lifecycle checkStability(ResourceKey<LevelStem> pKey, LevelStem pStem) -
isVanillaLike
-
isStableOverworld
-
isStableNether
-
isStableEnd
-
bake
-
toString
返回此记录的字符串表示形式。此表示形式包含类型的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录中的所有组件都使用Objects::equals(Object,Object)
进行比较。 -
dimensions
返回dimensions
记录组件的值。- 返回:
dimensions
记录组件的值
-