Class ResourcePackSendEvent
java.lang.Object
org.bukkit.event.Event
de.themoep.resourcepacksplugin.bukkit.events.ResourcePackSendEvent
- All Implemented Interfaces:
IResourcePackSendEvent
,org.bukkit.event.Cancellable
public class ResourcePackSendEvent extends org.bukkit.event.Event implements IResourcePackSendEvent, org.bukkit.event.Cancellable
Created by Phoenix616 on 18.04.2015.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
Constructors Constructor Description ResourcePackSendEvent(java.util.UUID playerId, ResourcePack pack)
-
Method Summary
Modifier and Type Method Description static org.bukkit.event.HandlerList
getHandlerList()
org.bukkit.event.HandlerList
getHandlers()
ResourcePack
getPack()
java.util.UUID
getPlayerId()
boolean
isCancelled()
void
setCancelled(boolean cancelled)
void
setPack(ResourcePack pack)
Set the pack that should be send.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
-
-
Method Details
-
getPlayerId
public java.util.UUID getPlayerId()- Specified by:
getPlayerId
in interfaceIResourcePackSendEvent
-
getPack
- Specified by:
getPack
in interfaceIResourcePackSendEvent
-
setPack
Description copied from interface:IResourcePackSendEvent
Set the pack that should be send. Set to null if you want to remove all packs/send the empty one- Specified by:
setPack
in interfaceIResourcePackSendEvent
- Parameters:
pack
- The pack to send, if it is null it will reset the pack to the empty one
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
- Specified by:
isCancelled
in interfaceIResourcePackSendEvent
-
setCancelled
public void setCancelled(boolean cancelled)- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
- Specified by:
setCancelled
in interfaceIResourcePackSendEvent
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-