Uses of Interface
com.hazebyte.crate.api.crate.Crate
-
Packages that use Crate Package Description com.hazebyte.crate.api.claim com.hazebyte.crate.api.crate Classes related toCrate
com.hazebyte.crate.api.crate.reward Classes related toReward
com.hazebyte.crate.api.event Classes dedicated to handling code triggers. -
-
Uses of Crate in com.hazebyte.crate.api.claim
Methods in com.hazebyte.crate.api.claim with parameters of type Crate Modifier and Type Method Description CompletableFuture<Claim>
ClaimRegistrar. addClaim(org.bukkit.OfflinePlayer player, Crate crate, int amount)
-
Uses of Crate in com.hazebyte.crate.api.crate
Methods in com.hazebyte.crate.api.crate that return Crate Modifier and Type Method Description Crate
CrateRegistrar. createCrate(String name, CrateType type)
Returns a crate with the given name, and type.Crate
BlockCrateRegistrar. getCrate(org.bukkit.Location location, Crate crate)
Returns the crate if it exists at the location.Crate
BlockCrateRegistrar. getCrate(org.bukkit.Location location, String crateName)
Returns the crate with the crate name at the location.Crate
CrateRegistrar. getCrate(String str)
Retrieves the specifiedCrate
given the crate identifier name.Crate
CrateRegistrar. getCrate(org.bukkit.inventory.ItemStack item)
Retrieves the specifiedCrate
with a item.Crate
BlockCrateRegistrar. getFirstCrate(org.bukkit.Location location)
Returns the first crate, if it exists, at the location.Methods in com.hazebyte.crate.api.crate that return types with arguments of type Crate Modifier and Type Method Description List<Crate>
CrateRegistrar. getCrateFromDisplayName(String str)
Retrieves the specifiedCrate
given the display name.List<Crate>
BlockCrateRegistrar. getCrates(org.bukkit.Location location)
Returns the list of crates at a given location.List<Crate>
CrateRegistrar. getCrates()
Returns a list of cratesMethods in com.hazebyte.crate.api.crate with parameters of type Crate Modifier and Type Method Description void
CrateRegistrar. add(Crate crate)
Adds a crate to the plugin.List<Reward>
CrateRegistrar. generateCrateRewards(Crate crate, org.bukkit.entity.Player player)
Uses the built-in reward generator to pick a prize for a player.Crate
BlockCrateRegistrar. getCrate(org.bukkit.Location location, Crate crate)
Returns the crate if it exists at the location.void
CrateRegistrar. giveCrate(Crate crate, org.bukkit.entity.Player player, int amount)
Gives the specified player the specified amount of crates.boolean
BlockCrateRegistrar. hasCrate(org.bukkit.Location location, Crate crate)
Returns true if the crate exists at the location.void
CrateRegistrar. open(Crate crate, org.bukkit.entity.Player player, org.bukkit.Location location)
void
CrateRegistrar. open(Crate crate, org.bukkit.entity.Player player, org.bukkit.Location location, Map<String,Object> settings)
void
CrateRegistrar. openConfirmationPage(Crate crate, org.bukkit.entity.Player player, org.bukkit.Location location)
void
CrateRegistrar. preview(Crate crate, org.bukkit.entity.Player player)
Previews a crate in a built-in menu.boolean
CrateRegistrar. purchase(Crate crate, org.bukkit.entity.Player player, int amount)
Sends a playeramount
of this crate and withdraws the cost of the crate.void
CrateRegistrar. remove(Crate crate)
Removes a crate from the plugin.boolean
BlockCrateRegistrar. removeCrate(org.bukkit.Location location, Crate crate)
save
defaults totrue
boolean
BlockCrateRegistrar. removeCrate(org.bukkit.Location location, Crate crate, boolean save)
Removes a location from listening for crate events.boolean
BlockCrateRegistrar. setCrate(org.bukkit.Location location, Crate crate)
save
defaults totrue
.boolean
BlockCrateRegistrar. setCrate(org.bukkit.Location location, Crate crate, boolean save)
Sets a location to listen for crate events.Method parameters in com.hazebyte.crate.api.crate with type arguments of type Crate Modifier and Type Method Description void
CrateRegistrar. previewAll(List<Crate> crates, org.bukkit.entity.Player player)
Previews all crates in a built-in menu. -
Uses of Crate in com.hazebyte.crate.api.crate.reward
Methods in com.hazebyte.crate.api.crate.reward that return Crate Modifier and Type Method Description Crate
Reward. getParent()
Returns the crate that this reward belongs to.Methods in com.hazebyte.crate.api.crate.reward with parameters of type Crate Modifier and Type Method Description void
Reward. setParent(Crate crate)
-
Uses of Crate in com.hazebyte.crate.api.event
Fields in com.hazebyte.crate.api.event declared as Crate Modifier and Type Field Description protected Crate
CrateInteractEvent. crate
Methods in com.hazebyte.crate.api.event that return Crate Modifier and Type Method Description Crate
CrateGiveEvent. getCrate()
Crate
CrateInteractEvent. getCrate()
Crate
CratePlaceEvent. getCrate()
Crate
CrateRemoveEvent. getCrate()
Crate
CrateRewardEvent. getCrate()
Crate
CrateSetEvent. getCrate()
Constructors in com.hazebyte.crate.api.event with parameters of type Crate Constructor Description CrateGiveEvent(org.bukkit.command.CommandSender sender, org.bukkit.OfflinePlayer player, Crate crate, int amount, boolean sendAll)
CrateInteractEvent(Crate crate, org.bukkit.entity.Player player, CrateAction action, org.bukkit.event.block.Action rootAction)
CrateInteractEvent(Crate crate, org.bukkit.entity.Player player, org.bukkit.Location location, CrateAction action, org.bukkit.event.block.Action rootAction)
CratePlaceEvent(Crate crate, org.bukkit.entity.Player player, org.bukkit.block.Block block)
CrateRemoveEvent(Crate crate, org.bukkit.Location location)
CrateRewardEvent(Crate crate, org.bukkit.entity.Player player, org.bukkit.Location location, List<Reward> rewards)
CrateSetEvent(Crate crate, org.bukkit.Location location)
-