Packages com.phoenixplugins.phoenixcrates.api crate

Interface CrateInstance


public interface CrateInstance
The Crate interface represents a container that can hold items and be opened by players. It defines methods for retrieving the type of the crate, its location, and opening it.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.Location
    Get the location of the crate.
    Get the type of the crate.
    void
    Opens the crate using the provided OpeningContext, which contains all necessary information about the player, crate, and any conditions (such as key requirements).
  • Method Details

    • getType

      CrateType getType()
      Get the type of the crate.
      Returns:
      The type of the crate.
    • getLocation

      org.bukkit.Location getLocation()
      Get the location of the crate.
      Returns:
      The location of the crate.
    • openCrate

      void openCrate(OpeningContext context) throws CrateOpeningException
      Opens the crate using the provided OpeningContext, which contains all necessary information about the player, crate, and any conditions (such as key requirements).
      Parameters:
      context - the context for this crate opening operation, including the player and options
      Throws:
      CrateOpeningException - if an error occurs while opening the crate
Last updated 10 days ago
My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping