class Rosegold::PalettedContainer

Overview

Four modes: Single state: All entries are the same value. The value is stored as palette[0]. The long_array is empty. Encoded: The long_array stores the palette index of each value. Direct: The long_array stores values directly. The palette is empty.

Defined in:

rosegold/world/paletted_container.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(io : Minecraft::IO, num_bits_direct, size : UInt32) #

[View source]

Instance Method Detail

def [](index : Index) : Entry #

[View source]
def []=(index : Index, value : Entry) : Nil #

[View source]
def size : Index #

[View source]
def write(io : Minecraft::IO) #

[View source]