Package noppes.npcs.api.ability.data
Interface IEnergyAnchorData
-
public interface IEnergyAnchorDataConfiguration for the anchor point of an energy ability projectile. Controls where the projectile spawns relative to the caster.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAnchor()floatgetAnchorOffsetX()floatgetAnchorOffsetY()floatgetAnchorOffsetZ()booleangetLaunchFromAnchor()voidsetAnchor(int anchor)Set the anchor point.voidsetAnchorOffsetX(float anchorOffsetX)voidsetAnchorOffsetY(float anchorOffsetY)voidsetAnchorOffsetZ(float anchorOffsetZ)voidsetLaunchFromAnchor(boolean launchFromAnchor)
-
-
-
Method Detail
-
getAnchor
int getAnchor()
- Returns:
- Anchor point ordinal (0=FRONT, 1=CENTER, 2=RIGHT_HAND, 3=LEFT_HAND, 4=ABOVE_HEAD, 5=CHEST, 6=EYE).
-
setAnchor
void setAnchor(int anchor)
Set the anchor point.- Parameters:
anchor- Anchor ordinal (0=FRONT, 1=CENTER, 2=RIGHT_HAND, 3=LEFT_HAND, 4=ABOVE_HEAD, 5=CHEST, 6=EYE)
-
getAnchorOffsetX
float getAnchorOffsetX()
- Returns:
- X offset from the anchor point (positive = right).
-
setAnchorOffsetX
void setAnchorOffsetX(float anchorOffsetX)
- Parameters:
anchorOffsetX- X offset from anchor (positive = right).
-
getAnchorOffsetY
float getAnchorOffsetY()
- Returns:
- Y offset from the anchor point (positive = up).
-
setAnchorOffsetY
void setAnchorOffsetY(float anchorOffsetY)
- Parameters:
anchorOffsetY- Y offset from anchor (positive = up).
-
getAnchorOffsetZ
float getAnchorOffsetZ()
- Returns:
- Z offset from the anchor point (positive = forward).
-
setAnchorOffsetZ
void setAnchorOffsetZ(float anchorOffsetZ)
- Parameters:
anchorOffsetZ- Z offset from anchor (positive = forward).
-
getLaunchFromAnchor
boolean getLaunchFromAnchor()
- Returns:
- Whether the projectile launches from the anchor position instead of the default eye/look-vector position.
-
setLaunchFromAnchor
void setLaunchFromAnchor(boolean launchFromAnchor)
- Parameters:
launchFromAnchor- When true, the projectile launches from its anchor position; when false, it snaps to the default eye/look-vector position.
-
-