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.SenseWerewolfAction
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.werewolves.api.entities.player.action.IActionCooldownMenu

public class SenseWerewolfAction extends DefaultWerewolfAction implements de.teamlapen.vampirism.api.entity.player.actions.ILastingAction<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>, de.teamlapen.werewolves.api.entities.player.action.IActionCooldownMenu
  • Nested Class Summary

    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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    activate(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer player, de.teamlapen.vampirism.api.entity.player.actions.IAction.ActivationContext context)
     
    int
    getCooldown(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf)
     
    int
    getDuration(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf)
     
    boolean
     
    void
    onActivatedClient(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer player)
     
    void
    onDeactivated(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer player)
     
    void
    onReActivated(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer player)
     
    boolean
    onUpdate(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer player)
     
    boolean
    showHudCooldown(net.minecraft.world.entity.player.Player player)
     
    boolean
    showHudDuration(net.minecraft.world.entity.player.Player player)
     

    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, canBeUsedBy, canUse, getName, getTranslationKey, 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

    canUse, getFaction, getName, getTranslationKey, matchesFaction, onActivated, showInSelectAction
  • Constructor Details

    • SenseWerewolfAction

      public SenseWerewolfAction()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in class de.teamlapen.vampirism.api.entity.player.actions.DefaultAction<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
    • activate

      protected boolean activate(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer player, 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>
    • 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>
    • onActivatedClient

      public void onActivatedClient(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer player)
      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 player)
      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 player)
      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 player)
      Specified by:
      onUpdate in interface de.teamlapen.vampirism.api.entity.player.actions.ILastingAction<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
    • getCooldown

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

      public boolean showHudCooldown(net.minecraft.world.entity.player.Player player)
      Specified by:
      showHudCooldown in interface de.teamlapen.vampirism.api.entity.player.actions.IAction<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
    • showHudDuration

      public boolean showHudDuration(net.minecraft.world.entity.player.Player player)
      Specified by:
      showHudDuration in interface de.teamlapen.vampirism.api.entity.player.actions.ILastingAction<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>