Class ResourceQuantity

java.lang.Object
com.hypixel.hytale.server.core.inventory.ResourceQuantity

public class ResourceQuantity extends Object
  • Field Details

    • resourceId

      protected String resourceId
    • quantity

      protected int quantity
  • Constructor Details

    • ResourceQuantity

      public ResourceQuantity(String resourceId, int quantity)
    • ResourceQuantity

      protected ResourceQuantity()
  • Method Details

    • getResourceId

      public String getResourceId()
    • getQuantity

      public int getQuantity()
    • clone

      @Nonnull public ResourceQuantity clone(int quantity)
    • getResourceType

      @Nullable public ItemResourceType getResourceType(@Nonnull Item item)
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object