Class LeavesFix.Section

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.mojang.datafixers.types.Type<com.mojang.datafixers.util.Pair<java.lang.String,​com.mojang.serialization.Dynamic<?>>> blockStateType  
      protected int index  
      protected java.util.List<com.mojang.serialization.Dynamic<?>> palette  
      protected com.mojang.datafixers.OpticFinder<java.util.List<com.mojang.datafixers.util.Pair<java.lang.String,​com.mojang.serialization.Dynamic<?>>>> paletteFinder  
      protected ArbitraryBitLengthIntArray storage  
    • Constructor Summary

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

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      int getBlock​(int p_208453_1_)  
      (package private) int getIndex()  
      protected int getStateId​(java.lang.String p_208464_1_, boolean p_208464_2_, int p_208464_3_)  
      boolean isSkippable()  
      protected void readStorage​(com.mojang.serialization.Dynamic<?> p_212507_1_)  
      protected abstract boolean skippable()  
      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 Detail

      • blockStateType

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

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

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

        protected final int index
    • Constructor Detail

      • Section

        public Section​(com.mojang.datafixers.Typed<?> p_i49850_1_,
                       com.mojang.datafixers.schemas.Schema p_i49850_2_)
    • Method Detail

      • 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​(java.lang.String p_208464_1_,
                                 boolean p_208464_2_,
                                 int p_208464_3_)
      • getIndex

        int getIndex()
      • skippable

        protected abstract boolean skippable()