MCPcopy Create free account
hub / github.com/PaperMC/Paper / setPowered

Method setPowered

paper-api/src/main/java/org/bukkit/material/Lever.java:48–50  ·  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

46 * @param isPowered whether the lever should be powered or not
47 */
48 public void setPowered(boolean isPowered) {
49 setData((byte) (isPowered ? (getData() | 0x8) : (getData() & ~0x8)));
50 }
51
52 /**
53 * 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