More Projectile API

Co-authored-by: Nassim Jahnke <nassim@njahnke.dev>
Co-authored-by: SoSeDiK <mrsosedik@gmail.com>
Co-authored-by: MelnCat <melncatuwu@gmail.com>
This commit is contained in:
Owen1212055
2021-05-26 19:34:43 -04:00
parent 84be1c082d
commit b0e4de9c20
8 changed files with 366 additions and 4 deletions

View File

@@ -38,5 +38,24 @@ public interface Trident extends AbstractArrow, ThrowableProjectile {
* @throws IllegalArgumentException if the loyalty level is lower than 0 or greater than 127
*/
void setLoyaltyLevel(int loyaltyLevel);
/**
* Gets if this trident has dealt damage to an
* entity yet or has hit the floor.
*
* If neither of these events have occurred yet, this will
* return false.
*
* @return has dealt damage
*/
boolean hasDealtDamage();
/**
* Sets if this trident has dealt damage to an entity
* yet or has hit the floor.
*
* @param hasDealtDamage has dealt damage or hit the floor
*/
void setHasDealtDamage(boolean hasDealtDamage);
}
// Paper end