9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-30 04:19:30 +00:00

gui framework

This commit is contained in:
XiaoMoMi
2023-10-08 22:24:25 +08:00
parent 38cd84e251
commit 274d90cf5b
21 changed files with 751 additions and 17 deletions

View File

@@ -129,5 +129,5 @@ public interface AdventureManager {
* @param component shaded component
* @return paper component
*/
Object shadedComponentToPaperComponent(Component component);
Object shadedComponentToOriginalComponent(Component component);
}

View File

@@ -65,7 +65,7 @@ public class InventoryUtils {
null,
inventoryHolder,
size,
isSpigot ? CustomFishingPlugin.get().getAdventure().componentToLegacy(component) : CustomFishingPlugin.get().getAdventure().shadedComponentToPaperComponent(component)
isSpigot ? CustomFishingPlugin.get().getAdventure().componentToLegacy(component) : CustomFishingPlugin.get().getAdventure().shadedComponentToOriginalComponent(component)
);
} catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException exception) {
exception.printStackTrace();
@@ -94,7 +94,7 @@ public class InventoryUtils {
null,
inventoryHolder,
type,
isSpigot ? CustomFishingPlugin.get().getAdventure().componentToLegacy(component) : CustomFishingPlugin.get().getAdventure().shadedComponentToPaperComponent(component)
isSpigot ? CustomFishingPlugin.get().getAdventure().componentToLegacy(component) : CustomFishingPlugin.get().getAdventure().shadedComponentToOriginalComponent(component)
);
} catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException exception) {
exception.printStackTrace();