29 enum class PaletteType :
int {
39 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mBlockTypeStatesConversionWarningMutex;
40 ::ll::TypedStorage<8, 16, ::std::set<::std::pair<int, int>>> mBlockTypeStatesConversionWarningSet;
41 ::ll::TypedStorage<8, 24, ::std::vector<::Block const*>> mBlockFromNetworkId;
42 ::ll::TypedStorage<8, 8, ::Level*> mLevel;
52 virtual ~BlockPalette();
54 virtual ::BlockPalette::PaletteType getPaletteType();
56 virtual void appendBlock(
::Block const& blockState);
58 virtual ::Block
const& getBlock(uint
const& networkId)
const;
60 virtual void assignBlockNetworkId(
::Block const& block, uint64 networkId)
const;
68 MCAPI
explicit BlockPalette(
::Level& level);
70 MCAPI
void cacheBlockComponentData();
72 MCAPI ::Block
const& getBlockFromLegacyData(
::NewBlockID id, uint data)
const;
74 MCAPI ::Bedrock::NonOwnerPointer<::IUnknownBlockTypeRegistry>
const getUnknownBlockTypeRegistry()
const;
76 MCAPI
void initFromBlockDefinitions();
78 MCAPI
bool shouldWarnFor(
::NewBlockID id, ushort data)
const;
80 MCAPI ::Block
const& switchBlock(
::Block const& oldBlock,
::BlockType const& newBlockType)
const;
86 MCAPI static ::Block
const& convertLegacyBlock(
::BlockID id, ushort data);
88 MCAPI
static bool convertLegacyBlocks(
101 MCAPI
void* $ctor(
::Level& level);
113 MCFOLD ::BlockPalette::PaletteType $getPaletteType();
115 MCAPI
void $appendBlock(
::Block const& blockState);
117 MCAPI ::Block
const& $getBlock(uint
const& networkId)
const;
119 MCAPI
void $assignBlockNetworkId(
::Block const& block, uint64 networkId)
const;
127 MCAPI
static void** $vftable();