Class WarpMechanic
java.lang.Object
studio.magemonkey.fabled.dynamic.EffectComponent
studio.magemonkey.fabled.dynamic.mechanic.MechanicComponent
studio.magemonkey.fabled.dynamic.mechanic.warp.WarpMechanic
Warps the target relative to their current location
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static final String
protected static final String
protected static final String
Fields inherited from class studio.magemonkey.fabled.dynamic.EffectComponent
children, preview, settings, skill
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
execute
(org.bukkit.entity.LivingEntity caster, int level, List<org.bukkit.entity.LivingEntity> targets, boolean force) Executes the componentgetKey()
void
playPreview
(List<Runnable> onPreviewStop, org.bukkit.entity.Player caster, int level, Supplier<List<org.bukkit.entity.LivingEntity>> targetSupplier) Starts the component's preview effects.boolean
boolean
boolean
boolean
setPitch()
boolean
setYaw()
void
warp
(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
getType
Methods inherited from class studio.magemonkey.fabled.dynamic.EffectComponent
cleanUp, doCleanUp, execute, executeChildren, filter, getInstanceKey, getNum, getSettings, getSkillData, isPreviewEnabled, lastPassed, load, parseValues, playChildrenPreviews, save
-
Field Details
-
PRESERVE
- See Also:
-
SET_YAW
- See Also:
-
SET_PITCH
- See Also:
-
YAW
- See Also:
-
PITCH
- See Also:
-
-
Constructor Details
-
WarpMechanic
public WarpMechanic()
-
-
Method Details
-
getKey
- Specified by:
getKey
in 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:
execute
in classEffectComponent
- Parameters:
caster
- caster of the skilllevel
- level of the skilltargets
- targets to apply toforce
-- Returns:
- true if applied to something, false otherwise
-
playPreview
public void playPreview(List<Runnable> onPreviewStop, org.bukkit.entity.Player caster, int level, Supplier<List<org.bukkit.entity.LivingEntity>> targetSupplier) Description copied from class:EffectComponent
Starts the component's preview effects. Removal of any registered listeners, tasks, entities, or other temporary effects should be included in aRunnable
added to the providedList
.- Overrides:
playPreview
in classEffectComponent
- Parameters:
onPreviewStop
-List
ofRunnable
s to add tocaster
- caster referencelevel
- the level of the skill to preview fortargetSupplier
- targets to preview on
-
preserveVelocity
public boolean preserveVelocity() -
setYaw
public boolean setYaw() -
setPitch
public boolean setPitch() -
relativeYaw
public boolean relativeYaw() -
relativePitch
public boolean relativePitch() -
warp
public void warp(org.bukkit.entity.LivingEntity target, org.bukkit.entity.LivingEntity caster, org.bukkit.Location location, int level)
-