Class PalettedContainer<T>

java.lang.Object
net.minecraft.world.chunk.PalettedContainer<T>
All Implemented Interfaces:
PaletteResizeListener<T>

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

  • Constructor Details

  • Method Details

    • lock

      public void lock()
    • unlock

      public void unlock()
    • toIndex

      private static int toIndex​(int x, int y, int z)
    • setPaletteSize

      private void setPaletteSize​(int size)
    • onResize

      public int onResize​(int newSize, T objectAdded)
      Specified by:
      onResize in interface PaletteResizeListener<T>
    • setSync

      public T setSync​(int x, int y, int z, T value)
    • set

      public T set​(int x, int y, int z, T value)
    • setAndGetOldValue

      protected T setAndGetOldValue​(int index, T value)
    • set

      protected void set​(int int2, T t)
    • get

      public T get​(int x, int y, int z)
    • get

      protected T get​(int index)
    • fromPacket

      @Environment(CLIENT) public void fromPacket​(PacketByteBuf buf)
    • toPacket

      public void toPacket​(PacketByteBuf buf)
    • read

      public void read​(ListTag paletteTag, long[] data)
    • write

      public void write​(CompoundTag compoundTag, String string, String string2)
    • getPacketSize

      public int getPacketSize()
    • hasAny

      public boolean hasAny​(Predicate<T> predicate)
    • count

      public void count​(PalettedContainer.CountConsumer<T> consumer)