public class ResourcePackSendEvent extends net.md_5.bungee.api.plugin.Event implements IResourcePackSendEvent, net.md_5.bungee.api.plugin.Cancellable
Constructor and Description |
---|
ResourcePackSendEvent(UUID playerId,
ResourcePack pack) |
Modifier and Type | Method and Description |
---|---|
ResourcePack |
getPack() |
UUID |
getPlayerId() |
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setPack(ResourcePack pack)
Set the pack that should be send.
|
public ResourcePackSendEvent(UUID playerId, ResourcePack pack)
public UUID getPlayerId()
getPlayerId
in interface IResourcePackSendEvent
public ResourcePack getPack()
getPack
in interface IResourcePackSendEvent
public void setPack(ResourcePack pack)
IResourcePackSendEvent
setPack
in interface IResourcePackSendEvent
pack
- The pack to send, if it is null it will reset the pack to the empty onepublic boolean isCancelled()
isCancelled
in interface IResourcePackSendEvent
isCancelled
in interface net.md_5.bungee.api.plugin.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface IResourcePackSendEvent
setCancelled
in interface net.md_5.bungee.api.plugin.Cancellable
Copyright © 2019. All rights reserved.