2015-09-03 18:52:13 +00:00
|
|
|
package de.epiceric.shopchest.interfaces;
|
|
|
|
|
|
|
|
import org.bukkit.ChatColor;
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
|
|
|
|
public interface JsonBuilder {
|
|
|
|
|
2016-05-28 13:47:57 +00:00
|
|
|
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);
|
|
|
|
|
|
|
|
public enum ClickAction {
|
|
|
|
RUN_COMMAND, SUGGEST_COMMAND, OPEN_URL
|
|
|
|
}
|
|
|
|
|
|
|
|
public enum HoverAction {
|
|
|
|
SHOW_TEXT
|
|
|
|
}
|
|
|
|
|
2015-09-03 18:52:13 +00:00
|
|
|
}
|