Class BiomeProvider

    • Field Detail

      • CODEC

        public static final com.mojang.serialization.Codec<BiomeProvider> CODEC
      • supportedStructures

        protected final java.util.Map<Structure<?>,​java.lang.Boolean> supportedStructures
      • surfaceBlocks

        protected final java.util.Set<BlockState> surfaceBlocks
      • possibleBiomes

        protected final java.util.List<Biome> possibleBiomes
    • Constructor Detail

      • BiomeProvider

        protected BiomeProvider​(java.util.stream.Stream<java.util.function.Supplier<Biome>> p_i241937_1_)
      • BiomeProvider

        protected BiomeProvider​(java.util.List<Biome> p_i231634_1_)
    • Method Detail

      • codec

        protected abstract com.mojang.serialization.Codec<? extends BiomeProvider> codec()
      • withSeed

        public abstract BiomeProvider withSeed​(long p_230320_1_)
      • possibleBiomes

        public java.util.List<Biome> possibleBiomes()
      • getBiomesWithin

        public java.util.Set<Biome> getBiomesWithin​(int p_225530_1_,
                                                    int p_225530_2_,
                                                    int p_225530_3_,
                                                    int p_225530_4_)
      • findBiomeHorizontal

        @Nullable
        public BlockPos findBiomeHorizontal​(int p_225531_1_,
                                            int p_225531_2_,
                                            int p_225531_3_,
                                            int p_225531_4_,
                                            java.util.function.Predicate<Biome> p_225531_5_,
                                            java.util.Random p_225531_6_)
      • findBiomeHorizontal

        @Nullable
        public BlockPos findBiomeHorizontal​(int p_230321_1_,
                                            int p_230321_2_,
                                            int p_230321_3_,
                                            int p_230321_4_,
                                            int p_230321_5_,
                                            java.util.function.Predicate<Biome> p_230321_6_,
                                            java.util.Random p_230321_7_,
                                            boolean p_230321_8_)
      • canGenerateStructure

        public boolean canGenerateStructure​(Structure<?> p_205004_1_)
      • getSurfaceBlocks

        public java.util.Set<BlockState> getSurfaceBlocks()