public interface TeamProvider extends MagicProvider
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFriendly(org.bukkit.entity.Entity attacker,
org.bukkit.entity.Entity entity)
Check to see if one entity is friendly (on a team with) another entity.
|
boolean isFriendly(org.bukkit.entity.Entity attacker,
org.bukkit.entity.Entity entity)
This will be called any time on entity (the attacker) is targeting another entity.
Friendly entities generally can't target each other, unless a spell has bypass_friendly_fire (generally true for healing spells).
Spells may also be marked only_friendly, meaning it can only be cast on friendly targets.
The default state for two entities is that they are not friendly with each other.
attacker - The entity targeting another entityentity - The entity being targetedCopyright © 2021 elMakers. All rights reserved.