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

Method isPowered

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

Gets the current state of this Material, indicating if it's powered or unpowered @return true if powered, otherwise false

()

Source from the content-addressed store, hash-verified

34 * @return true if powered, otherwise false
35 */
36 public boolean isPowered() {
37 return (getData() & 0x8) == 0x8;
38 }
39
40 /**
41 * Set this lever to be powered or not.

Callers 1

toStringMethod · 0.95

Calls 1

getDataMethod · 0.65

Tested by

no test coverage detected