Package net.minecraft.util.datafix.fixes
Class WorldGenSettings
- java.lang.Object
-
- com.mojang.datafixers.DataFix
-
- net.minecraft.util.datafix.fixes.WorldGenSettings
-
public class WorldGenSettings extends com.mojang.datafixers.DataFix
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
WorldGenSettings.StructureSeparationSettingsCodec
-
Field Summary
Fields Modifier and Type Field Description private static com.google.common.collect.ImmutableMap<java.lang.String,WorldGenSettings.StructureSeparationSettingsCodec>
DEFAULTS
-
Constructor Summary
Constructors Constructor Description WorldGenSettings(com.mojang.datafixers.schemas.Schema p_i231469_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static <T> com.mojang.serialization.Dynamic<T>
defaultOverworld(com.mojang.serialization.Dynamic<T> p_241322_0_, long p_241322_1_)
private static <T> com.mojang.serialization.Dynamic<T>
fix(com.mojang.serialization.Dynamic<T> p_233426_0_)
private static <T> java.util.Map<com.mojang.serialization.Dynamic<T>,com.mojang.serialization.Dynamic<T>>
fixFlatStructures(com.mojang.serialization.DynamicOps<T> p_233430_0_, com.mojang.serialization.OptionalDynamic<T> p_233430_1_)
private static int
getInt(java.lang.String p_233434_0_, int p_233434_1_)
private static int
getInt(java.lang.String p_233435_0_, int p_233435_1_, int p_233435_2_)
protected com.mojang.datafixers.TypeRewriteRule
makeRule()
private static <T> com.mojang.serialization.Dynamic<T>
noise(long p_233423_0_, com.mojang.serialization.DynamicLike<T> p_233423_2_, com.mojang.serialization.Dynamic<T> p_233423_3_, com.mojang.serialization.Dynamic<T> p_233423_4_)
private static void
setSpacing(java.util.Map<java.lang.String,WorldGenSettings.StructureSeparationSettingsCodec> p_233436_0_, java.lang.String p_233436_1_, java.lang.String p_233436_2_, int p_233436_3_)
private static <T> com.mojang.serialization.Dynamic<T>
vanillaBiomeSource(com.mojang.serialization.Dynamic<T> p_233427_0_, long p_233427_1_, boolean p_233427_3_, boolean p_233427_4_)
protected static <T> T
vanillaLevels(com.mojang.serialization.Dynamic<T> p_241323_0_, long p_241323_1_, com.mojang.serialization.Dynamic<T> p_241323_3_, boolean p_241323_4_)
-
Methods inherited from class com.mojang.datafixers.DataFix
checked, convertUnchecked, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, getInputSchema, getOutputSchema, getRule, getVersionKey, onFail, writeAndRead, writeFixAndRead
-
-
-
-
Field Detail
-
DEFAULTS
private static final com.google.common.collect.ImmutableMap<java.lang.String,WorldGenSettings.StructureSeparationSettingsCodec> DEFAULTS
-
-
Method Detail
-
makeRule
protected com.mojang.datafixers.TypeRewriteRule makeRule()
- Specified by:
makeRule
in classcom.mojang.datafixers.DataFix
-
noise
private static <T> com.mojang.serialization.Dynamic<T> noise(long p_233423_0_, com.mojang.serialization.DynamicLike<T> p_233423_2_, com.mojang.serialization.Dynamic<T> p_233423_3_, com.mojang.serialization.Dynamic<T> p_233423_4_)
-
vanillaBiomeSource
private static <T> com.mojang.serialization.Dynamic<T> vanillaBiomeSource(com.mojang.serialization.Dynamic<T> p_233427_0_, long p_233427_1_, boolean p_233427_3_, boolean p_233427_4_)
-
fix
private static <T> com.mojang.serialization.Dynamic<T> fix(com.mojang.serialization.Dynamic<T> p_233426_0_)
-
defaultOverworld
protected static <T> com.mojang.serialization.Dynamic<T> defaultOverworld(com.mojang.serialization.Dynamic<T> p_241322_0_, long p_241322_1_)
-
vanillaLevels
protected static <T> T vanillaLevels(com.mojang.serialization.Dynamic<T> p_241323_0_, long p_241323_1_, com.mojang.serialization.Dynamic<T> p_241323_3_, boolean p_241323_4_)
-
fixFlatStructures
private static <T> java.util.Map<com.mojang.serialization.Dynamic<T>,com.mojang.serialization.Dynamic<T>> fixFlatStructures(com.mojang.serialization.DynamicOps<T> p_233430_0_, com.mojang.serialization.OptionalDynamic<T> p_233430_1_)
-
getInt
private static int getInt(java.lang.String p_233434_0_, int p_233434_1_)
-
getInt
private static int getInt(java.lang.String p_233435_0_, int p_233435_1_, int p_233435_2_)
-
setSpacing
private static void setSpacing(java.util.Map<java.lang.String,WorldGenSettings.StructureSeparationSettingsCodec> p_233436_0_, java.lang.String p_233436_1_, java.lang.String p_233436_2_, int p_233436_3_)
-
-