Contents
Class AbilityProjectileSplit
java.lang.Object
com.hypixel.hytale.builtin.abilities.trigger.AbilityProjectileSplit
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
Split state of an ability projectile whose cast carries a Fork or Ricochet rune. Stamped
at launch and consumed by the SplitAbilityProjectile brick in the projectile's hit chain: the
launch respawns the children, and the visited list keeps a ricochet chain from bouncing
back to an entity it already struck. One split action per projectile: a fork spends the
whole component, so a piercing projectile crossing many entities splits only once.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intResolved value of the Fork attribute at or above which a projectile forks: the attribute counts the projectiles the flight splits into, and 1 (the implicit base every support modifier starts from) is the unsplit flight itself.Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionAbilityProjectileSplit(AbilityProjectileLaunchData launch, int forkInto, int bouncesLeft, it.unimi.dsi.fastutil.objects.ObjectArrayList<Ref<EntityStore>> visited) -
Method Summary
Modifier and TypeMethodDescriptionclone()intintit.unimi.dsi.fastutil.objects.ObjectArrayList<Ref<EntityStore>> booleanhasVisited(Ref<EntityStore> ref) booleanisSpent()voidspend()Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Field Details
-
FORK_THRESHOLD
public static final int FORK_THRESHOLDResolved value of the Fork attribute at or above which a projectile forks: the attribute counts the projectiles the flight splits into, and 1 (the implicit base every support modifier starts from) is the unsplit flight itself.- See Also:
-
-
Constructor Details
-
AbilityProjectileSplit
public AbilityProjectileSplit(@Nonnull AbilityProjectileLaunchData launch, int forkInto, int bouncesLeft, @Nullable it.unimi.dsi.fastutil.objects.ObjectArrayList<Ref<EntityStore>> visited)
-
-
Method Details
-
getComponentType
-
getLaunch
-
getForkInto
public int getForkInto() -
getBouncesLeft
public int getBouncesLeft() -
getVisited
-
isSpent
public boolean isSpent() -
spend
public void spend() -
hasVisited
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-