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

Method setTopHalf

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

Configure this part of the door to be either the top or the bottom half; @param isTopHalf True to make it the top half.

(boolean isTopHalf)

Source from the content-addressed store, hash-verified

55 * @param isTopHalf True to make it the top half.
56 */
57 public void setTopHalf(boolean isTopHalf) {
58 setData((byte) (isTopHalf ? (getData() | 0x8) : (getData() & ~0x8)));
59 }
60
61 /**
62 * @return the location of the hinges

Callers

nothing calls this directly

Calls 2

setDataMethod · 0.65
getDataMethod · 0.65

Tested by

no test coverage detected