Skip to content

API reference Obsidian.API.ChunkData

SingleValuePalette<T> class

public abstract class SingleValuePalette<T> : IPalette<T>

In Obsidian.API.

Constructors

protected SingleValuePalette();

Properties

public int BitCount { get; }public int Count { get; }public bool IsFull { get; }public bool ShouldGrow { get; }public T Value { get; protected set; }

Methods

public abstract IPalette<T> Clone();public int GetOrAddId(T value);public virtual T GetValueFromIndex(int index);protected abstract int GetValueId(T value);public bool TryGetId(T value, out int id);public void WriteTo(INetStreamWriter writer);

Fields

protected bool initialized;

On this page