Implement SpectralArrow#getGlowingTicks and SpectralArrow#setGlowingTicks(int)

This commit is contained in:
Matthew authored and md_5 committed 2016-03-18 14:30:14 +11:00
1 parent f332350969
commit f09f7d8754
2 files changed
+21

No files matched your search

+11
View 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;
}
}