public class MaterialQuantity implements NetworkSerializable
Class MaterialQuantity. Provides materialquantity functionality for the Hytale server.
java.lang.Object > MaterialQuantity
Field Summary
itemId
protected
String
itemId
Field itemId.
resourceTypeId
protected
String
resourceTypeId
Field resourceTypeId.
tag
protected
String
tag
Field tag.
tagIndex
protected
int
tagIndex
Field tagIndex.
quantity
protected
int
quantity
Field quantity.
metadata
protected
BsonDocument
metadata
Field metadata.
packet
final
com.hypixel.hytale.protocol.MaterialQuantity
packet
Field packet.
that
final
MaterialQuantity
that
Field that.
Method Detail
MaterialQuantity
public
public
MaterialQuantity
(@Nullable final String itemId, @Nullable final String resourceTypeId, @Nullable final String tag, final int quantity, final BsonDocument metadata)
Method MaterialQuantity.
- Parameters:
@Nullable final StringitemId@Nullable final StringresourceTypeId@Nullable final Stringtagfinal intquantityfinal BsonDocumentmetadata
getItemId
public
String
getItemId
()
Method getItemId.
getResourceTypeId
public
String
getResourceTypeId
()
Method getResourceTypeId.
getTagIndex
public
int
getTagIndex
()
Method getTagIndex.
getQuantity
public
int
getQuantity
()
Method getQuantity.
getMetadata
public
BsonDocument
getMetadata
()
Method getMetadata.
clone
Method clone.
- Parameters:
final intquantity
toPacket
public
com.hypixel.hytale.protocol.MaterialQuantity
toPacket
()
Method toPacket.
equals
public
boolean
equals
(@Nullable final Object o)
Method equals.
- Parameters:
@Nullable final Objecto
if
public
else
if
(that.itemId == null)
Method if.
- Parameters:
that.itemId ==null
hashCode
public
int
hashCode
()
Method hashCode.
toString
public
String
toString
()
Method toString.