mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
SPIGOT-5782: Set Arrow Launched From Crossbow
By: md_5 <git@md-5.net>
This commit is contained in:
parent
5f36fbfcfe
commit
3862d2811e
1 changed files with 10 additions and 0 deletions
|
@ -110,6 +110,16 @@ public class CraftArrow extends AbstractProjectile implements AbstractArrow {
|
|||
getHandle().despawnCounter = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isShotFromCrossbow() {
|
||||
return getHandle().r();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setShotFromCrossbow(boolean shotFromCrossbow) {
|
||||
getHandle().o(shotFromCrossbow);
|
||||
}
|
||||
|
||||
@Override
|
||||
public EntityArrow getHandle() {
|
||||
return (EntityArrow) entity;
|
||||
|
|
Loading…
Reference in a new issue