Class CauldronManager

java.lang.Object
wtf.choco.alchema.cauldron.CauldronManager

public final class CauldronManager
extends java.lang.Object
Manages instances of AlchemicalCauldron in any given world.
Author:
Parker Hawke - Choco
  • Constructor Details

    • CauldronManager

      public CauldronManager()
  • Method Details

    • addCauldron

      public void addCauldron​(@NotNull @NotNull AlchemicalCauldron cauldron)
      Add an AlchemicalCauldron to the world.
      Parameters:
      cauldron - the cauldron to add
    • removeCauldron

      public void removeCauldron​(@NotNull @NotNull AlchemicalCauldron cauldron)
      Remove an AlchemicalCauldron from the world.
      Parameters:
      cauldron - the cauldron to remove
    • getCauldron

      @Nullable public @Nullable AlchemicalCauldron getCauldron​(@NotNull @NotNull org.bukkit.block.Block block)
      Get an AlchemicalCauldron at the specified Block. If no cauldron is present, null is returned.
      Parameters:
      block - the block from which to get a cauldron
      Returns:
      the alchemical cauldron at the block. null if none
    • getCauldron

      @Nullable public @Nullable AlchemicalCauldron getCauldron​(@NotNull @NotNull org.bukkit.Location location)
      Get an AlchemicalCauldron at the specified Location. If no cauldron is present, null is returned.
      Parameters:
      location - the location at which to get a cauldron
      Returns:
      the alchemical cauldron at the location. null if none
    • getCauldrons

      @NotNull public @NotNull java.util.Collection<@NotNull AlchemicalCauldron> getCauldrons()
      Get an unmodifiable collection of all AlchemicalCauldrons in this manager.
      Returns:
      all cauldrons
    • clearCauldrons

      public void clearCauldrons()
      Clear all alchemical cauldrons from the world.