X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2FController.java;h=6f9de5b55bf413899e2038e698afb41cf4084533;hb=f554e51504f7e39e658a84d79c041e0b0d8a6393;hp=01e157a354a645c808112a27fe93a532c5b8b065;hpb=4fd08115a7ec9a664d154de264bf78db326dc591;p=sonitus.git
diff --git a/src/main/java/net/pterodactylus/sonitus/data/Controller.java b/src/main/java/net/pterodactylus/sonitus/data/Controller.java
index 01e157a..6f9de5b 100644
--- a/src/main/java/net/pterodactylus/sonitus/data/Controller.java
+++ b/src/main/java/net/pterodactylus/sonitus/data/Controller.java
@@ -22,21 +22,28 @@ package net.pterodactylus.sonitus.data;
*
* @author David âBombeâ Roden
*/
-public interface Controller {
+public interface Controller> {
+
+ /**
+ * Returns the name of this controller.
+ *
+ * @return The name of this controller
+ */
+ String name();
/**
* Returns the minimum value of this controller.
*
* @return The minimum value of this controller
*/
- int minimum();
+ V minimum();
/**
* Returns the maximum value of this controller.
*
* @return The maximum value of this controller
*/
- int maximum();
+ V maximum();
/**
* Returns whether this control has a âcenterâ position.
@@ -51,7 +58,7 @@ public interface Controller {
*
* @return The current value of this controller
*/
- int value();
+ V value();
/**
* Sets the current value of this controller.
@@ -59,6 +66,6 @@ public interface Controller {
* @param value
* The current value of this controller
*/
- void value(int value);
+ void value(V value);
}