Promotion background
Easter Season IS HERE!
10% off limited time offer!
Ends in
00
H
00
M
00
S
limited time offer SAVE 10% NOW →
Packages com.phoenixplugins.phoenixcrates.api crate
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 and Description
      org.bukkit.Location getLocation()
      Get the location of the crate.
      CrateType getType()
      Get the type of the crate.
      void openCrate(OpeningContext context)
      Opens the crate using the provided OpeningContext, which contains all necessary information about the player, crate, and any conditions (such as key requirements).
    • Method Detail

      • 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 about 3 hours ago
My Cart (0 items)

Oops... looks like the spiders padded through here

Add products to your cart and remove them from here Lets buy
This site uses cookies to personalize content, enhance your experience. By continuing, you agree to our cookie use. Learn more