LeviLamina
Loading...
Searching...
No Matches
ItemStackDescriptor Class Reference
+ Inheritance diagram for ItemStackDescriptor:

Public Types

enum class  InternalType : uchar {
  Invalid = 0 , Default = 1 , Molang = 2 , ItemTag = 3 ,
  Deferred = 4 , ComplexAlias = 5
}
 

Public Member Functions

ItemStackDescriptoroperator= (ItemStackDescriptor const &)
 
 ItemStackDescriptor (ItemStackDescriptor const &)
 
MCAPI ItemStackDescriptor (::Item const &item, int auxValue, ushort stackSize, ::CompoundTag const *userData)
 
MCAPI::ItemStackDescriptor & operator= (::ItemStackDescriptor &&other)
 
MCAPI void * $ctor ()
 
MCAPI void * $ctor (::Item const &item, int auxValue, ushort stackSize, ::CompoundTag const *userData)
 
MCAPI void $dtor ()
 
virtual void serialize (::BinaryStream &stream) const
 
virtual void serialize (::Json::Value &val) const
 
MCAPI operator bool () const
 
MCAPI void * $ctor (::ItemDescriptorCount const &)
 
MCAPI void * $ctor (::Block const &block)
 
MCAPI void * $ctor (::BlockLegacy const &block)
 
MCAPI void * $ctor (::ItemTag const &itemTag)
 
MCAPI void * $ctor (::ReadOnlyBinaryStream &stream)
 
MCAPI void * $ctor (::std::string_view fullName, int itemAux)
 
MCAPI void * $ctor (::Item const &item, int auxValue)
 
MCAPI void * $ctor (::Json::Value const &val, ::MolangVersion molangVersion)
 
MCAPI void $serialize (::BinaryStream &stream) const
 
MCAPI void $serialize (::Json::Value &val) const
 
MCAPI void _resolve () const
 
MCAPI bool forEachItemUntil (::std::function< bool(::Item const &, short)> func) const
 
MCAPI short getAuxValue () const
 
MCAPI::Block const * getBlock () const
 
MCAPI short getId () const
 
MCAPI int getIdAux () const
 
MCAPI::Item const * getItem () const
 
MCAPI ::WeakPtr<::BlockLegacy const > const & getLegacyBlock () const
 
MCAPI::std::string getRawNameId () const
 
MCAPI::std::string getSerializedNameAndAux () const
 
MCAPI bool isNull () const
 
MCAPI bool isValid (bool shouldResolve) const
 
MCAPI bool sameItem (::ItemDescriptor const &otherItemDescriptor, bool compareAux) const
 
MCAPI ::std::optional<::CompoundTagsave () const
 

Static Public Member Functions

static MCAPI void ** $vftable ()
 
static MCAPI ::std::optional<::ItemDescriptorfromTag (::CompoundTag const *tag)
 
static MCAPI ::SharedTypes::Legacy::ItemDescriptor toSharedTypes (::ItemDescriptor const &id)
 

Public Attributes

::ll::TypedStorage< 8, 8, ::std::unique_ptr<::CompoundTag > > mUserData
 
::ll::TypedStorage< 2, 2, ushort > mStackSize
 
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::ItemDescriptor::BaseDescriptor > > mImpl
 

Member Function Documentation

◆ serialize()

virtual void ItemDescriptorCount::serialize ( ::BinaryStream & stream) const
virtualinherited

Reimplemented from ItemDescriptor.


The documentation for this class was generated from the following file: