Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- getComponentType()
- get(Ref, ComponentAccessor)
- setRoleIndex(int)
- isDealingFriendlyDamage()
- getDisableDamageGroups()
- isExecutingAttack()
- tick(double)
- getCanCauseDamage(Ref, Ref, ComponentAccessor)
- setExecutingAttack(InteractionChain, boolean, double)
- addAttackOverride(String)
- clearAttackOverrides()
- getNextAttackOverride()
- clone()
Class CombatSupport
java.lang.Object
com.hypixel.hytale.server.npc.role.support.CombatSupport
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
Created on 28/02/2019
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final Stringstatic final intstatic final Stringstatic final intstatic final Stringstatic final intstatic final Stringstatic final intFields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttackOverride(String attackSequence) voidclone()static CombatSupportget(Ref<EntityStore> ref, ComponentAccessor<EntityStore> accessor) booleangetCanCauseDamage(Ref<EntityStore> selfRef, Ref<EntityStore> attackerRef, ComponentAccessor<EntityStore> componentAccessor) static ComponentType<EntityStore, CombatSupport> int[]booleanbooleanvoidsetExecutingAttack(InteractionChain chain, boolean damageFriendlies, double attackPause) voidsetRoleIndex(int roleIndex) Set the owning Role's index for group-membership checks.voidtick(double dt) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Field Details
-
ATTACK_TAG
- See Also:
-
ATTACK_TAG_INDEX
public static final int ATTACK_TAG_INDEX -
AIMING_REFERENCE_TAG
- See Also:
-
AIMING_REFERENCE_TAG_INDEX
public static final int AIMING_REFERENCE_TAG_INDEX -
MELEE_TAG
- See Also:
-
MELEE_TAG_INDEX
public static final int MELEE_TAG_INDEX -
RANGED_TAG
- See Also:
-
RANGED_TAG_INDEX
public static final int RANGED_TAG_INDEX -
BLOCK_TAG
- See Also:
-
BLOCK_TAG_INDEX
public static final int BLOCK_TAG_INDEX
-
-
Constructor Details
-
CombatSupport
-
-
Method Details
-
getComponentType
-
get
@Nonnull public static CombatSupport get(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> accessor) -
setRoleIndex
public void setRoleIndex(int roleIndex) Set the owning Role's index for group-membership checks. -
isDealingFriendlyDamage
public boolean isDealingFriendlyDamage() -
getDisableDamageGroups
public int[] getDisableDamageGroups() -
isExecutingAttack
public boolean isExecutingAttack() -
tick
public void tick(double dt) -
getCanCauseDamage
public boolean getCanCauseDamage(@Nonnull Ref<EntityStore> selfRef, @Nonnull Ref<EntityStore> attackerRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
setExecutingAttack
public void setExecutingAttack(InteractionChain chain, boolean damageFriendlies, double attackPause) -
addAttackOverride
-
clearAttackOverrides
public void clearAttackOverrides() -
getNextAttackOverride
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-