mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 13:06:02 +01:00
Implement SpectralArrow#getGlowingTicks and SpectralArrow#setGlowingTicks(int)
This commit is contained in:
parent
f332350969
commit
f09f7d8754
11
nms-patches/EntitySpectralArrow.patch
Normal file
11
nms-patches/EntitySpectralArrow.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/net/minecraft/server/EntitySpectralArrow.java
|
||||
+++ b/net/minecraft/server/EntitySpectralArrow.java
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
public class EntitySpectralArrow extends EntityArrow {
|
||||
|
||||
- private int f = 200;
|
||||
+ public int f = 200; // PAIL: private to public
|
||||
|
||||
public EntitySpectralArrow(World world) {
|
||||
super(world);
|
@ -25,4 +25,14 @@ public class CraftSpectralArrow extends CraftArrow implements SpectralArrow {
|
||||
public EntityType getType() {
|
||||
return EntityType.SPECTRAL_ARROW;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getGlowingTicks() {
|
||||
return getHandle().f; // PAIL: Rename glowingDuration
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setGlowingTicks(int duration) {
|
||||
getHandle().f = duration;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user