35class ItemStack :
public ::ItemStackBase {
39 ::ll::TypedStorage<8, 24, ::ItemStackNetIdVariant> mNetIdVariant;
45 virtual void reinit(
::Block const& block,
int count) ;
47 virtual void reinit(
::Item const& item,
int count,
int auxValue) ;
49 virtual void reinit(::std::string_view
const name,
int count,
int auxValue) ;
51 virtual void setNull(::std::optional<::std::string> reason) ;
53 virtual ::std::string toString()
const ;
55 virtual ::std::string toDebugString()
const ;
65 MCAPI ItemStack(::ItemStack
const& rhs);
71 MCAPI ItemStack(
::Item const& item,
int count = 1,
int auxValue = 0,
::CompoundTag const* _userData =
nullptr);
73 MCAPI ItemStack(::std::string_view name,
int count,
int auxValue,
::CompoundTag const* _userData);
75 MCAPI
void _assignNetIdVariant(::ItemStack
const& fromItem)
const;
78 MCAPI
bool canUseAsAttack()
const;
81 MCAPI
void clientInitLegacyRequestId(::ItemStackLegacyRequestId
const& legacyClientRequestId);
84 MCAPI
void clientInitNetId(::ItemStackNetId
const& serverNetId);
86 MCAPI
void clientInitRequestId(::ItemStackRequestId
const& clientRequestId);
89 MCAPI ::ItemStack clone()
const;
91 MCAPI
float getDestroySpeed(
::Block const& block)
const;
93 MCFOLD ::ItemStackNetIdVariant
const& getItemStackNetIdVariant()
const;
96 MCAPI ::Brightness getLightEmission()
const;
99 MCAPI
int getMaxUseDuration()
const;
101 MCAPI ::ItemStack getStrippedNetworkItem()
const;
103 MCAPI
bool hasItemStackNetId()
const;
105 MCAPI
bool inventoryTick(
::Level& level,
::Actor& owner,
int slot,
bool selected);
108 MCAPI
bool isBundle()
const;
111 MCAPI
bool matchesAndNetIdVariantMatches(::ItemStack
const& other)
const;
113 MCAPI
bool matchesNetIdVariant(::ItemStack
const& other)
const;
115 MCAPI ::ItemStack& operator=(::ItemStack
const& rhs);
117 MCAPI
void playSoundIncrementally(
::Mob& mob)
const;
119 MCAPI
void releaseUsing(
::Player* player,
int durationLeft);
121 MCAPI
bool sameItemAndAuxAndBlockData(::ItemStack
const& otherItemStack)
const;
123 MCAPI
void serverInitNetId();
125 MCAPI ::ItemStackNetId
const* tryGetItemStackNetId()
const;
128 MCAPI ::ItemStackRequestId
const* tryGetItemStackRequestId()
const;
131 MCAPI ::ItemStack& use(
::Player& player);
133 MCAPI ::ItemStack& useAsAttack(
::Player& player,
::Vec3 const& aimDirection);
135 MCAPI
void useAsFuel();
137 MCAPI ::InteractionResult useOn(
147 MCAPI ::ItemUseMethod useTimeDepleted(
::Level* level,
::Player* player);
153 MCAPI static ::ItemStack
164 MCAPI static ::ItemStack
const& EMPTY_ITEM();
174 MCAPI
void* $ctor(::ItemStack
const& rhs);
180 MCAPI
void* $ctor(
::Item const& item,
int count,
int auxValue,
::CompoundTag const* _userData);
182 MCAPI
void* $ctor(::std::string_view name,
int count,
int auxValue,
::CompoundTag const* _userData);
188 MCAPI
void $reinit(
::Block const& block,
int count);
190 MCAPI
void $reinit(
::Item const& item,
int count,
int auxValue);
192 MCAPI
void $reinit(::std::string_view
const name,
int count,
int auxValue);
194 MCAPI
void $setNull(::std::optional<::std::string> reason);
196 MCAPI ::std::string $toString()
const;
198 MCAPI ::std::string $toDebugString()
const;
206 MCAPI
static void** $vftable();
Definition ItemUsedOnEventContext.h:8