HyCodeYourTale
classpublicPriority 3

MaterialQuantity

com.hypixel.hytale.server.core.inventory.MaterialQuantity

implements NetworkSerializable

11

Methods

11

Public Methods

6

Fields

2

Constructors

Constants

BuilderCodec<MaterialQuantity>CODEC= BuilderCodec.builder(MaterialQuantity.class, MaterialQuantity::new) .addField( new...
MaterialQuantity[]EMPTY_ARRAY= new MaterialQuantity[0]

Constructors

protected
MaterialQuantity()
public
MaterialQuantity(String itemId, String resourceTypeId, String tag, int quantity, BsonDocument metadata)

Methods

Public Methods (11)

public
boolean equals(Object o)
@Override
public
String getItemId()
@Nullable
public
BsonDocument getMetadata()
public
int getQuantity()
public
String getResourceTypeId()
@Nullable
public
int getTagIndex()
public
int hashCode()
@Override
public
ItemStack toItemStack()
@Nullable
public
com.hypixel.hytale.protocol.MaterialQuantity toPacket()
@Nonnull
public
ResourceQuantity toResource()
@Nullable
public
String toString()
@Nonnull@Override

Fields

Protected Fields (6)

protectedString itemId
protectedBsonDocument metadata
protectedint quantity
protectedString resourceTypeId
protectedString tag
protectedint tagIndex

Related Classes