mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-09-24 13:22:37 +02:00
cc2e1d44b2
* Implement new content display system. * Add @FunctionalInterface annotation to displaytools interfaces. * Use static factory method to create Builder with contents. * Use T for generic type since it's static method. * Rename Builder#display to show and require CommandSender. * Rename package from displaytools to display. * Move DisplayHandler impls into their own package. * Overload ContentDisplay#forContent with defaults for list and map. * Pass CommandSender to send command. This system is much more versatile when a single ContentDisplay instance can be used for multiple players. * Rename ContentDisplay#send to #show. * Split DisplaySettings into separate classes. Co-authored-by: Jeremy Wood <farachan@gmail.com>
26 lines
689 B
Java
26 lines
689 B
Java
package com.onarandombox.MultiverseCore.display;
|
|
|
|
/**
|
|
* Thrown when an issue occur while formatting content.
|
|
*/
|
|
public class DisplayFormatException extends Exception {
|
|
public DisplayFormatException() {
|
|
}
|
|
|
|
public DisplayFormatException(String message) {
|
|
super(message);
|
|
}
|
|
|
|
public DisplayFormatException(String message, Throwable cause) {
|
|
super(message, cause);
|
|
}
|
|
|
|
public DisplayFormatException(Throwable cause) {
|
|
super(cause);
|
|
}
|
|
|
|
public DisplayFormatException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
|
|
super(message, cause, enableSuppression, writableStackTrace);
|
|
}
|
|
}
|