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
FieldsModifier and TypeFieldDescriptionprotected static final Stringprivate final com.mojang.datafixers.types.Type<com.mojang.datafixers.util.Pair<String, com.mojang.serialization.Dynamic<?>>> protected final intprotected static final Stringprotected final List<com.mojang.serialization.Dynamic<?>> protected final com.mojang.datafixers.OpticFinder<List<com.mojang.datafixers.util.Pair<String, com.mojang.serialization.Dynamic<?>>>> protected static final Stringprotected @Nullable PackedBitStorage -
Constructor Summary
ConstructorsConstructorDescriptionSection(com.mojang.datafixers.Typed<?> section, com.mojang.datafixers.schemas.Schema inputSchema) -
Method Summary
Modifier and TypeMethodDescriptionintgetBlock(int pos) (package private) intgetIndex()protected intgetStateId(String blockName, boolean persistent, int distance) booleanprotected voidreadStorage(com.mojang.serialization.Dynamic<?> tag) protected abstract booleancom.mojang.datafixers.Typed<?> write(com.mojang.datafixers.Typed<?> section)
-
Field Details
-
BLOCK_STATES_TAG
- See Also:
-
NAME_TAG
- See Also:
-
PROPERTIES_TAG
- See Also:
-
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<?> section, com.mojang.datafixers.schemas.Schema inputSchema)
-
-
Method Details
-
readStorage
protected void readStorage(com.mojang.serialization.Dynamic<?> tag) -
write
public com.mojang.datafixers.Typed<?> write(com.mojang.datafixers.Typed<?> section) -
isSkippable
public boolean isSkippable() -
getBlock
public int getBlock(int pos) -
getStateId
-
getIndex
int getIndex() -
skippable
protected abstract boolean skippable()
-