Class WarpSwapMechanic
java.lang.Object
studio.magemonkey.fabled.dynamic.EffectComponent
studio.magemonkey.fabled.dynamic.mechanic.MechanicComponent
studio.magemonkey.fabled.dynamic.mechanic.warp.WarpSwapMechanic
Swaps to entities
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class studio.magemonkey.fabled.dynamic.EffectComponent
children, preview, settings, skill -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanexecute(org.bukkit.entity.LivingEntity caster, int level, List<org.bukkit.entity.LivingEntity> targets, boolean force) Executes the componentgetKey()booleanbooleanbooleanbooleansetPitch()booleansetYaw()voidwarp(org.bukkit.entity.LivingEntity target, org.bukkit.entity.LivingEntity caster, org.bukkit.Location location, int level) Methods inherited from class studio.magemonkey.fabled.dynamic.mechanic.MechanicComponent
getTypeMethods inherited from class studio.magemonkey.fabled.dynamic.EffectComponent
cleanUp, doCleanUp, execute, executeChildren, filter, getInstanceKey, getNum, getSettings, getSkillData, isPreviewEnabled, lastPassed, load, parseValues, playChildrenPreviews, playPreview, save
-
Field Details
-
PRESERVE
- See Also:
-
SET_YAW
- See Also:
-
SET_PITCH
- See Also:
-
YAW
- See Also:
-
PITCH
- See Also:
-
DISMOUNT
- See Also:
-
-
Constructor Details
-
WarpSwapMechanic
public WarpSwapMechanic()
-
-
Method Details
-
getKey
- Specified by:
getKeyin classEffectComponent
-
execute
public boolean execute(org.bukkit.entity.LivingEntity caster, int level, List<org.bukkit.entity.LivingEntity> targets, boolean force) Executes the component- Specified by:
executein classEffectComponent- Parameters:
caster- caster of the skilllevel- level of the skilltargets- targets to apply toforce-- Returns:
- true if applied to something, false otherwise
-
preserveVelocity
public boolean preserveVelocity() -
setYaw
public boolean setYaw() -
setPitch
public boolean setPitch() -
relativeYaw
public boolean relativeYaw() -
relativePitch
public boolean relativePitch() -
dismountOnTeleport
public boolean dismountOnTeleport() -
warp
public void warp(org.bukkit.entity.LivingEntity target, org.bukkit.entity.LivingEntity caster, org.bukkit.Location location, int level)
-