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 (::RecipeIngredient const &)
MCAPI RecipeIngredient (::ReadOnlyBinaryStream &stream)
MCAPI RecipeIngredient (::Block const &block, ushort stackSize)
MCAPI RecipeIngredient (::BlockType const &block, ushort stackSize)
MCAPI RecipeIngredient (::ItemTag const &itemTag, ushort stackSize)
MCAPI RecipeIngredient (::Item const &item, int auxValue, ushort stackSize)
MCAPI RecipeIngredient (::std::string_view item, int auxValue, ushort stackSize)
MCFOLD::RecipeIngredient & operator= (::RecipeIngredient const &)
MCAPI void * $ctor (::RecipeIngredient const &)
MCAPI void * $ctor (::ReadOnlyBinaryStream &stream)
MCAPI void * $ctor (::Block const &block, ushort stackSize)
MCAPI void * $ctor (::BlockType const &block, ushort stackSize)
MCAPI void * $ctor (::ItemTag const &itemTag, ushort stackSize)
MCAPI void * $ctor (::Item const &item, int auxValue, ushort stackSize)
MCAPI void * $ctor (::std::string_view item, int auxValue, ushort stackSize)
MCFOLD 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 (::BlockType const &block)
MCAPI void * $ctor (::ItemTag const &itemTag)
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 ::WeakPtr<::BlockType const > const & getBlockType () const
MCAPI::std::string getFullName () const
MCAPI short getId () const
MCAPI int getIdAux () const
MCAPI::Item const * getItem () 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 ::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: