Class BuilderBucket

java.lang.Object
com.minecolonies.core.colony.buildings.utils.BuilderBucket

public class BuilderBucket extends Object
Represents a bucket of items the builder workers will pick up with them to go to the buildsite.
  • Constructor Details

    • BuilderBucket

      public BuilderBucket()
  • Method Details

    • getResourceMap

      public Map<String,Integer> getResourceMap()
      Get the required resources from the bucket.
      Returns:
      the map with the identifiers and count.
    • getTotalStacks

      public int getTotalStacks()
      Get how many total stacks were required up to now.
      Returns:
      the total stacks.
    • setTotalStacks

      public void setTotalStacks(int totalStacks)
      Set the required total stacks.
      Parameters:
      totalStacks - the total stucks.
    • addOrAdjustResource

      public void addOrAdjustResource(String key, int qty)
      Add additional resources.
      Parameters:
      key - the key to add.
      qty - the quantity to add.
    • removeResources

      public void removeResources(String name)
      Remove a specific resource.
      Parameters:
      name - the key.