mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-22 02:25:28 +01:00
SPIGOT-5782: Set Arrow Launched From Crossbow
This commit is contained in:
parent
833da9c47d
commit
be6aaf046e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user