类 GeneratorOptions


  • public class GeneratorOptions
    extends Object
    Mappings:
    Namespace Name
    official cpf
    intermediary net/minecraft/class_5285
    named net/minecraft/world/gen/GeneratorOptions
    • 字段详细资料

      • CODEC

        public static final com.mojang.serialization.Codec<GeneratorOptions> CODEC
        Mappings:
        Namespace Name Mixin selector
        official a Lcpf;a:Lcom/mojang/serialization/Codec;
        intermediary field_24826 Lnet/minecraft/class_5285;field_24826:Lcom/mojang/serialization/Codec;
        named CODEC Lnet/minecraft/world/gen/GeneratorOptions;CODEC:Lcom/mojang/serialization/Codec;
      • LOGGER

        private static final Logger LOGGER
        Mappings:
        Namespace Name Mixin selector
        official b Lcpf;b:Lorg/apache/logging/log4j/Logger;
        intermediary field_24525 Lnet/minecraft/class_5285;field_24525:Lorg/apache/logging/log4j/Logger;
        named LOGGER Lnet/minecraft/world/gen/GeneratorOptions;LOGGER:Lorg/apache/logging/log4j/Logger;
      • seed

        private final long seed
        Mappings:
        Namespace Name Mixin selector
        official c Lcpf;c:J
        intermediary field_24526 Lnet/minecraft/class_5285;field_24526:J
        named seed Lnet/minecraft/world/gen/GeneratorOptions;seed:J
      • generateStructures

        private final boolean generateStructures
        Mappings:
        Namespace Name Mixin selector
        official d Lcpf;d:Z
        intermediary field_24527 Lnet/minecraft/class_5285;field_24527:Z
        named generateStructures Lnet/minecraft/world/gen/GeneratorOptions;generateStructures:Z
      • bonusChest

        private final boolean bonusChest
        Mappings:
        Namespace Name Mixin selector
        official e Lcpf;e:Z
        intermediary field_24528 Lnet/minecraft/class_5285;field_24528:Z
        named bonusChest Lnet/minecraft/world/gen/GeneratorOptions;bonusChest:Z
      • options

        private final SimpleRegistry<DimensionOptions> options
        Mappings:
        Namespace Name Mixin selector
        official f Lcpf;f:Lgm;
        intermediary field_24827 Lnet/minecraft/class_5285;field_24827:Lnet/minecraft/class_2370;
        named options Lnet/minecraft/world/gen/GeneratorOptions;options:Lnet/minecraft/util/registry/SimpleRegistry;
      • legacyCustomOptions

        private final Optional<String> legacyCustomOptions
        Mappings:
        Namespace Name Mixin selector
        official g Lcpf;g:Ljava/util/Optional;
        intermediary field_24532 Lnet/minecraft/class_5285;field_24532:Ljava/util/Optional;
        named legacyCustomOptions Lnet/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;)V
        intermediary <init> Lnet/minecraft/class_5285;<init>(JZZLnet/minecraft/class_2370;)V
        named <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;)V
        intermediary <init> Lnet/minecraft/class_5285;<init>(JZZLnet/minecraft/class_2370;Ljava/util/Optional;)V
        named <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 m Lcpf;m()Lcom/mojang/serialization/DataResult;
        intermediary method_28610 Lnet/minecraft/class_5285;method_28610()Lcom/mojang/serialization/DataResult;
        named validate Lnet/minecraft/world/gen/GeneratorOptions;validate()Lcom/mojang/serialization/DataResult;
      • isStable

        private boolean isStable()
        Mappings:
        Namespace Name Mixin selector
        official n Lcpf;n()Z
        intermediary method_28611 Lnet/minecraft/class_5285;method_28611()Z
        named isStable Lnet/minecraft/world/gen/GeneratorOptions;isStable()Z
      • createDemo

        public static GeneratorOptions createDemo​(DynamicRegistryManager registryManager)
        Mappings:
        Namespace Name Mixin selector
        official a Lcpf;a(Lgs;)Lcpf;
        intermediary method_31112 Lnet/minecraft/class_5285;method_31112(Lnet/minecraft/class_5455;)Lnet/minecraft/class_5285;
        named createDemo Lnet/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 a Lcpf;a(Lgr;Lgr;Lgr;)Lcpf;
        intermediary method_28009 Lnet/minecraft/class_5285;method_28009(Lnet/minecraft/class_2378;Lnet/minecraft/class_2378;Lnet/minecraft/class_2378;)Lnet/minecraft/class_5285;
        named getDefaultOptions Lnet/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 a Lcpf;a(Lgr;Lgr;J)Lcos;
        intermediary method_28604 Lnet/minecraft/class_5285;method_28604(Lnet/minecraft/class_2378;Lnet/minecraft/class_2378;J)Lnet/minecraft/class_3754;
        named createOverworldGenerator Lnet/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 a Lcpf;a()J
        intermediary method_28028 Lnet/minecraft/class_5285;method_28028()J
        named getSeed Lnet/minecraft/world/gen/GeneratorOptions;getSeed()J
      • shouldGenerateStructures

        public boolean shouldGenerateStructures()
        Mappings:
        Namespace Name Mixin selector
        official b Lcpf;b()Z
        intermediary method_28029 Lnet/minecraft/class_5285;method_28029()Z
        named shouldGenerateStructures Lnet/minecraft/world/gen/GeneratorOptions;shouldGenerateStructures()Z
      • hasBonusChest

        public boolean hasBonusChest()
        Mappings:
        Namespace Name Mixin selector
        official c Lcpf;c()Z
        intermediary method_28030 Lnet/minecraft/class_5285;method_28030()Z
        named hasBonusChest Lnet/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 a Lcpf;a(Lgr;Lgm;Lclm;)Lgm;
        intermediary method_28608 Lnet/minecraft/class_5285;method_28608(Lnet/minecraft/class_2378;Lnet/minecraft/class_2370;Lnet/minecraft/class_2794;)Lnet/minecraft/class_2370;
        named getRegistryWithReplacedOverworldGenerator Lnet/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 a Lcpf;a(Lgm;Ljava/util/function/Supplier;Lclm;)Lgm;
        intermediary method_29962 Lnet/minecraft/class_5285;method_29962(Lnet/minecraft/class_2370;Ljava/util/function/Supplier;Lnet/minecraft/class_2794;)Lnet/minecraft/class_2370;
        named getRegistryWithReplacedOverworld Lnet/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 d Lcpf;d()Lgm;
        intermediary method_28609 Lnet/minecraft/class_5285;method_28609()Lnet/minecraft/class_2370;
        named getDimensions Lnet/minecraft/world/gen/GeneratorOptions;getDimensions()Lnet/minecraft/util/registry/SimpleRegistry;
      • getChunkGenerator

        public ChunkGenerator getChunkGenerator()
        Mappings:
        Namespace Name Mixin selector
        official e Lcpf;e()Lclm;
        intermediary method_28032 Lnet/minecraft/class_5285;method_28032()Lnet/minecraft/class_2794;
        named getChunkGenerator Lnet/minecraft/world/gen/GeneratorOptions;getChunkGenerator()Lnet/minecraft/world/gen/chunk/ChunkGenerator;
      • getWorlds

        public ImmutableSet<RegistryKey<World>> getWorlds()
        Mappings:
        Namespace Name Mixin selector
        official f Lcpf;f()Lcom/google/common/collect/ImmutableSet;
        intermediary method_29575 Lnet/minecraft/class_5285;method_29575()Lcom/google/common/collect/ImmutableSet;
        named getWorlds Lnet/minecraft/world/gen/GeneratorOptions;getWorlds()Lcom/google/common/collect/ImmutableSet;
      • isDebugWorld

        public boolean isDebugWorld()
        Mappings:
        Namespace Name Mixin selector
        official g Lcpf;g()Z
        intermediary method_28033 Lnet/minecraft/class_5285;method_28033()Z
        named isDebugWorld Lnet/minecraft/world/gen/GeneratorOptions;isDebugWorld()Z
      • isFlatWorld

        public boolean isFlatWorld()
        Mappings:
        Namespace Name Mixin selector
        official h Lcpf;h()Z
        intermediary method_28034 Lnet/minecraft/class_5285;method_28034()Z
        named isFlatWorld Lnet/minecraft/world/gen/GeneratorOptions;isFlatWorld()Z
      • isLegacyCustomizedType

        public boolean isLegacyCustomizedType()
        Mappings:
        Namespace Name Mixin selector
        official i Lcpf;i()Z
        intermediary method_28035 Lnet/minecraft/class_5285;method_28035()Z
        named isLegacyCustomizedType Lnet/minecraft/world/gen/GeneratorOptions;isLegacyCustomizedType()Z
      • withBonusChest

        public GeneratorOptions withBonusChest()
        Mappings:
        Namespace Name Mixin selector
        official j Lcpf;j()Lcpf;
        intermediary method_28036 Lnet/minecraft/class_5285;method_28036()Lnet/minecraft/class_5285;
        named withBonusChest Lnet/minecraft/world/gen/GeneratorOptions;withBonusChest()Lnet/minecraft/world/gen/GeneratorOptions;
      • toggleGenerateStructures

        public GeneratorOptions toggleGenerateStructures()
        Mappings:
        Namespace Name Mixin selector
        official k Lcpf;k()Lcpf;
        intermediary method_28037 Lnet/minecraft/class_5285;method_28037()Lnet/minecraft/class_5285;
        named toggleGenerateStructures Lnet/minecraft/world/gen/GeneratorOptions;toggleGenerateStructures()Lnet/minecraft/world/gen/GeneratorOptions;
      • toggleBonusChest

        public GeneratorOptions toggleBonusChest()
        Mappings:
        Namespace Name Mixin selector
        official l Lcpf;l()Lcpf;
        intermediary method_28038 Lnet/minecraft/class_5285;method_28038()Lnet/minecraft/class_5285;
        named toggleBonusChest Lnet/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 a Lcpf;a(Lgs;Ljava/util/Properties;)Lcpf;
        intermediary method_28021 Lnet/minecraft/class_5285;method_28021(Lnet/minecraft/class_5455;Ljava/util/Properties;)Lnet/minecraft/class_5285;
        named fromProperties Lnet/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 a Lcpf;a(ZLjava/util/OptionalLong;)Lcpf;
        intermediary method_28024 Lnet/minecraft/class_5285;method_28024(ZLjava/util/OptionalLong;)Lnet/minecraft/class_5285;
        named withHardcore Lnet/minecraft/world/gen/GeneratorOptions;withHardcore(ZLjava/util/OptionalLong;)Lnet/minecraft/world/gen/GeneratorOptions;