类 GeneratorOptions
- java.lang.Object
-
- net.minecraft.world.gen.GeneratorOptions
-
public class GeneratorOptions extends Object
- Mappings:
Namespace Name official cpfintermediary net/minecraft/class_5285named net/minecraft/world/gen/GeneratorOptions
-
-
字段概要
字段 修饰符和类型 字段 说明 private booleanbonusCheststatic com.mojang.serialization.Codec<GeneratorOptions>CODECprivate booleangenerateStructuresprivate Optional<String>legacyCustomOptionsprivate static LoggerLOGGERprivate SimpleRegistry<DimensionOptions>optionsprivate longseed
-
构造器概要
构造器 限定符 构造器 说明 GeneratorOptions(long seed, boolean generateStructures, boolean bonusChest, SimpleRegistry<DimensionOptions> options)privateGeneratorOptions(long seed, boolean generateStructures, boolean bonusChest, SimpleRegistry<DimensionOptions> options, Optional<String> legacyCustomOptions)
-
方法概要
-
-
-
字段详细资料
-
CODEC
public static final com.mojang.serialization.Codec<GeneratorOptions> CODEC
- Mappings:
Namespace Name Mixin selector official aLcpf;a:Lcom/mojang/serialization/Codec;intermediary field_24826Lnet/minecraft/class_5285;field_24826:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/GeneratorOptions;CODEC:Lcom/mojang/serialization/Codec;
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official bLcpf;b:Lorg/apache/logging/log4j/Logger;intermediary field_24525Lnet/minecraft/class_5285;field_24525:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/world/gen/GeneratorOptions;LOGGER:Lorg/apache/logging/log4j/Logger;
-
seed
private final long seed
- Mappings:
Namespace Name Mixin selector official cLcpf;c:Jintermediary field_24526Lnet/minecraft/class_5285;field_24526:Jnamed seedLnet/minecraft/world/gen/GeneratorOptions;seed:J
-
generateStructures
private final boolean generateStructures
- Mappings:
Namespace Name Mixin selector official dLcpf;d:Zintermediary field_24527Lnet/minecraft/class_5285;field_24527:Znamed generateStructuresLnet/minecraft/world/gen/GeneratorOptions;generateStructures:Z
-
bonusChest
private final boolean bonusChest
- Mappings:
Namespace Name Mixin selector official eLcpf;e:Zintermediary field_24528Lnet/minecraft/class_5285;field_24528:Znamed bonusChestLnet/minecraft/world/gen/GeneratorOptions;bonusChest:Z
-
options
private final SimpleRegistry<DimensionOptions> options
- Mappings:
Namespace Name Mixin selector official fLcpf;f:Lgm;intermediary field_24827Lnet/minecraft/class_5285;field_24827:Lnet/minecraft/class_2370;named optionsLnet/minecraft/world/gen/GeneratorOptions;options:Lnet/minecraft/util/registry/SimpleRegistry;
-
legacyCustomOptions
private final Optional<String> legacyCustomOptions
- Mappings:
Namespace Name Mixin selector official gLcpf;g:Ljava/util/Optional;intermediary field_24532Lnet/minecraft/class_5285;field_24532:Ljava/util/Optional;named legacyCustomOptionsLnet/minecraft/world/gen/GeneratorOptions;legacyCustomOptions:Ljava/util/Optional;
-
-
构造器详细资料
-
GeneratorOptions
public GeneratorOptions(long seed, boolean generateStructures, boolean bonusChest, SimpleRegistry<DimensionOptions> options)- Mappings:
Namespace Name Mixin selector official <init>Lcpf;<init>(JZZLgm;)Vintermediary <init>Lnet/minecraft/class_5285;<init>(JZZLnet/minecraft/class_2370;)Vnamed <init>Lnet/minecraft/world/gen/GeneratorOptions;<init>(JZZLnet/minecraft/util/registry/SimpleRegistry;)V
-
GeneratorOptions
private GeneratorOptions(long seed, boolean generateStructures, boolean bonusChest, SimpleRegistry<DimensionOptions> options, Optional<String> legacyCustomOptions)- Mappings:
Namespace Name Mixin selector official <init>Lcpf;<init>(JZZLgm;Ljava/util/Optional;)Vintermediary <init>Lnet/minecraft/class_5285;<init>(JZZLnet/minecraft/class_2370;Ljava/util/Optional;)Vnamed <init>Lnet/minecraft/world/gen/GeneratorOptions;<init>(JZZLnet/minecraft/util/registry/SimpleRegistry;Ljava/util/Optional;)V
-
-
方法详细资料
-
validate
private com.mojang.serialization.DataResult<GeneratorOptions> validate()
- Mappings:
Namespace Name Mixin selector official mLcpf;m()Lcom/mojang/serialization/DataResult;intermediary method_28610Lnet/minecraft/class_5285;method_28610()Lcom/mojang/serialization/DataResult;named validateLnet/minecraft/world/gen/GeneratorOptions;validate()Lcom/mojang/serialization/DataResult;
-
isStable
private boolean isStable()
- Mappings:
Namespace Name Mixin selector official nLcpf;n()Zintermediary method_28611Lnet/minecraft/class_5285;method_28611()Znamed isStableLnet/minecraft/world/gen/GeneratorOptions;isStable()Z
-
createDemo
public static GeneratorOptions createDemo(DynamicRegistryManager registryManager)
- Mappings:
Namespace Name Mixin selector official aLcpf;a(Lgs;)Lcpf;intermediary method_31112Lnet/minecraft/class_5285;method_31112(Lnet/minecraft/class_5455;)Lnet/minecraft/class_5285;named createDemoLnet/minecraft/world/gen/GeneratorOptions;createDemo(Lnet/minecraft/util/registry/DynamicRegistryManager;)Lnet/minecraft/world/gen/GeneratorOptions;
-
getDefaultOptions
public static GeneratorOptions getDefaultOptions(Registry<DimensionType> registry, Registry<Biome> registry2, Registry<ChunkGeneratorSettings> registry3)
- Mappings:
Namespace Name Mixin selector official aLcpf;a(Lgr;Lgr;Lgr;)Lcpf;intermediary method_28009Lnet/minecraft/class_5285;method_28009(Lnet/minecraft/class_2378;Lnet/minecraft/class_2378;Lnet/minecraft/class_2378;)Lnet/minecraft/class_5285;named getDefaultOptionsLnet/minecraft/world/gen/GeneratorOptions;getDefaultOptions(Lnet/minecraft/util/registry/Registry;Lnet/minecraft/util/registry/Registry;Lnet/minecraft/util/registry/Registry;)Lnet/minecraft/world/gen/GeneratorOptions;
-
createOverworldGenerator
public static NoiseChunkGenerator createOverworldGenerator(Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed)
- Mappings:
Namespace Name Mixin selector official aLcpf;a(Lgr;Lgr;J)Lcos;intermediary method_28604Lnet/minecraft/class_5285;method_28604(Lnet/minecraft/class_2378;Lnet/minecraft/class_2378;J)Lnet/minecraft/class_3754;named createOverworldGeneratorLnet/minecraft/world/gen/GeneratorOptions;createOverworldGenerator(Lnet/minecraft/util/registry/Registry;Lnet/minecraft/util/registry/Registry;J)Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;
-
getSeed
public long getSeed()
- Mappings:
Namespace Name Mixin selector official aLcpf;a()Jintermediary method_28028Lnet/minecraft/class_5285;method_28028()Jnamed getSeedLnet/minecraft/world/gen/GeneratorOptions;getSeed()J
-
shouldGenerateStructures
public boolean shouldGenerateStructures()
- Mappings:
Namespace Name Mixin selector official bLcpf;b()Zintermediary method_28029Lnet/minecraft/class_5285;method_28029()Znamed shouldGenerateStructuresLnet/minecraft/world/gen/GeneratorOptions;shouldGenerateStructures()Z
-
hasBonusChest
public boolean hasBonusChest()
- Mappings:
Namespace Name Mixin selector official cLcpf;c()Zintermediary method_28030Lnet/minecraft/class_5285;method_28030()Znamed hasBonusChestLnet/minecraft/world/gen/GeneratorOptions;hasBonusChest()Z
-
getRegistryWithReplacedOverworldGenerator
public static SimpleRegistry<DimensionOptions> getRegistryWithReplacedOverworldGenerator(Registry<DimensionType> dimensionTypeRegistry, SimpleRegistry<DimensionOptions> optionsRegistry, ChunkGenerator overworldGenerator)
- Mappings:
Namespace Name Mixin selector official aLcpf;a(Lgr;Lgm;Lclm;)Lgm;intermediary method_28608Lnet/minecraft/class_5285;method_28608(Lnet/minecraft/class_2378;Lnet/minecraft/class_2370;Lnet/minecraft/class_2794;)Lnet/minecraft/class_2370;named getRegistryWithReplacedOverworldGeneratorLnet/minecraft/world/gen/GeneratorOptions;getRegistryWithReplacedOverworldGenerator(Lnet/minecraft/util/registry/Registry;Lnet/minecraft/util/registry/SimpleRegistry;Lnet/minecraft/world/gen/chunk/ChunkGenerator;)Lnet/minecraft/util/registry/SimpleRegistry;
-
getRegistryWithReplacedOverworld
public static SimpleRegistry<DimensionOptions> getRegistryWithReplacedOverworld(SimpleRegistry<DimensionOptions> optionsRegistry, Supplier<DimensionType> overworldDimensionType, ChunkGenerator overworldGenerator)
- Mappings:
Namespace Name Mixin selector official aLcpf;a(Lgm;Ljava/util/function/Supplier;Lclm;)Lgm;intermediary method_29962Lnet/minecraft/class_5285;method_29962(Lnet/minecraft/class_2370;Ljava/util/function/Supplier;Lnet/minecraft/class_2794;)Lnet/minecraft/class_2370;named getRegistryWithReplacedOverworldLnet/minecraft/world/gen/GeneratorOptions;getRegistryWithReplacedOverworld(Lnet/minecraft/util/registry/SimpleRegistry;Ljava/util/function/Supplier;Lnet/minecraft/world/gen/chunk/ChunkGenerator;)Lnet/minecraft/util/registry/SimpleRegistry;
-
getDimensions
public SimpleRegistry<DimensionOptions> getDimensions()
- Mappings:
Namespace Name Mixin selector official dLcpf;d()Lgm;intermediary method_28609Lnet/minecraft/class_5285;method_28609()Lnet/minecraft/class_2370;named getDimensionsLnet/minecraft/world/gen/GeneratorOptions;getDimensions()Lnet/minecraft/util/registry/SimpleRegistry;
-
getChunkGenerator
public ChunkGenerator getChunkGenerator()
- Mappings:
Namespace Name Mixin selector official eLcpf;e()Lclm;intermediary method_28032Lnet/minecraft/class_5285;method_28032()Lnet/minecraft/class_2794;named getChunkGeneratorLnet/minecraft/world/gen/GeneratorOptions;getChunkGenerator()Lnet/minecraft/world/gen/chunk/ChunkGenerator;
-
getWorlds
public ImmutableSet<RegistryKey<World>> getWorlds()
- Mappings:
Namespace Name Mixin selector official fLcpf;f()Lcom/google/common/collect/ImmutableSet;intermediary method_29575Lnet/minecraft/class_5285;method_29575()Lcom/google/common/collect/ImmutableSet;named getWorldsLnet/minecraft/world/gen/GeneratorOptions;getWorlds()Lcom/google/common/collect/ImmutableSet;
-
isDebugWorld
public boolean isDebugWorld()
- Mappings:
Namespace Name Mixin selector official gLcpf;g()Zintermediary method_28033Lnet/minecraft/class_5285;method_28033()Znamed isDebugWorldLnet/minecraft/world/gen/GeneratorOptions;isDebugWorld()Z
-
isFlatWorld
public boolean isFlatWorld()
- Mappings:
Namespace Name Mixin selector official hLcpf;h()Zintermediary method_28034Lnet/minecraft/class_5285;method_28034()Znamed isFlatWorldLnet/minecraft/world/gen/GeneratorOptions;isFlatWorld()Z
-
isLegacyCustomizedType
public boolean isLegacyCustomizedType()
- Mappings:
Namespace Name Mixin selector official iLcpf;i()Zintermediary method_28035Lnet/minecraft/class_5285;method_28035()Znamed isLegacyCustomizedTypeLnet/minecraft/world/gen/GeneratorOptions;isLegacyCustomizedType()Z
-
withBonusChest
public GeneratorOptions withBonusChest()
- Mappings:
Namespace Name Mixin selector official jLcpf;j()Lcpf;intermediary method_28036Lnet/minecraft/class_5285;method_28036()Lnet/minecraft/class_5285;named withBonusChestLnet/minecraft/world/gen/GeneratorOptions;withBonusChest()Lnet/minecraft/world/gen/GeneratorOptions;
-
toggleGenerateStructures
public GeneratorOptions toggleGenerateStructures()
- Mappings:
Namespace Name Mixin selector official kLcpf;k()Lcpf;intermediary method_28037Lnet/minecraft/class_5285;method_28037()Lnet/minecraft/class_5285;named toggleGenerateStructuresLnet/minecraft/world/gen/GeneratorOptions;toggleGenerateStructures()Lnet/minecraft/world/gen/GeneratorOptions;
-
toggleBonusChest
public GeneratorOptions toggleBonusChest()
- Mappings:
Namespace Name Mixin selector official lLcpf;l()Lcpf;intermediary method_28038Lnet/minecraft/class_5285;method_28038()Lnet/minecraft/class_5285;named toggleBonusChestLnet/minecraft/world/gen/GeneratorOptions;toggleBonusChest()Lnet/minecraft/world/gen/GeneratorOptions;
-
fromProperties
public static GeneratorOptions fromProperties(DynamicRegistryManager registryManager, Properties properties)
- Mappings:
Namespace Name Mixin selector official aLcpf;a(Lgs;Ljava/util/Properties;)Lcpf;intermediary method_28021Lnet/minecraft/class_5285;method_28021(Lnet/minecraft/class_5455;Ljava/util/Properties;)Lnet/minecraft/class_5285;named fromPropertiesLnet/minecraft/world/gen/GeneratorOptions;fromProperties(Lnet/minecraft/util/registry/DynamicRegistryManager;Ljava/util/Properties;)Lnet/minecraft/world/gen/GeneratorOptions;
-
withHardcore
public GeneratorOptions withHardcore(boolean hardcore, OptionalLong seed)
- Mappings:
Namespace Name Mixin selector official aLcpf;a(ZLjava/util/OptionalLong;)Lcpf;intermediary method_28024Lnet/minecraft/class_5285;method_28024(ZLjava/util/OptionalLong;)Lnet/minecraft/class_5285;named withHardcoreLnet/minecraft/world/gen/GeneratorOptions;withHardcore(ZLjava/util/OptionalLong;)Lnet/minecraft/world/gen/GeneratorOptions;
-
-