3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00

SPIGOT-5782: Set Arrow Launched From Crossbow

Dieser Commit ist enthalten in:
md_5 2020-06-24 10:05:39 +10:00
Ursprung 833da9c47d
Commit be6aaf046e

Datei anzeigen

@ -110,6 +110,16 @@ public class CraftArrow extends AbstractProjectile implements AbstractArrow {
getHandle().despawnCounter = value; getHandle().despawnCounter = value;
} }
@Override
public boolean isShotFromCrossbow() {
return getHandle().r();
}
@Override
public void setShotFromCrossbow(boolean shotFromCrossbow) {
getHandle().o(shotFromCrossbow);
}
@Override @Override
public EntityArrow getHandle() { public EntityArrow getHandle() {
return (EntityArrow) entity; return (EntityArrow) entity;