X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2Fcontroller%2FSwitch.java;h=0de8832e8e03946f1924c2e42bfa20c3b3deca96;hb=dfaceff35b847c9f2f9fe6fef22eb29c14be94c7;hp=cb853a3665999bee0b372297adbdbd3b39c9d2ea;hpb=f761d816f6e2f14bc80efb45e4cb5c130fa9a57f;p=sonitus.git
diff --git a/src/main/java/net/pterodactylus/sonitus/data/controller/Switch.java b/src/main/java/net/pterodactylus/sonitus/data/controller/Switch.java
index cb853a3..0de8832 100644
--- a/src/main/java/net/pterodactylus/sonitus/data/controller/Switch.java
+++ b/src/main/java/net/pterodactylus/sonitus/data/controller/Switch.java
@@ -22,21 +22,28 @@ package net.pterodactylus.sonitus.data.controller;
*
* @author David âBombeâ Roden
*/
-public abstract class Switch extends AbstractController {
+public class Switch extends AbstractController {
- /** Creates a new switch that is off. */
- public Switch() {
- this(false);
+ /**
+ * Creates a new switch that is off.
+ *
+ * @param name
+ * The name of the switch
+ */
+ public Switch(String name) {
+ this(name, false);
}
/**
* Creates a new switch with the given state.
*
+ * @param name
+ * The name of the switch
* @param active
* The state of the switch
*/
- public Switch(boolean active) {
- super(false, true, false, active);
+ public Switch(String name, boolean active) {
+ super(name, false, true, false, active);
}
}