Class LivingEntitySimulation
java.lang.Object
org.mockbukkit.mockbukkit.simulate.entity.LivingEntitySimulation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsimulateDamage(double amount, @NotNull DamageSource source) Simulate damage to this entity and throw an event.simulateDamage(double amount, @Nullable Entity source) Simulate damage to this entity and throw an event
-
Constructor Details
-
LivingEntitySimulation
-
-
Method Details
-
simulateDamage
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
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
-