com.sucy.skill.api.DefaultCombatProtection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabled Show documentation
Show all versions of fabled Show documentation
A Minecraft Bukkit plugin aiming to provide an easy code API and skill editor for all server owners to
create unique and fully custom classes and skills.
package com.sucy.skill.api;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
/**
* @deprecated use {@link studio.magemonkey.fabled.api.DefaultCombatProtection} instead
*/
@Deprecated(forRemoval = true)
public class DefaultCombatProtection {
/**
* Checks if the event is a fake damage event
*
* @param event event to check
* @return true if fake, false otherwise
* @deprecated use {@link studio.magemonkey.fabled.api.DefaultCombatProtection#isFakeDamageEvent(EntityDamageByEntityEvent)} instead
*/
@Deprecated(forRemoval = true)
public static boolean isFakeDamageEvent(EntityDamageByEntityEvent event) {
return studio.magemonkey.fabled.api.DefaultCombatProtection.isFakeDamageEvent(event);
}
/**
* Checks if the event was externally cancelled
*
* @param event event to check
* @return true if externally cancelled, false otherwise
* @deprecated use {@link studio.magemonkey.fabled.api.DefaultCombatProtection#isExternallyCancelled(EntityDamageByEntityEvent)} instead
*/
@Deprecated(forRemoval = true)
public static boolean isExternallyCancelled(EntityDamageByEntityEvent event) {
return studio.magemonkey.fabled.api.DefaultCombatProtection.isExternallyCancelled(event);
}
}