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

Method isPowered

src/main/java/org/bukkit/material/RedstoneTorch.java:35–37  ·  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

33 * @return true if powered, otherwise false
34 */
35 public boolean isPowered() {
36 return getItemType() == Material.REDSTONE_TORCH_ON;
37 }
38
39 @Override
40 public String toString() {

Callers 1

toStringMethod · 0.95

Calls 1

getItemTypeMethod · 0.80

Tested by

no test coverage detected