Package net.minecraft.util.datafix.fixes
Class ChunkPaletteFormat
- java.lang.Object
-
- com.mojang.datafixers.DataFix
-
- net.minecraft.util.datafix.fixes.ChunkPaletteFormat
-
public class ChunkPaletteFormat extends com.mojang.datafixers.DataFix
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChunkPaletteFormat.Direction
(package private) static class
ChunkPaletteFormat.NibbleArray
(package private) static class
ChunkPaletteFormat.Section
(package private) static class
ChunkPaletteFormat.UpgradeChunk
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.serialization.Dynamic<?>
AIR
private static java.util.Map<java.lang.String,com.mojang.serialization.Dynamic<?>>
BANNER_BLOCK_MAP
private static java.util.Map<java.lang.String,com.mojang.serialization.Dynamic<?>>
BED_BLOCK_MAP
private static java.util.Map<java.lang.String,com.mojang.serialization.Dynamic<?>>
DOOR_MAP
private static it.unimi.dsi.fastutil.ints.Int2ObjectMap<java.lang.String>
DYE_COLOR_MAP
private static java.util.BitSet
FIX
private static java.util.Map<java.lang.String,com.mojang.serialization.Dynamic<?>>
FLOWER_POT_MAP
private static org.apache.logging.log4j.Logger
LOGGER
private static java.util.Map<java.lang.String,com.mojang.serialization.Dynamic<?>>
NOTE_BLOCK_MAP
private static com.mojang.serialization.Dynamic<?>
PUMPKIN
private static java.util.Map<java.lang.String,com.mojang.serialization.Dynamic<?>>
SKULL_MAP
private static com.mojang.serialization.Dynamic<?>
SNOWY_GRASS
private static com.mojang.serialization.Dynamic<?>
SNOWY_MYCELIUM
private static com.mojang.serialization.Dynamic<?>
SNOWY_PODZOL
private static com.mojang.serialization.Dynamic<?>
UPPER_LARGE_FERN
private static com.mojang.serialization.Dynamic<?>
UPPER_LILAC
private static com.mojang.serialization.Dynamic<?>
UPPER_PEONY
private static com.mojang.serialization.Dynamic<?>
UPPER_ROSE_BUSH
private static com.mojang.serialization.Dynamic<?>
UPPER_SUNFLOWER
private static com.mojang.serialization.Dynamic<?>
UPPER_TALL_GRASS
private static java.util.BitSet
VIRTUAL
-
Constructor Summary
Constructors Constructor Description ChunkPaletteFormat(com.mojang.datafixers.schemas.Schema p_i49676_1_, boolean p_i49676_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static void
addBanners(java.util.Map<java.lang.String,com.mojang.serialization.Dynamic<?>> p_209297_0_, int p_209297_1_, java.lang.String p_209297_2_)
private static void
addBeds(java.util.Map<java.lang.String,com.mojang.serialization.Dynamic<?>> p_209307_0_, int p_209307_1_, java.lang.String p_209307_2_)
private com.mojang.serialization.Dynamic<?>
fix(com.mojang.serialization.Dynamic<?> p_209712_1_)
static java.lang.String
getName(com.mojang.serialization.Dynamic<?> p_209726_0_)
static java.lang.String
getProperty(com.mojang.serialization.Dynamic<?> p_209719_0_, java.lang.String p_209719_1_)
static int
getSideMask(boolean p_210957_0_, boolean p_210957_1_, boolean p_210957_2_, boolean p_210957_3_)
static int
idFor(IntIdentityHashBiMap<com.mojang.serialization.Dynamic<?>> p_209724_0_, com.mojang.serialization.Dynamic<?> p_209724_1_)
com.mojang.datafixers.TypeRewriteRule
makeRule()
private static void
mapDoor(java.util.Map<java.lang.String,com.mojang.serialization.Dynamic<?>> p_209301_0_, java.lang.String p_209301_1_, int p_209301_2_)
private static void
mapSkull(java.util.Map<java.lang.String,com.mojang.serialization.Dynamic<?>> p_209300_0_, int p_209300_1_, java.lang.String p_209300_2_, java.lang.String p_209300_3_)
-
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
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
VIRTUAL
private static final java.util.BitSet VIRTUAL
-
FIX
private static final java.util.BitSet FIX
-
PUMPKIN
private static final com.mojang.serialization.Dynamic<?> PUMPKIN
-
SNOWY_PODZOL
private static final com.mojang.serialization.Dynamic<?> SNOWY_PODZOL
-
SNOWY_GRASS
private static final com.mojang.serialization.Dynamic<?> SNOWY_GRASS
-
SNOWY_MYCELIUM
private static final com.mojang.serialization.Dynamic<?> SNOWY_MYCELIUM
-
UPPER_SUNFLOWER
private static final com.mojang.serialization.Dynamic<?> UPPER_SUNFLOWER
-
UPPER_LILAC
private static final com.mojang.serialization.Dynamic<?> UPPER_LILAC
-
UPPER_TALL_GRASS
private static final com.mojang.serialization.Dynamic<?> UPPER_TALL_GRASS
-
UPPER_LARGE_FERN
private static final com.mojang.serialization.Dynamic<?> UPPER_LARGE_FERN
-
UPPER_ROSE_BUSH
private static final com.mojang.serialization.Dynamic<?> UPPER_ROSE_BUSH
-
UPPER_PEONY
private static final com.mojang.serialization.Dynamic<?> UPPER_PEONY
-
FLOWER_POT_MAP
private static final java.util.Map<java.lang.String,com.mojang.serialization.Dynamic<?>> FLOWER_POT_MAP
-
SKULL_MAP
private static final java.util.Map<java.lang.String,com.mojang.serialization.Dynamic<?>> SKULL_MAP
-
DOOR_MAP
private static final java.util.Map<java.lang.String,com.mojang.serialization.Dynamic<?>> DOOR_MAP
-
NOTE_BLOCK_MAP
private static final java.util.Map<java.lang.String,com.mojang.serialization.Dynamic<?>> NOTE_BLOCK_MAP
-
DYE_COLOR_MAP
private static final it.unimi.dsi.fastutil.ints.Int2ObjectMap<java.lang.String> DYE_COLOR_MAP
-
BED_BLOCK_MAP
private static final java.util.Map<java.lang.String,com.mojang.serialization.Dynamic<?>> BED_BLOCK_MAP
-
BANNER_BLOCK_MAP
private static final java.util.Map<java.lang.String,com.mojang.serialization.Dynamic<?>> BANNER_BLOCK_MAP
-
AIR
private static final com.mojang.serialization.Dynamic<?> AIR
-
-
Method Detail
-
mapSkull
private static void mapSkull(java.util.Map<java.lang.String,com.mojang.serialization.Dynamic<?>> p_209300_0_, int p_209300_1_, java.lang.String p_209300_2_, java.lang.String p_209300_3_)
-
mapDoor
private static void mapDoor(java.util.Map<java.lang.String,com.mojang.serialization.Dynamic<?>> p_209301_0_, java.lang.String p_209301_1_, int p_209301_2_)
-
addBeds
private static void addBeds(java.util.Map<java.lang.String,com.mojang.serialization.Dynamic<?>> p_209307_0_, int p_209307_1_, java.lang.String p_209307_2_)
-
addBanners
private static void addBanners(java.util.Map<java.lang.String,com.mojang.serialization.Dynamic<?>> p_209297_0_, int p_209297_1_, java.lang.String p_209297_2_)
-
getName
public static java.lang.String getName(com.mojang.serialization.Dynamic<?> p_209726_0_)
-
getProperty
public static java.lang.String getProperty(com.mojang.serialization.Dynamic<?> p_209719_0_, java.lang.String p_209719_1_)
-
idFor
public static int idFor(IntIdentityHashBiMap<com.mojang.serialization.Dynamic<?>> p_209724_0_, com.mojang.serialization.Dynamic<?> p_209724_1_)
-
fix
private com.mojang.serialization.Dynamic<?> fix(com.mojang.serialization.Dynamic<?> p_209712_1_)
-
makeRule
public com.mojang.datafixers.TypeRewriteRule makeRule()
- Specified by:
makeRule
in classcom.mojang.datafixers.DataFix
-
getSideMask
public static int getSideMask(boolean p_210957_0_, boolean p_210957_1_, boolean p_210957_2_, boolean p_210957_3_)
-
-