Class ResourcePackSendEvent
java.lang.Object
de.themoep.resourcepacksplugin.velocity.events.ResourcePackSendEvent
- All Implemented Interfaces:
com.velocitypowered.api.event.ResultedEvent<com.velocitypowered.api.event.ResultedEvent.GenericResult>
,IResourcePackSendEvent
public class ResourcePackSendEvent
extends Object
implements IResourcePackSendEvent, com.velocitypowered.api.event.ResultedEvent<com.velocitypowered.api.event.ResultedEvent.GenericResult>
Created by Phoenix616 on 18.04.2015.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.velocitypowered.api.event.ResultedEvent
com.velocitypowered.api.event.ResultedEvent.ComponentResult, com.velocitypowered.api.event.ResultedEvent.GenericResult, com.velocitypowered.api.event.ResultedEvent.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPack()
com.velocitypowered.api.event.ResultedEvent.GenericResult
boolean
void
setCancelled
(boolean cancelled) void
setPack
(ResourcePack pack) Set the pack that should be send.void
setResult
(com.velocitypowered.api.event.ResultedEvent.GenericResult result)
-
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 interfaceIResourcePackSendEvent
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceIResourcePackSendEvent
-
getResult
public com.velocitypowered.api.event.ResultedEvent.GenericResult getResult()- Specified by:
getResult
in interfacecom.velocitypowered.api.event.ResultedEvent<com.velocitypowered.api.event.ResultedEvent.GenericResult>
-
setResult
public void setResult(com.velocitypowered.api.event.ResultedEvent.GenericResult result) - Specified by:
setResult
in interfacecom.velocitypowered.api.event.ResultedEvent<com.velocitypowered.api.event.ResultedEvent.GenericResult>
-