Package dev.lone.itemsadder.api.Events
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
ConstructorsConstructorDescriptionResourcePackSendEvent
(org.bukkit.entity.Player player, String url, String hash, boolean isItemsAdderPack) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
getHash()
Get hash of the sent resourcepack.getUrl()
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
-
Constructor Details
-
ResourcePackSendEvent
-
-
Method Details
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList() -
getUrl
Get url of the sent resourcepack.- Returns:
- URL of the sent resourcepack.
-
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.
-