Class LockedContainer

java.lang.Object
com.tccc.kos.ext.dispense.Container
com.tccc.kos.ext.dispense.LockedContainer

public class LockedContainer extends Container
Container that has a single ingredient ID and is marked as locked so that it cannot be removed.
Since:
1.0
Version:
2024-10-29
  • Constructor Details

    • LockedContainer

      public LockedContainer(String id, String ingredientId)
      Creates a new intrinsic container with the specified ID and ingredient ID.
      Parameters:
      id - ID of the container
      ingredientId - the ingredient ID
  • Method Details

    • isLocked

      public boolean isLocked()
      This container cannot be removed.
      Overrides:
      isLocked in class Container