Contents
Class AbilityEntityRepeat
java.lang.Object
com.hypixel.hytale.builtin.abilities.entity.AbilityEntityRepeat
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
Makes an ability entity (e.g. a tornado) re-run its authored chains at fixed intervals for as long
as it lives. Each repeat has its own cadence, so a fast pull and a slow damage tick can
coexist. The chains run on the entity's own interaction manager as a proxy context:
the caster stays the owner, so damage credit and rune modifiers resolve as if the
caster had cast directly.
-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionAbilityEntityRepeat(Ref<EntityStore> casterRef, String[] chainRootIds, float[] intervals) -
Method Summary
Modifier and TypeMethodDescriptionbooleanadvanceAndCheckRepeat(int index, float dt) Counts one repeat down toward its next run.clone()getChainRootId(int index) static ComponentType<EntityStore, AbilityEntityRepeat> intMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
AbilityEntityRepeat
public AbilityEntityRepeat(@Nonnull Ref<EntityStore> casterRef, @Nonnull String[] chainRootIds, @Nonnull float[] intervals)
-
-
Method Details
-
getComponentType
-
getCasterRef
-
getRepeatCount
public int getRepeatCount() -
getChainRootId
-
advanceAndCheckRepeat
public boolean advanceAndCheckRepeat(int index, float dt) Counts one repeat down toward its next run.- Parameters:
index- The repeat index.dt- The tick delta in seconds.- Returns:
truewhen the repeat is due this tick.
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-