All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sucy.skill.api.DefaultCombatProtection Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.0.0-R1
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy