Class WeaponHapticEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
me.deecaad.weaponmechanics.weapon.weaponevents.WeaponEvent
me.deecaad.weaponmechanics.weapon.weaponevents.WeaponHapticEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class WeaponHapticEvent extends WeaponEvent implements org.bukkit.event.Cancellable
  • Constructor Details

    • WeaponHapticEvent

      public WeaponHapticEvent(String weaponTitle, org.bukkit.inventory.ItemStack weaponStack, org.bukkit.entity.LivingEntity shooter, org.bukkit.inventory.EquipmentSlot hand, @Nullable org.vivecraft.api.data.VRBodyPart part, float duration, float frequency, float amplitude, float delay)
  • Method Details

    • getPart

      @Nullable public org.vivecraft.api.data.VRBodyPart getPart()
    • setPart

      public void setPart(@Nullable org.vivecraft.api.data.VRBodyPart part)
    • getDuration

      public float getDuration()
    • setDuration

      public void setDuration(float duration)
    • getFrequency

      public float getFrequency()
    • setFrequency

      public void setFrequency(float frequency)
    • getAmplitude

      public float getAmplitude()
    • setAmplitude

      public void setAmplitude(float amplitude)
    • getDelay

      public float getDelay()
    • setDelay

      public void setDelay(float delay)
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean b)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getHandlers

      @NotNull public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()