Class ResourcePackSendEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
de.themoep.resourcepacksplugin.bungee.events.ResourcePackSendEvent
- All Implemented Interfaces:
IResourcePackSendEvent
,net.md_5.bungee.api.plugin.Cancellable
public class ResourcePackSendEvent
extends net.md_5.bungee.api.plugin.Event
implements IResourcePackSendEvent, net.md_5.bungee.api.plugin.Cancellable
Created by Phoenix616 on 18.04.2015.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPack()
boolean
void
setCancelled
(boolean cancelled) void
setPack
(ResourcePack pack) Set the pack that should be send.Methods inherited from class net.md_5.bungee.api.plugin.Event
postCall
-
Constructor Details
-
ResourcePackSendEvent
-
-
Method Details
-
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 interfacenet.md_5.bungee.api.plugin.Cancellable
- Specified by:
isCancelled
in interfaceIResourcePackSendEvent
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfacenet.md_5.bungee.api.plugin.Cancellable
- Specified by:
setCancelled
in interfaceIResourcePackSendEvent
-