46 ::ll::TypedStorage<4, 4, int> mLitTime;
47 ::ll::TypedStorage<4, 4, int> mLitDuration;
48 ::ll::TypedStorage<4, 4, int> mCookingProgress;
49 ::ll::TypedStorage<4, 4, uint> mStoredXP;
50 ::ll::TypedStorage<8, 456, ::ItemStack[3]> mItems;
51 ::ll::TypedStorage<1, 3, bool[3]> mDirty;
52 ::ll::TypedStorage<8, 64, ::std::unordered_set<::ActorUniqueID>> mPlayers;
53 ::ll::TypedStorage<8, 48, ::HashedString const> mRecipeTag;
54 ::ll::TypedStorage<4, 4, int const> mBurnInterval;
55 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::LevelSoundEvent> mSmeltSoundEvent;
56 ::ll::TypedStorage<4, 4, int> mSoundTick;
57 ::ll::TypedStorage<4, 4, int> mSoundTickTarget;
58 ::ll::TypedStorage<8, 8, ::Block const&> mUnlitFurnace;
59 ::ll::TypedStorage<8, 8, ::Block const&> mLitFurnace;
60 ::ll::TypedStorage<8, 128, ::ItemInstance> mLastFuelItem;
61 ::ll::TypedStorage<1, 1, bool> mNoDrop;
62 ::ll::TypedStorage<1, 1, bool> mNeedsLitStateFixup;
69 virtual ::ItemStack
const& getItem(
int slot)
const ;
72 virtual void setItem(
int slot,
::ItemStack const& item) ;
75 virtual ::std::string getName()
const ;
78 virtual int getMaxStackSize()
const ;
81 virtual int getContainerSize()
const ;
87 virtual void startOpen(
::Player& player) ;
90 virtual void stopOpen(
::Player& player) ;
93 virtual bool canPushInItem(
int slot,
int face,
::ItemStack const& item)
const ;
96 virtual bool canPullOutItem(
int slot,
int face,
::ItemStack const& item)
const ;
99 virtual ::Container* getContainer() ;
102 virtual ::Container
const* getContainer()
const ;
120 virtual void onMove() ;
123 virtual void serverInitItemStackIds(
126 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
133 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource& region) ;
146 ::BlockActorType blockActorType,
149 ::SharedTypes::Legacy::LevelSoundEvent smeltSound,
150 ::SharedTypes::Legacy::ContainerType containerType,
158 MCAPI
void burn(
::Recipes const& recipes);
160 MCAPI
bool canBurn(
::Recipes const& recipes);
164 MCAPI
void checkForSmeltEverythingAchievement(
::BlockSource& region);
166 MCAPI
int withdrawStoredXPReward();
172 MCAPI
static float _getXPRewardMultiplier(
::ItemStackBase const& item);
174 MCAPI
static int _roundXPReward(
float xpTotal);
176 MCAPI
static int getAvailableFuelSetCount(
int slot,
::ItemStackBase const& item);
178 MCAPI
static float getBurnDuration(
::ItemStackBase const& itemInstance,
float burnInterval);
180 MCAPI
static float getItemBurnDuration(
::Item const& item,
float burnInterval);
186 MCAPI static ::std::string
const& BURN_DURATION_KEY();
188 MCAPI
static int const& BURN_INTERVAL();
190 MCAPI static ::std::string
const& BURN_TIME_KEY();
192 MCAPI static ::std::string
const& COOK_TIME_KEY();
194 MCAPI static ::std::string
const& CUSTOM_NAME_KEY();
196 MCAPI
static float const& DEFAULT_SMELTING_TIME();
198 MCAPI static ::std::string
const& FILTERED_CUSTOM_NAME_KEY();
200 MCAPI static ::std::string
const& ITEMS_LIST_KEY();
202 MCAPI static ::std::string
const& LAST_FUEL_KEY();
204 MCAPI static ::std::string
const& SLOT_KEY();
206 MCAPI static ::std::string
const& STORED_XP_DEPRECATED_KEY();
208 MCAPI static ::std::string
const& STORED_XP_KEY();
215 ::BlockActorType blockActorType,
218 ::SharedTypes::Legacy::LevelSoundEvent smeltSound,
219 ::SharedTypes::Legacy::ContainerType containerType,
235 MCFOLD ::ItemStack
const& $getItem(
int slot)
const;
237 MCAPI
void $setItem(
int slot,
::ItemStack const& item);
239 MCAPI ::std::string $getName()
const;
241 MCFOLD
int $getMaxStackSize()
const;
243 MCFOLD
int $getContainerSize()
const;
247 MCAPI
void $startOpen(
::Player& player);
249 MCAPI
void $stopOpen(
::Player& player);
251 MCAPI
bool $canPushInItem(
int slot,
int face,
::ItemStack const& item)
const;
253 MCAPI
bool $canPullOutItem(
int slot,
int face,
::ItemStack const& item)
const;
255 MCFOLD ::Container* $getContainer();
257 MCFOLD ::Container
const* $getContainer()
const;
269 MCFOLD
void $onMove();
271 MCAPI
void $serverInitItemStackIds(
274 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
279 MCAPI ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource& region);
287 MCAPI
static void** $vftableForContainer();
289 MCAPI
static void** $vftableForBlockActor();
Definition SaveContext.h:5