geforkt von Mirrors/Paper
Implemented Creeper.is/setPowered
By: Dinnerbone <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Ursprung
35621b2667
Commit
3e7cc3c7b5
@ -15,4 +15,16 @@ public class CraftCreeper extends CraftMonster implements Creeper {
|
|||||||
return "CraftCreeper";
|
return "CraftCreeper";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isPowered() {
|
||||||
|
return getHandle().W().a(17) == 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPowered(boolean powered) {
|
||||||
|
if (powered) {
|
||||||
|
getHandle().W().a(17, 1);
|
||||||
|
} else {
|
||||||
|
getHandle().W().a(17, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren