Class ValueEvent

All Implemented Interfaces:
Serializable, Cloneable, HasValue, Notification
Direct Known Subclasses:
AbstractDamageEvent, ArmorChangedEvent, DrainEvent, ExcessHealingEvent, FatigueEvent, HealEvent, MaxHpIncreasedEvent, MaxManaChangedEvent, ModifyCurrentManaEvent, OverloadEvent, PhysicalAttackEvent

public class ValueEvent extends BasicGameEvent implements HasValue
An event that contains a value.
See Also:
  • Constructor Details

    • ValueEvent

      public ValueEvent(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType eventType, boolean isClientInterested, @NotNull @NotNull GameContext context, Player player, Entity source, Entity target, int value)
    • ValueEvent

      public ValueEvent(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType eventType, @NotNull @NotNull GameContext context, Player player, Entity source, Entity target, int value)
    • ValueEvent

      public ValueEvent(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType eventType, @NotNull @NotNull GameContext context, int playerId, Entity source, Entity target, int value)
    • ValueEvent

      public ValueEvent(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType eventType, @NotNull @NotNull GameContext context, int targetPlayerId, int sourcePlayerId, Entity target, int value)
    • ValueEvent

      public ValueEvent(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType eventType, boolean isClientInterested, GameContext context, int targetPlayerId, int sourcePlayerId, Entity target, int value)
  • Method Details

    • getValue

      public int getValue()
      Description copied from interface: HasValue
      Gets the value associated with the event.
      Specified by:
      getValue in interface HasValue
      Returns: