Added javadoc to ChatComponent
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user