mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 11:24:11 +01:00
Add setCritical and isCritical methods to CraftArrow.java. Adds BUKKIT-5113
By: MorphanOne <morphanone@gmail.com>
This commit is contained in:
parent
616d88c604
commit
668c2bffdb
1 changed files with 8 additions and 0 deletions
|
@ -37,6 +37,14 @@ public class CraftArrow extends AbstractProjectile implements Arrow {
|
|||
return getHandle().aw;
|
||||
}
|
||||
|
||||
public boolean isCritical() {
|
||||
return getHandle().f();
|
||||
}
|
||||
|
||||
public void setCritical(boolean critical) {
|
||||
getHandle().a(critical);
|
||||
}
|
||||
|
||||
@Override
|
||||
public EntityArrow getHandle() {
|
||||
return (EntityArrow) entity;
|
||||
|
|
Loading…
Reference in a new issue