Class LeavesFix.Section

java.lang.Object
net.minecraft.util.datafix.fixes.LeavesFix.Section
Direct Known Subclasses:
LeavesFix.LeavesSection, TrappedChestTileEntitySplit.Section
Enclosing class:
LeavesFix

public abstract static class LeavesFix.Section extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private 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<?>>>>
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Section(com.mojang.datafixers.Typed<?> p_i49850_1_, com.mojang.datafixers.schemas.Schema p_i49850_2_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getBlock(int p_208453_1_)
     
    (package private) int
     
    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_)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • blockStateType

      private final com.mojang.datafixers.types.Type<com.mojang.datafixers.util.Pair<String,com.mojang.serialization.Dynamic<?>>> blockStateType
    • paletteFinder

      protected final com.mojang.datafixers.OpticFinder<List<com.mojang.datafixers.util.Pair<String,com.mojang.serialization.Dynamic<?>>>> paletteFinder
    • palette

      protected final List<com.mojang.serialization.Dynamic<?>> palette
    • index

      protected final int index
    • storage

      @Nullable protected ArbitraryBitLengthIntArray 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

      protected int getStateId(String p_208464_1_, boolean p_208464_2_, int p_208464_3_)
    • getIndex

      int getIndex()
    • skippable

      protected abstract boolean skippable()