Class PalettedContainer<T>

java.lang.Object
net.minecraft.util.palette.PalettedContainer<T>
All Implemented Interfaces:
IResizeCallback<T>

public class PalettedContainer<T> extends Object implements IResizeCallback<T>
  • Field Details

  • Constructor Details

  • Method Details

    • acquire

      public void acquire()
    • release

      public void release()
    • getIndex

      private static int getIndex(int p_186011_0_, int p_186011_1_, int p_186011_2_)
    • setBits

      private void setBits(int p_186012_1_)
    • setBits

      private void setBits(int bitsIn, boolean forceBits)
    • onResize

      public int onResize(int p_onResize_1_, T p_onResize_2_)
      Specified by:
      onResize in interface IResizeCallback<T>
    • getAndSet

      public T getAndSet(int p_222641_1_, int p_222641_2_, int p_222641_3_, T p_222641_4_)
    • getAndSetUnchecked

      public T getAndSetUnchecked(int p_222639_1_, int p_222639_2_, int p_222639_3_, T p_222639_4_)
    • getAndSet

      protected T getAndSet(int p_222643_1_, T p_222643_2_)
    • set

      protected void set(int p_186014_1_, T p_186014_2_)
    • get

      public T get(int p_186016_1_, int p_186016_2_, int p_186016_3_)
    • get

      protected T get(int p_186015_1_)
    • read

      public void read(PacketBuffer p_186010_1_)
    • write

      public void write(PacketBuffer p_186009_1_)
    • read

      public void read(ListNBT p_222642_1_, long[] p_222642_2_)
    • write

      public void write(CompoundNBT p_196963_1_, String p_196963_2_, String p_196963_3_)
    • getSerializedSize

      public int getSerializedSize()
    • maybeHas

      public boolean maybeHas(Predicate<T> p_235963_1_)
    • count

      public void count(PalettedContainer.ICountConsumer<T> p_225497_1_)