MCPcopy Create free account
hub / github.com/Bukkit/Bukkit / setPowered

Method setPowered

src/main/java/org/bukkit/material/Lever.java:44–46  ·  view source on GitHub ↗

Set this lever to be powered or not. @param isPowered whether the lever should be powered or not

(boolean isPowered)

Source from the content-addressed store, hash-verified

42 * @param isPowered whether the lever should be powered or not
43 */
44 public void setPowered(boolean isPowered) {
45 setData((byte) (isPowered ? (getData() | 0x8) : (getData() & ~0x8)));
46 }
47
48 /**
49 * Gets the face that this block is attached on

Callers

nothing calls this directly

Calls 2

setDataMethod · 0.65
getDataMethod · 0.65

Tested by

no test coverage detected