Package net.minecraft.util.datafix.fixes
Class LeavesFix.Section
java.lang.Object
net.minecraft.util.datafix.fixes.LeavesFix.Section
- Direct Known Subclasses:
LeavesFix.LeavesSection
,TrappedChestBlockEntityFix.TrappedChestSection
- Enclosing class:
- LeavesFix
-
Field Summary
Modifier and TypeFieldDescriptionprotected static String
private com.mojang.datafixers.types.Type<com.mojang.datafixers.util.Pair<String,com.mojang.serialization.Dynamic<?>>>
protected int
protected static String
protected List<com.mojang.serialization.Dynamic<?>>
protected com.mojang.datafixers.OpticFinder<List<com.mojang.datafixers.util.Pair<String,com.mojang.serialization.Dynamic<?>>>>
protected static String
protected PackedBitStorage
-
Constructor Summary
ConstructorDescriptionSection(com.mojang.datafixers.Typed<?> p_16286_, com.mojang.datafixers.schemas.Schema p_16287_)
-
Method Summary
Modifier and TypeMethodDescriptionint
getBlock(int p_16303_)
(package private) int
getIndex()
protected int
getStateId(String p_16293_, boolean p_16294_, int p_16295_)
boolean
protected void
readStorage(com.mojang.serialization.Dynamic<?> p_16291_)
protected abstract boolean
com.mojang.datafixers.Typed<?>
write(com.mojang.datafixers.Typed<?> p_16289_)
-
Field Details
-
BLOCK_STATES_TAG
- See Also:
- Constant Field Values
-
NAME_TAG
- See Also:
- Constant Field Values
-
PROPERTIES_TAG
- See Also:
- Constant Field Values
-
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_16286_, com.mojang.datafixers.schemas.Schema p_16287_)
-
-
Method Details
-
readStorage
protected void readStorage(com.mojang.serialization.Dynamic<?> p_16291_) -
write
public com.mojang.datafixers.Typed<?> write(com.mojang.datafixers.Typed<?> p_16289_) -
isSkippable
public boolean isSkippable() -
getBlock
public int getBlock(int p_16303_) -
getStateId
-
getIndex
int getIndex() -
skippable
protected abstract boolean skippable()
-