java.lang.Object
me.deecaad.weaponmechanics.weapon.trigger.Trigger
All Implemented Interfaces:
me.deecaad.core.file.Serializer<Trigger>

public class Trigger extends Object implements me.deecaad.core.file.Serializer<Trigger>
  • Constructor Details

  • Method Details

    • check

      public boolean check(TriggerType triggerType, org.bukkit.inventory.EquipmentSlot slot, EntityWrapper entityWrapper)
      Checks if trigger is valid
      Parameters:
      triggerType - the trigger type
      slot - the slot used
      entityWrapper - the entity's wrapper from whom to check
      Returns:
      true if trigger is valid
    • checkCircumstances

      public boolean checkCircumstances(EntityWrapper entityWrapper)
      Parameters:
      entityWrapper - the entity's wrapper from whom to check
      Returns:
      true if circumstances are valid
    • getMainhand

      public TriggerType getMainhand()
      Returns:
      the trigger for main hand
    • getOffhand

      public TriggerType getOffhand()
      Returns:
      the trigger for off hand
    • getDualWieldMainHand

      public TriggerType getDualWieldMainHand()
    • getDualWieldOffHand

      public TriggerType getDualWieldOffHand()
    • getKeyword

      public String getKeyword()
      Specified by:
      getKeyword in interface me.deecaad.core.file.Serializer<Trigger>
    • serialize

      @NotNull public Trigger serialize(@NotNull me.deecaad.core.file.SerializeData data) throws me.deecaad.core.file.SerializerException
      Specified by:
      serialize in interface me.deecaad.core.file.Serializer<Trigger>
      Throws:
      me.deecaad.core.file.SerializerException