Package net.minecraft.util.datafix.fixes
Class LeavesFix.Section
java.lang.Object
net.minecraft.util.datafix.fixes.LeavesFix.Section
- Direct Known Subclasses:
LeavesFix.LeavesSection
,TrappedChestTileEntitySplit.Section
- Enclosing class:
- LeavesFix
-
Field Summary
Modifier and TypeFieldDescriptionprivate final com.mojang.datafixers.types.Type<com.mojang.datafixers.util.Pair<String,
com.mojang.serialization.Dynamic<?>>> protected final int
protected final List<com.mojang.serialization.Dynamic<?>>
protected final com.mojang.datafixers.OpticFinder<List<com.mojang.datafixers.util.Pair<String,
com.mojang.serialization.Dynamic<?>>>> protected ArbitraryBitLengthIntArray
-
Constructor Summary
ConstructorDescriptionSection
(com.mojang.datafixers.Typed<?> p_i49850_1_, com.mojang.datafixers.schemas.Schema p_i49850_2_) -
Method Summary
Modifier and TypeMethodDescriptionint
getBlock
(int p_208453_1_) (package private) int
getIndex()
protected int
getStateId
(String p_208464_1_, boolean p_208464_2_, int p_208464_3_) boolean
protected void
readStorage
(com.mojang.serialization.Dynamic<?> p_212507_1_) protected abstract boolean
com.mojang.datafixers.Typed<?>
write
(com.mojang.datafixers.Typed<?> p_208465_1_)
-
Field Details
-
blockStateType
private final com.mojang.datafixers.types.Type<com.mojang.datafixers.util.Pair<String,com.mojang.serialization.Dynamic<?>>> blockStateType -
paletteFinder
-
palette
-
index
protected final int index -
storage
-
-
Constructor Details
-
Section
public Section(com.mojang.datafixers.Typed<?> p_i49850_1_, com.mojang.datafixers.schemas.Schema p_i49850_2_)
-
-
Method Details
-
readStorage
protected void readStorage(com.mojang.serialization.Dynamic<?> p_212507_1_) -
write
public com.mojang.datafixers.Typed<?> write(com.mojang.datafixers.Typed<?> p_208465_1_) -
isSkippable
public boolean isSkippable() -
getBlock
public int getBlock(int p_208453_1_) -
getStateId
-
getIndex
int getIndex() -
skippable
protected abstract boolean skippable()
-