Class DamageCalculatorSystems

java.lang.Object
com.hypixel.hytale.server.core.modules.entity.damage.DamageCalculatorSystems

public class DamageCalculatorSystems extends Object
Systems to support DamageCalculator
  • Field Details

  • Constructor Details

    • DamageCalculatorSystems

      public DamageCalculatorSystems()
  • Method Details

    • queueDamageCalculator

      @Nonnull public static Damage[] queueDamageCalculator(@Nonnull World world, @Nonnull it.unimi.dsi.fastutil.objects.Object2FloatMap<DamageCause> relativeDamage, @Nonnull Ref<EntityStore> ref, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull Damage.Source source, @Nullable ItemStack itemInHand)
      Called to queue up damage calculations based on relative damage values.
      Parameters:
      world - The world that the damage is being calculated in.
      relativeDamage - A map of relative damage values by DamageCause.
      ref - The entity reference of the target entity.
      commandBuffer - The CommandBuffer<EntityStore> for component access.
      source - The source of the damage.
      itemInHand - The item in hand of the attacker, or null if none.
      Returns:
      an array of Damage instances representing the calculated damage.