Skip to content

MaterialQuantity

Package: com.hypixel.hytale.server.core.inventory

public class MaterialQuantity implements NetworkSerializable<com.hypixel.hytale.protocol.MaterialQuantity>

Represents a quantity of a material identified by item ID, resource type ID, and/or item tag. Used in crafting recipes and material requirements. Can be converted to an ItemStack or ResourceQuantity.

ModifierTypeName
public static finalMaterialQuantity[]EMPTY_ARRAY
public static finalBuilderCodec<MaterialQuantity>CODEC
ModifierReturn TypeSignature
publicStringgetItemId()
publicStringgetResourceTypeId()
publicintgetTagIndex()
publicintgetQuantity()
publicBsonDocumentgetMetadata()
publicMaterialQuantityclone(int quantity)
publicItemStacktoItemStack()
publicResourceQuantitytoResource()
publiccom.hypixel.hytale.protocol.MaterialQuantitytoPacket()
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.