Class ResourcePackSendEvent

java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
de.themoep.resourcepacksplugin.sponge.events.ResourcePackSendEvent
All Implemented Interfaces:
IResourcePackSendEvent, org.spongepowered.api.event.Cancellable, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent, org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent, org.spongepowered.api.event.entity.living.TargetLivingEvent, org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Event

public class ResourcePackSendEvent extends org.spongepowered.api.event.impl.AbstractEvent implements IResourcePackSendEvent, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent, org.spongepowered.api.event.Cancellable
Created by Phoenix616 on 18.04.2015.
  • Constructor Details

    • ResourcePackSendEvent

      public ResourcePackSendEvent(org.spongepowered.api.entity.living.player.Player player, ResourcePack pack, org.spongepowered.api.event.cause.Cause cause)
  • Method Details

    • getPlayerId

      public UUID getPlayerId()
      Specified by:
      getPlayerId in interface IResourcePackSendEvent
    • getPack

      public ResourcePack getPack()
      Specified by:
      getPack in interface IResourcePackSendEvent
    • setPack

      public void setPack(ResourcePack pack)
      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 interface IResourcePackSendEvent
      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 interface org.spongepowered.api.event.Cancellable
      Specified by:
      isCancelled in interface IResourcePackSendEvent
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.spongepowered.api.event.Cancellable
      Specified by:
      setCancelled in interface IResourcePackSendEvent
    • getTargetEntity

      public org.spongepowered.api.entity.living.player.Player getTargetEntity()
      Specified by:
      getTargetEntity in interface org.spongepowered.api.event.entity.TargetEntityEvent
      Specified by:
      getTargetEntity in interface org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent
      Specified by:
      getTargetEntity in interface org.spongepowered.api.event.entity.living.TargetLivingEvent
      Specified by:
      getTargetEntity in interface org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent
    • getCause

      public org.spongepowered.api.event.cause.Cause getCause()
      Specified by:
      getCause in interface org.spongepowered.api.event.Event