39 throw std::runtime_error(
"Unable to create SlotDisplaysData with id: " + std::to_string(
static_cast<int>(type)) +
".");
47 Data = std::make_shared<SlotDisplayDataEmpty>();
50 Data = std::make_shared<ItemSlotDisplay>();
53 Data = std::make_shared<ItemStackSlotDisplay>();
56 Data = std::make_shared<TagSlotDisplay>();
59 Data = std::make_shared<SmithingTrimDemoSlotDisplay>();
62 Data = std::make_shared<WithRemainderSlotDisplay>();
65 Data = std::make_shared<CompositeSlotDisplay>();
67#if PROTOCOL_VERSION > 774
69 Data = std::make_shared<WithAnyPotionSlotDisplay>();
72 Data = std::make_shared<OnlyWithComponentSlotDisplay>();
75 Data = std::make_shared<DyedSlotDemoDisplayData>();
80 throw std::runtime_error(
"Unable to create SlotDisplaysData with id: " + std::to_string(
static_cast<int>(Type)) +
".");