Skip to content

Class endstone::ComplexAliasIngredient

ClassList > endstone > ComplexAliasIngredient

Represents an ingredient that matches any item an id stands for.

  • #include <endstone/inventory/complex_alias_ingredient.h>

Inherits the following classes: endstone::RecipeIngredient

Public Functions

Type Name
virtual const std::string & getAlias () const = 0
Gets the alias that this ingredient will match.
~ComplexAliasIngredient () override

Public Functions inherited from endstone::RecipeIngredient

See endstone::RecipeIngredient

Type Name
virtual int getCount () const = 0
Get how many items this ingredient consumes.
virtual bool test (const ItemStack & item) const = 0
~RecipeIngredient () override

Public Functions inherited from endstone::Object

See endstone::Object

Type Name
T * as ()
Attempts to cast this object to the given type T.
const T * as () const
Attempts to cast this object to the given type T.
virtual ClassInfo getClassInfo () const = 0
bool is () const
Checks if this object is an instance of the given type T (or a subclass of T).
virtual bool isInstanceOf (ClassInfo target) const = 0
virtual ~Object () = default

Public Functions Documentation

function getAlias

Gets the alias that this ingredient will match.

virtual const std::string & endstone::ComplexAliasIngredient::getAlias () const = 0

The id predates the item flattening, such as minecraft:planks, and stands for every item it was split into. It is not an item tag, and the items are not reported.

Returns:

the alias


function ~ComplexAliasIngredient

endstone::ComplexAliasIngredient::~ComplexAliasIngredient () override


The documentation for this class was generated from the following file include/endstone/inventory/complex_alias_ingredient.h