HyCodeYourTale
classpublicPriority 3

TestRemoveItemSlotResult

com.hypixel.hytale.server.core.inventory.container.TestRemoveItemSlotResult

2

Methods

2

Public Methods

1

Fields

1

Constructors

Constructors

public
TestRemoveItemSlotResult(int testQuantityRemaining)

Methods

Public Methods (2)

public
Set<Short> getPickedSlots()
public
boolean hasResult()

Fields

Private/Package Fields (1)

package-privateint quantityRemaining

Source Code

package com.hypixel.hytale.server.core.inventory.container;

import it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap;
import java.util.Map;
import java.util.Set;

public class TestRemoveItemSlotResult {
   Map<Short, Integer> picked = new Object2IntOpenHashMap();
   int quantityRemaining;

   public TestRemoveItemSlotResult(int testQuantityRemaining) {
      this.quantityRemaining = testQuantityRemaining;
   }

   public boolean hasResult() {
      return !this.picked.isEmpty();
   }

   public Set<Short> getPickedSlots() {
      return this.picked.keySet();
   }
}