Class WerewolfFormAction
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>
- 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 ClassesModifier and TypeClassDescriptionstatic classprotected static classNested 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 -
Constructor Summary
ConstructorsConstructorDescriptionWerewolfFormAction(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanactivate(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf, de.teamlapen.vampirism.api.entity.player.actions.IAction.ActivationContext context) voidapplyModifier(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf, boolean night) booleancanBeUsedBy(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf) voidcheckDayNightModifier(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolfPlayer) protected voidcheckDayNightModifier(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolfPlayer, boolean night) booleanDeprecated.booleanconsumesWerewolfTime(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf) static Set<WerewolfFormAction>intgetDuration(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf) de.teamlapen.werewolves.api.entities.werewolf.WerewolfFormgetForm()intgetTimeModifier(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf) ticks this action can be usedprotected booleanincreaseWerewolfTime(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolfPlayer) static booleanisWerewolfFormActionActive(de.teamlapen.vampirism.api.entity.player.actions.IActionHandler<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer> handler) voidonActivatedClient(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolfPlayer) voidonDeactivated(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf) voidonReActivated(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf) booleanonUpdate(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolfPlayer) voidremoveModifier(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf) protected booleanusesTransformationTime(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf) Methods inherited from class de.teamlapen.werewolves.entities.player.werewolf.actions.DefaultWerewolfAction
getFactionMethods inherited from class de.teamlapen.vampirism.api.entity.player.actions.DefaultAction
addEffectInstance, canUse, getName, getTranslationKey, isEnabled, onActivated, removePotionEffect, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.teamlapen.vampirism.api.entity.player.actions.IAction
canUse, getCooldown, getFaction, getName, getTranslationKey, matchesFaction, onActivated, showHudCooldown, showInSelectActionMethods inherited from interface de.teamlapen.vampirism.api.entity.player.actions.ILastingAction
showHudDuration
-
Field Details
-
attributes
-
-
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
-
activate
protected boolean activate(de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer werewolf, de.teamlapen.vampirism.api.entity.player.actions.IAction.ActivationContext context) - Specified by:
activatein classde.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:
onActivatedClientin interfacede.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:
onDeactivatedin interfacede.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:
onReActivatedin interfacede.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:
onUpdatein interfacede.teamlapen.vampirism.api.entity.player.actions.ILastingAction<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
usesTransformationTime
protected 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:
getDurationin interfacede.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:
canBeUsedByin classde.teamlapen.vampirism.api.entity.player.actions.DefaultAction<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
consumesWerewolfTime
Deprecated. -
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()
-