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

Method setIsInstantGrowable

src/main/java/org/bukkit/material/Sapling.java:102–104  ·  view source on GitHub ↗

Set whether this sapling will grow when next ticked with bonemeal @param isInstantGrowable true if the Sapling should grow when next ticked with bonemeal

(boolean isInstantGrowable)

Source from the content-addressed store, hash-verified

100 * with bonemeal
101 */
102 public void setIsInstantGrowable(boolean isInstantGrowable) {
103 setData(isInstantGrowable ? (byte) ((getData() & 0x7) | 0x8) : (byte) (getData() & 0x7));
104 }
105
106 @Override
107 public String toString() {

Callers 1

SaplingMethod · 0.95

Implementers 1

CraftSaplingsrc/main/java/org/bukkit/craftbukkit/v

Calls 2

setDataMethod · 0.65
getDataMethod · 0.65

Tested by

no test coverage detected