Interface Palette<T>

All Known Implementing Classes:
GlobalPalette, HashMapPalette, LinearPalette, SingleValuePalette

public interface Palette<T>
  • Method Details

    • idFor

      int idFor(T state)
    • maybeHas

      boolean maybeHas(Predicate<T> filter)
    • valueFor

      T valueFor(int id)
    • read

      void read(FriendlyByteBuf buffer)
    • write

      void write(FriendlyByteBuf buffer)
    • getSerializedSize

      int getSerializedSize()
    • getSize

      int getSize()
    • copy

      Palette<T> copy()