ResourceQuantity

public class ResourceQuantity

Class ResourceQuantity. Provides resourcequantity functionality for the Hytale server.

java.lang.Object > ResourceQuantity

Field Summary

resourceId

protected String resourceId

Field resourceId.

quantity

protected int quantity

Field quantity.

itemStack

final ResourceQuantity itemStack

Field itemStack.

Method Detail

ResourceQuantity

public public ResourceQuantity (final String resourceId, final int quantity)

Method ResourceQuantity.

Parameters:
final String resourceId
final int quantity

getResourceId

public String getResourceId ()

Method getResourceId.

getQuantity

public int getQuantity ()

Method getQuantity.

clone

public ResourceQuantity clone (final int quantity)

Method clone.

Parameters:
final int quantity

getResourceType

public ItemResourceType getResourceType (@Nonnull final Item item)

Method getResourceType.

Parameters:
@Nonnull final Item item

equals

public boolean equals (@Nullable final Object o)

Method equals.

Parameters:
@Nullable final Object o

hashCode

public int hashCode ()

Method hashCode.

toString

public String toString ()

Method toString.