mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-09 20:30:28 +01:00
SPIGOT-973: Add marker API to ArmorStand
This commit is contained in:
parent
f4ecc39ffc
commit
1880a9c0b6
@ -51,3 +51,21 @@
|
|||||||
if (this.world.isClientSide) {
|
if (this.world.isClientSide) {
|
||||||
return false;
|
return false;
|
||||||
} else if (DamageSource.OUT_OF_WORLD.equals(damagesource)) {
|
} else if (DamageSource.OUT_OF_WORLD.equals(damagesource)) {
|
||||||
|
@@ -616,7 +646,8 @@
|
||||||
|
return (this.datawatcher.getByte(10) & 8) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
- private void n(boolean flag) {
|
||||||
|
+ // PAIL
|
||||||
|
+ public void n(boolean flag) { // CraftBukkit - public
|
||||||
|
byte b0 = this.datawatcher.getByte(10);
|
||||||
|
|
||||||
|
if (flag) {
|
||||||
|
@@ -628,6 +659,7 @@
|
||||||
|
this.datawatcher.watch(10, Byte.valueOf(b0));
|
||||||
|
}
|
||||||
|
|
||||||
|
+ // PAIL
|
||||||
|
public boolean s() {
|
||||||
|
return (this.datawatcher.getByte(10) & 16) != 0;
|
||||||
|
}
|
||||||
|
@ -204,4 +204,16 @@ public class CraftArmorStand extends CraftLivingEntity implements ArmorStand {
|
|||||||
(float) Math.toDegrees(old.getZ())
|
(float) Math.toDegrees(old.getZ())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isMarker() {
|
||||||
|
// PAIL
|
||||||
|
return getHandle().s();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setMarker(boolean marker) {
|
||||||
|
// PAIL
|
||||||
|
getHandle().n(marker);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user