MCPcopy Create free account
hub / github.com/Teneted/Tenet / isPowered

Method isPowered

src/main/java/org/bukkit/material/Button.java:38–41  ·  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

36 * @return true if powered, otherwise false
37 */
38 @Override
39 public boolean isPowered() {
40 return (getData() & 0x8) == 0x8;
41 }
42
43 /**
44 * Sets the current state of this button

Callers 1

toStringMethod · 0.95

Calls 1

getDataMethod · 0.65

Tested by

no test coverage detected