java.lang.Object
de.teamlapen.vampirism.api.entity.player.actions.DefaultAction<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
de.teamlapen.werewolves.entities.player.werewolf.actions.DefaultWerewolfAction
de.teamlapen.werewolves.entities.player.werewolf.actions.WerewolfFormAction
All Implemented Interfaces:
de.teamlapen.vampirism.api.entity.player.actions.IAction<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>, de.teamlapen.vampirism.api.entity.player.actions.ILastingAction<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>, de.teamlapen.vampirism.api.entity.player.skills.ISkillLike<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
Direct Known Subclasses:
BeastWerewolfFormAction, HumanWerewolfFormAction, SurvivalWerewolfFormAction

public abstract class WerewolfFormAction extends DefaultWerewolfAction implements de.teamlapen.vampirism.api.entity.player.actions.ILastingAction<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    protected static class 
     

    Nested classes/interfaces inherited from interface de.teamlapen.vampirism.api.entity.player.actions.IAction

    de.teamlapen.vampirism.api.entity.player.actions.IAction.ActivationContext, de.teamlapen.vampirism.api.entity.player.actions.IAction.PERM
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    WerewolfFormAction(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    activate(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf, de.teamlapen.vampirism.api.entity.player.actions.IAction.ActivationContext context)
     
    void
    applyModifier(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf, boolean night)
     
    boolean
    canBeUsedBy(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf)
     
    void
    checkDayNightModifier(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolfPlayer)
     
    protected void
    checkDayNightModifier(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolfPlayer, boolean night)
     
    boolean
    consumesWerewolfTime(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf)
     
     
    int
    getDuration(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf)
     
    de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm
     
    int
    getTimeModifier(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf)
    ticks this action can be used
    protected boolean
    increaseWerewolfTime(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolfPlayer)
     
    static boolean
    isWerewolfFormActionActive(de.teamlapen.vampirism.api.entity.player.actions.IActionHandler<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer> handler)
     
    void
    onActivatedClient(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolfPlayer)
     
    void
    onDeactivated(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf)
     
    void
    onReActivated(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf)
     
    boolean
    onUpdate(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolfPlayer)
     
    void
    removeModifier(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf)
     
    boolean
    usesTransformationTime(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf)
     

    Methods inherited from class de.teamlapen.werewolves.entities.player.werewolf.actions.DefaultWerewolfAction

    getFaction

    Methods inherited from class de.teamlapen.vampirism.api.entity.player.actions.DefaultAction

    addEffectInstance, asSkill, canUse, getTranslationKey, isEnabled, onActivated, removePotionEffect, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface de.teamlapen.vampirism.api.entity.player.actions.IAction

    asSkill, canUse, getCooldown, getFaction, getName, getTranslationKey, matchesFaction, onActivated, showHudCooldown, showInSelectAction

    Methods inherited from interface de.teamlapen.vampirism.api.entity.player.actions.ILastingAction

    showHudDuration
  • Field Details

  • Constructor Details

    • WerewolfFormAction

      public WerewolfFormAction(@Nonnull de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form)
  • Method Details

    • isWerewolfFormActionActive

      public static boolean isWerewolfFormActionActive(de.teamlapen.vampirism.api.entity.player.actions.IActionHandler<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer> handler)
    • getAllAction

      public static Set<WerewolfFormAction> getAllAction()
    • activate

      protected boolean activate(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf, de.teamlapen.vampirism.api.entity.player.actions.IAction.ActivationContext context)
      Specified by:
      activate in class de.teamlapen.vampirism.api.entity.player.actions.DefaultAction<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
    • onActivatedClient

      public void onActivatedClient(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolfPlayer)
      Specified by:
      onActivatedClient in interface de.teamlapen.vampirism.api.entity.player.actions.ILastingAction<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
    • onDeactivated

      public void onDeactivated(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf)
      Specified by:
      onDeactivated in interface de.teamlapen.vampirism.api.entity.player.actions.ILastingAction<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
    • onReActivated

      public void onReActivated(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf)
      Specified by:
      onReActivated in interface de.teamlapen.vampirism.api.entity.player.actions.ILastingAction<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
    • onUpdate

      public boolean onUpdate(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolfPlayer)
      Specified by:
      onUpdate in interface de.teamlapen.vampirism.api.entity.player.actions.ILastingAction<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
    • usesTransformationTime

      public boolean usesTransformationTime(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf)
    • increaseWerewolfTime

      protected boolean increaseWerewolfTime(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolfPlayer)
    • checkDayNightModifier

      public void checkDayNightModifier(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolfPlayer)
    • checkDayNightModifier

      protected void checkDayNightModifier(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolfPlayer, boolean night)
    • applyModifier

      public void applyModifier(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf, boolean night)
    • removeModifier

      public void removeModifier(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf)
    • getDuration

      public int getDuration(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf)
      Specified by:
      getDuration in interface de.teamlapen.vampirism.api.entity.player.actions.ILastingAction<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
    • canBeUsedBy

      public boolean canBeUsedBy(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf)
      Overrides:
      canBeUsedBy in class de.teamlapen.vampirism.api.entity.player.actions.DefaultAction<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
    • consumesWerewolfTime

      public boolean consumesWerewolfTime(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf)
    • getTimeModifier

      public int getTimeModifier(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf)
      ticks this action can be used
    • getForm

      @Nonnull public de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm getForm()