mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-29 22:02:23 +00:00
26 lines
699 B
Java
26 lines
699 B
Java
|
package de.epiceric.shopchest.interfaces;
|
||
|
|
||
|
import org.bukkit.ChatColor;
|
||
|
import org.bukkit.entity.Player;
|
||
|
|
||
|
public interface JsonBuilder {
|
||
|
|
||
|
public enum ClickAction {
|
||
|
RUN_COMMAND, SUGGEST_COMMAND, OPEN_URL
|
||
|
}
|
||
|
|
||
|
public enum HoverAction {
|
||
|
SHOW_TEXT
|
||
|
}
|
||
|
|
||
|
public JsonBuilder parse(String text);
|
||
|
public JsonBuilder withText(String text);
|
||
|
public JsonBuilder withColor(ChatColor color);
|
||
|
public JsonBuilder withColor(String color);
|
||
|
public JsonBuilder withClickEvent(ClickAction action, String value);
|
||
|
public JsonBuilder withHoverEvent(HoverAction action, String value);
|
||
|
public String toString();
|
||
|
public void sendJson(Player p);
|
||
|
|
||
|
}
|