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

Method setPowered

src/main/java/org/bukkit/material/Button.java:49–51  ·  view source on GitHub ↗

Sets the current state of this button @param bool whether or not the button is powered

(boolean bool)

Source from the content-addressed store, hash-verified

47 * whether or not the button is powered
48 */
49 public void setPowered(boolean bool) {
50 setData((byte) (bool ? (getData() | 0x8) : (getData() & ~0x8)));
51 }
52
53 /**
54 * 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