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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Field Summary
Fields inherited from class me.deecaad.weaponmechanics.weapon.weaponevents.WeaponEvent
weaponTitleFields inherited from class org.bukkit.event.entity.EntityEvent
entity -
Constructor Summary
ConstructorsConstructorDescriptionWeaponHapticEvent(String weaponTitle, org.bukkit.inventory.ItemStack weaponStack, org.bukkit.entity.LivingEntity shooter, org.bukkit.inventory.EquipmentSlot hand, org.vivecraft.api.data.VRBodyPart part, float duration, float frequency, float amplitude, float delay) -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatgetDelay()floatfloatstatic org.bukkit.event.HandlerListorg.bukkit.event.HandlerListorg.vivecraft.api.data.VRBodyPartgetPart()booleanvoidsetAmplitude(float amplitude) voidsetCancelled(boolean b) voidsetDelay(float delay) voidsetDuration(float duration) voidsetFrequency(float frequency) voidsetPart(org.vivecraft.api.data.VRBodyPart part) Methods inherited from class me.deecaad.weaponmechanics.weapon.weaponevents.WeaponEvent
getHand, getHandData, getShooter, getShooterWrapper, getWeaponStack, getWeaponTitle, isMainHand, isOffHandMethods inherited from class org.bukkit.event.entity.EntityEvent
getEntity, getEntityTypeMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
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:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean b) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getHandlers
@NotNull public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-