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>> mActors;
53 ::ll::TypedStorage<8, 48, ::HashedString const> mRecipeTag;
54 ::ll::TypedStorage<4, 4, int const> mBurnInterval;
55 ::ll::TypedStorage<1, 1, bool> mOpenByLocalPlayer;
56 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::LevelSoundEvent> mSmeltSoundEvent;
57 ::ll::TypedStorage<4, 4, int> mSoundTick;
58 ::ll::TypedStorage<4, 4, int> mSoundTickTarget;
59 ::ll::TypedStorage<8, 8, ::Block const&> mUnlitFurnace;
60 ::ll::TypedStorage<8, 8, ::Block const&> mLitFurnace;
61 ::ll::TypedStorage<8, 128, ::ItemInstance> mLastFuelItem;
62 ::ll::TypedStorage<1, 1, bool> mNoDrop;
63 ::ll::TypedStorage<1, 1, bool> mNeedsLitStateFixup;
76 virtual ::ItemStack
const& getItem(
int slot)
const ;
79 virtual void setItem(
int modelSlot,
::ItemStack const& item) ;
82 virtual ::std::string getName()
const ;
85 virtual int getMaxStackSize()
const ;
88 virtual int getContainerSize()
const ;
94 virtual void startOpen(
::Actor& actor) ;
97 virtual void stopOpen(
::Actor& actor) ;
100 virtual bool canPushInItem(
int slot,
int face,
::ItemStack const& item)
const ;
103 virtual bool canPullOutItem(
int slot,
int face,
::ItemStack const& item)
const ;
106 virtual ::Container* getContainer() ;
109 virtual ::Container
const* getContainer()
const ;
127 virtual void onMove() ;
130 virtual void serverInitItemStackIds(
133 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
140 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource& region) ;
153 ::BlockActorType blockActorType,
156 ::SharedTypes::Legacy::LevelSoundEvent smeltSound,
157 ::SharedTypes::Legacy::ContainerType containerType,
165 MCAPI
void burn(
::Recipes const& recipes);
167 MCAPI
bool canBurn(
::Recipes const& recipes);
171 MCAPI
void checkForSmeltEverythingAchievement(
::BlockSource& region);
173 MCAPI
int withdrawStoredXPReward();
179 MCAPI
static float _getXPRewardMultiplier(
::ItemStackBase const& item);
181 MCAPI
static int getAvailableFuelSetCount(
int slot,
::ItemStackBase const& item);
183 MCAPI
static float getBurnDuration(
::ItemStackBase const& itemInstance,
float burnInterval);
185 MCAPI
static float getItemBurnDuration(
::Item const& item,
float burnInterval);
187 MCAPI
static int getXPRewardFromSmeltingItems(
::ItemStackBase const& item,
int numItemsSmelted);
193 MCAPI static ::std::string
const& BURN_DURATION_KEY();
195 MCAPI
static int const& BURN_INTERVAL();
197 MCAPI static ::std::string
const& BURN_TIME_KEY();
199 MCAPI static ::std::string
const& COOK_TIME_KEY();
201 MCAPI static ::std::string
const& CUSTOM_NAME_KEY();
203 MCAPI
static float const& DEFAULT_SMELTING_TIME();
205 MCAPI static ::std::string
const& FILTERED_CUSTOM_NAME_KEY();
207 MCAPI static ::std::string
const& ITEMS_LIST_KEY();
209 MCAPI static ::std::string
const& LAST_FUEL_KEY();
211 MCAPI static ::std::string
const& SLOT_KEY();
213 MCAPI static ::std::string
const& STORED_XP_DEPRECATED_KEY();
215 MCAPI static ::std::string
const& STORED_XP_KEY();
222 ::BlockActorType blockActorType,
225 ::SharedTypes::Legacy::LevelSoundEvent smeltSound,
226 ::SharedTypes::Legacy::ContainerType containerType,
242 MCFOLD ::ItemStack
const& $getItem(
int slot)
const;
244 MCAPI
void $setItem(
int modelSlot,
::ItemStack const& item);
246 MCAPI ::std::string $getName()
const;
248 MCFOLD
int $getMaxStackSize()
const;
250 MCFOLD
int $getContainerSize()
const;
254 MCAPI
void $startOpen(
::Actor& actor);
256 MCAPI
void $stopOpen(
::Actor& actor);
258 MCAPI
bool $canPushInItem(
int slot,
int face,
::ItemStack const& item)
const;
260 MCAPI
bool $canPullOutItem(
int slot,
int face,
::ItemStack const& item)
const;
262 MCFOLD ::Container* $getContainer();
264 MCFOLD ::Container
const* $getContainer()
const;
276 MCFOLD
void $onMove();
278 MCAPI
void $serverInitItemStackIds(
281 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
286 MCAPI ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource& region);
Definition SaveContext.h:5