Class LivingEntitySimulation

java.lang.Object
org.mockbukkit.mockbukkit.simulate.entity.LivingEntitySimulation

public class LivingEntitySimulation extends Object
  • Constructor Details

    • LivingEntitySimulation

      public LivingEntitySimulation(LivingEntityMock livingEntityMock)
  • Method Details

    • simulateDamage

      public EntityDamageEvent simulateDamage(double amount, @NotNull @NotNull DamageSource source)
      Simulate damage to this entity and throw an event.
      Parameters:
      amount -

      The amount of damage to be done

      source -

      The damager

      Returns:

      The EntityDamageEvent that got thrown

    • simulateDamage

      public EntityDamageEvent simulateDamage(double amount, @Nullable @Nullable Entity source)
      Simulate damage to this entity and throw an event
      Parameters:
      amount -

      The amount of damage to be done

      source -

      The damager

      Returns:

      The event that got thrown