Class CrateOpenEvent

  • java.lang.Object
    • org.bukkit.event.Event
      • org.bukkit.event.player.PlayerEvent
        • com.yottabyte.crates.api.event.CrateOpenEvent
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.bukkit.event.Event

        org.bukkit.event.Event.Result
    • Field Summary

      • Fields inherited from class org.bukkit.event.player.PlayerEvent

        player
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CrateOpenEvent​(@NotNull org.bukkit.entity.Player who, @NotNull Crate crate, org.bukkit.block.Block block, @NotNull List<Reward> rewards)  
    • Constructor Detail

      • CrateOpenEvent

        protected CrateOpenEvent​(@NotNull
                                 @NotNull org.bukkit.entity.Player who,
                                 @NotNull
                                 @NotNull Crate crate,
                                 org.bukkit.block.Block block,
                                 @NotNull
                                 @NotNull List<Reward> rewards)
    • Method Detail

      • getHandlerList

        @NotNull
        public static @NotNull org.bukkit.event.HandlerList getHandlerList()
      • getHandlers

        @NotNull
        public @NotNull org.bukkit.event.HandlerList getHandlers()
        Specified by:
        getHandlers in class org.bukkit.event.Event
      • getCrate

        @NotNull
        public @NotNull Crate getCrate()
        Gets the Crate that was opened.
        Returns:
        the Crate that was opened
      • getBlock

        public org.bukkit.block.Block getBlock()
        Gets the Block that was clicked to open the crate.
        Returns:
        the Block that was clicked to open the crate
      • getRewards

        @NotNull
        public @NotNull List<Reward> getRewards()
        Gets the rewards that were won from the crate.
        Returns:
        the rewards that were won from the crate