Class CombatSupport

java.lang.Object
com.hypixel.hytale.server.npc.role.support.CombatSupport
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class CombatSupport extends Object implements Component<EntityStore>
Created on 28/02/2019
  • Field Details

    • ATTACK_TAG

      public static final String ATTACK_TAG
      See Also:
    • ATTACK_TAG_INDEX

      public static final int ATTACK_TAG_INDEX
    • AIMING_REFERENCE_TAG

      public static final String AIMING_REFERENCE_TAG
      See Also:
    • AIMING_REFERENCE_TAG_INDEX

      public static final int AIMING_REFERENCE_TAG_INDEX
    • MELEE_TAG

      public static final String MELEE_TAG
      See Also:
    • MELEE_TAG_INDEX

      public static final int MELEE_TAG_INDEX
    • RANGED_TAG

      public static final String RANGED_TAG
      See Also:
    • RANGED_TAG_INDEX

      public static final int RANGED_TAG_INDEX
    • BLOCK_TAG

      public static final String BLOCK_TAG
      See Also:
    • BLOCK_TAG_INDEX

      public static final int BLOCK_TAG_INDEX
  • Constructor Details

  • Method Details

    • getComponentType

      @Nonnull public static ComponentType<EntityStore, CombatSupport> 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

      public void addAttackOverride(String attackSequence)
    • clearAttackOverrides

      public void clearAttackOverrides()
    • getNextAttackOverride

      @Nullable public String getNextAttackOverride()
    • clone

      public Component<EntityStore> clone()
      Specified by:
      clone in interface Component<EntityStore>
      Returns:
      a clone instance of the original component instance.