package com.encrox.zombie.interactable; import org.bukkit.util.BlockVector; public class Lever extends Interactable { private boolean toggle; private Lever[] others; public Lever(BlockVector bv, int cost, boolean toggle, Lever[] others) { super(bv, cost); this.toggle = toggle; this.others = others; } public Lever(BlockVector bv, int cost, Lever[] others) { this(bv, cost, false, others); } public Lever(BlockVector bv, int cost, boolean toggle) { this(bv, cost, toggle, new Lever[0]); } public Lever(BlockVector bv, int cost) { this(bv, cost, false); } public void toggle() { toggle = !toggle; for(int i = 0; i