Class ResourcePackSendEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
dev.lone.itemsadder.api.Events.ResourcePackSendEvent

public class ResourcePackSendEvent extends org.bukkit.event.player.PlayerEvent
Event triggered when the server sends a resourcepack to the client. This event includes url, hash and also contains info if it's an ItemsAdder resourcepack or another plugin resourcepack.
  • 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
    Constructor
    Description
    ResourcePackSendEvent(org.bukkit.entity.Player player, String url, String hash, boolean isItemsAdderPack)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
     
    Get hash of the sent resourcepack.
    Get url of the sent resourcepack.
    boolean
    Get if it's the ItemsAdder resourcepack or another plugin tried to set its own resourcepack.

    Methods inherited from class org.bukkit.event.player.PlayerEvent

    getPlayer

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ResourcePackSendEvent

      public ResourcePackSendEvent(org.bukkit.entity.Player player, String url, String hash, boolean isItemsAdderPack)
  • Method Details

    • getHandlers

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

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

      public String getUrl()
      Get url of the sent resourcepack.
      Returns:
      URL of the sent resourcepack.
    • getHash

      public String getHash()
      Get hash of the sent resourcepack.
      Returns:
      Hash of the sent resourcepack.
    • isItemsAdderPack

      public boolean isItemsAdderPack()
      Get if it's the ItemsAdder resourcepack or another plugin tried to set its own resourcepack.
      Returns:
      true if it's the ItemsAdder resourcepack. False if another plugin tried to set its own resourcepack.