Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-23 23:00:08 +01:00
Add setCritical and isCritical methods to CraftArrow.java. Adds BUKKIT-5113
Dieser Commit ist enthalten in:
Ursprung
fb8c5547b3
Commit
ac53442e7e
@ -37,6 +37,14 @@ public class CraftArrow extends AbstractProjectile implements Arrow {
|
|||||||
return getHandle().aw;
|
return getHandle().aw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isCritical() {
|
||||||
|
return getHandle().f();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCritical(boolean critical) {
|
||||||
|
getHandle().a(critical);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public EntityArrow getHandle() {
|
public EntityArrow getHandle() {
|
||||||
return (EntityArrow) entity;
|
return (EntityArrow) entity;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren