X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2Fcontroller%2FSwitch.java;h=0de8832e8e03946f1924c2e42bfa20c3b3deca96;hb=413a644191719b65fe2730c4689972f50ef7d264;hp=ae815cbe2fdf6b2b4c4b0680c0d0b41313cbc5be;hpb=4136d4eaa232b0db3d5bdbdd09acdcfceb373e2b;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 ae815cb..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(0, 1, false, active ? 1 : 0);
+ public Switch(String name, boolean active) {
+ super(name, false, true, false, active);
}
}