Added javadoc for NMS interfaces

This commit is contained in:
Auxilor 2020-10-28 15:44:48 +00:00
parent ab3993ff94
commit 652fa757fa
3 changed files with 9 additions and 0 deletions

View File

@ -3,6 +3,9 @@ package com.willfp.ecoenchants.nms.API;
import org.bukkit.block.Block;
import org.bukkit.entity.Player;
/**
* NMS Interface for breaking blocks as player
*/
public interface BlockBreakWrapper {
void breakBlock(Player player, Block block);
}

View File

@ -2,6 +2,9 @@ package com.willfp.ecoenchants.nms.API;
import org.bukkit.entity.Player;
/**
* NMS Interface for getting attack cooldown
*/
public interface CooldownWrapper {
double getAttackCooldown(Player player);
}

View File

@ -3,6 +3,9 @@ package com.willfp.ecoenchants.nms.API;
import org.bukkit.entity.Trident;
import org.bukkit.inventory.ItemStack;
/**
* NMS Interface for getting an ItemStack from a Trident
*/
public interface TridentStackWrapper {
ItemStack getTridentStack(Trident trident);
}