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:
@@ -129,5 +129,5 @@ public interface AdventureManager {
|
||||
* @param component shaded component
|
||||
* @return paper component
|
||||
*/
|
||||
Object shadedComponentToPaperComponent(Component component);
|
||||
Object shadedComponentToOriginalComponent(Component component);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user