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

Classes

struct  BaseDescriptor
 
struct  ItemEntry
 

Public Types

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

Public Member Functions

 ItemDescriptor (ItemDescriptor const &)
 
virtual void serialize (::Json::Value &val) const
 
virtual void serialize (::BinaryStream &stream) const
 
MCAPI ItemDescriptor (::Block const &block)
 
MCAPI ItemDescriptor (::BlockLegacy const &block)
 
MCAPI ItemDescriptor (::ItemTag const &itemTag)
 
MCAPI ItemDescriptor (::ReadOnlyBinaryStream &stream)
 
MCAPI ItemDescriptor (::std::string_view fullName, int itemAux)
 
MCAPI ItemDescriptor (::Item const &item, int auxValue)
 
MCAPI ItemDescriptor (::Json::Value const &val, ::MolangVersion molangVersion)
 
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 void operator= (::ItemDescriptor const &rhs)
 
MCAPI void operator= (::ItemDescriptor &&rhs)
 
MCAPI bool sameItem (::ItemDescriptor const &otherItemDescriptor, bool compareAux) const
 
MCAPI ::std::optional<::CompoundTagsave () 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)
 
MCFOLD void $dtor ()
 
MCAPI void $serialize (::Json::Value &val) const
 
MCAPI void $serialize (::BinaryStream &stream) const
 

Static Public Member Functions

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

Public Attributes

::ll::TypedStorage< 8, 8, ::std::unique_ptr<::ItemDescriptor::BaseDescriptor > > mImpl
 

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