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

Public Types

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

Public Member Functions

MCAPI RecipeIngredient (::ReadOnlyBinaryStream &stream)
MCAPI RecipeIngredient (::Block const &block, ushort stackSize)
MCAPI RecipeIngredient (::ItemDescriptor const &descriptor, ushort stackSize)
MCAPI RecipeIngredient (::Item const &item, int auxValue, ushort stackSize)
MCAPI RecipeIngredient (::std::string_view item, int auxValue, ushort stackSize)
MCAPI bool isEmpty () const
MCAPI void * $ctor (::ReadOnlyBinaryStream &stream)
MCAPI void * $ctor (::Block const &block, ushort stackSize)
MCAPI void * $ctor (::ItemDescriptor const &descriptor, ushort stackSize)
MCAPI void * $ctor (::Item const &item, int auxValue, ushort stackSize)
MCAPI void * $ctor (::std::string_view item, int auxValue, ushort stackSize)
virtual void serialize (::BinaryStream &stream) const
virtual void serialize (::Json::Value &val) const
MCAPI short getStackSize () const
MCAPI void setStackSize (short size)
MCAPI void * $ctor ()
MCAPI void * $ctor (::BlockType const &block, ushort stackSize)
MCAPI void * $ctor (::ItemTag const &itemTag, ushort stackSize)
MCAPI void * $ctor (::Block const &block)
MCAPI void * $ctor (::BlockType const &block)
MCAPI void * $ctor (::SharedTypes::Legacy::ItemDescriptor const &desc)
MCAPI void * $ctor (::ItemTag const &itemTag)
MCAPI void * $ctor (::ItemDescriptor &&rhs)
MCAPI void * $ctor (::ItemDescriptor const &rhs)
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 bool forEachItemUntil (::brstd::function_ref< bool(::Item const &, short)> func) const
MCAPI short getAuxValue () const
MCAPI::Block const * getBlock () const
MCAPI ::WeakPtr<::BlockType const > const & getBlockType () const
MCAPI::std::string getFullName () const
MCAPI uint64 getHash () const
MCAPI short getId () const
MCAPI int getIdAux () const
MCAPI::Item const * getItem () const
MCAPI::std::string getRawNameId () const
MCAPI::std::string getSerializedNameAndAux (bool removeInvalidAux) const
MCAPI bool isDefinedAsItemName () const
MCAPI bool isNull () const
MCAPI bool isValid (bool shouldResolve) const
MCAPI bool operator!= (::ItemDescriptor const &rhs) const
MCAPI bool operator== (::ItemDescriptor const &rhs) const
MCAPI bool sameItem (::ItemStack const &item, bool compareAux) const
MCAPI bool sameItem (::ItemDescriptor const &otherItemDescriptor, bool compareAux) const
MCAPI ::std::optional<::CompoundTagsave () const
MCAPI::std::string toString () const

Static Public Member Functions

static MCAPI ::RecipeIngredient & EMPTY_INGREDIENT ()
static MCAPI void ** $vftable ()
static MCAPI void bindType (::cereal::ReflectionCtx &ctx)
static MCAPI void fromSharedTypes (::ItemDescriptor &instance, ::SharedTypes::Legacy::ItemDescriptor const &desc)
static MCAPI ::std::optional<::ItemDescriptor > fromTag (::CompoundTag const *tag)
static MCAPI ::SharedTypes::Legacy::ItemDescriptor toSharedTypes (::ItemDescriptor const &id)

Public Attributes

::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: