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

Method setOpen

src/main/java/org/bukkit/material/Door.java:42–44  ·  view source on GitHub ↗

Configure this door to be either open or closed; @param isOpen True to open the door.

(boolean isOpen)

Source from the content-addressed store, hash-verified

40 * @param isOpen True to open the door.
41 */
42 public void setOpen(boolean isOpen) {
43 setData((byte) (isOpen ? (getData() | 0x4) : (getData() & ~0x4)));
44 }
45
46 /**
47 * @return whether this is the top half of the door

Callers

nothing calls this directly

Calls 2

setDataMethod · 0.65
getDataMethod · 0.65

Tested by

no test coverage detected