Added javadoc to ChatComponent

This commit is contained in:
Auxilor
2020-12-03 09:09:36 +00:00
parent 07ceeb4fdb
commit 18625d91b5
2 changed files with 9 additions and 1 deletions

View File

@@ -31,6 +31,7 @@ public class Telekinesis extends EcoEnchant {
// START OF LISTENERS
// For block drops
@EventHandler(priority = EventPriority.HIGH)
public void telekinesisDropItem(BlockDropItemEvent event) {
Player player = event.getPlayer();
@@ -55,6 +56,7 @@ public class Telekinesis extends EcoEnchant {
player.updateInventory();
}
// For exp drops, blockdropitemevent doesn't cover xp
@EventHandler(priority = EventPriority.HIGH)
public void telekinesisBreak(BlockBreakEvent event) {
Player player = event.getPlayer();

View File

@@ -3,6 +3,7 @@ package com.willfp.ecoenchants.nms;
import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.nms.API.ChatComponentWrapper;
import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.ApiStatus;
/**
@@ -26,7 +27,12 @@ public class ChatComponent {
}
/**
* Modify chat component
* Modify NMS chat component
* <p>
* This method will convert any show_item Hover Events using {@link com.willfp.ecoenchants.display.EnchantDisplay#displayEnchantments(ItemStack)}
*
* @param object The NMS chat component to modify
* @return The NMS chat component, having been modified
*/
public static Object modifyComponent(Object object) {
assert chatComponentWrapper != null;