26 enum class PaletteType :
int {
36 ::ll::TypedStorage<8, 80, ::std::mutex> mLegacyBlockStatesConversionWarningMutex;
37 ::ll::TypedStorage<8, 16, ::std::set<::std::pair<int, int>>> mLegacyBlockStatesConversionWarningSet;
38 ::ll::TypedStorage<8, 24, ::std::vector<::Block const*>> mBlockFromNetworkId;
39 ::ll::TypedStorage<8, 8, ::Level*> mLevel;
53 virtual ~BlockPalette();
55 virtual ::BlockPalette::PaletteType getPaletteType();
57 virtual void appendBlock(
::Block const& blockState);
59 virtual ::Block
const& getBlock(uint
const& networkId)
const;
61 virtual void assignBlockNetworkId(
::Block const& block, uint64 networkId)
const;
67 MCAPI
explicit BlockPalette(
::Level& level);
69 MCAPI
void cacheBlockComponentData();
71 MCAPI ::Block
const& getBlockFromLegacyData(
::NewBlockID id, uint data)
const;
73 MCAPI
bool shouldWarnFor(
::NewBlockID id, ushort data)
const;
75 MCAPI ::Block
const& switchBlock(
::Block const& oldBlock,
::BlockType const& newBlockType)
const;
81 MCAPI static ::Block
const& convertLegacyBlock(
::BlockID id, ushort data);
83 MCAPI
static bool convertLegacyBlocks(
94 MCAPI
void* $ctor(
::Level& level);
106 MCFOLD ::BlockPalette::PaletteType $getPaletteType();
108 MCAPI
void $appendBlock(
::Block const& blockState);
110 MCAPI ::Block
const& $getBlock(uint
const& networkId)
const;
112 MCAPI
void $assignBlockNetworkId(
::Block const& block, uint64 networkId)
const;
120 MCAPI
static void** $vftable();