Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 04:20:08 +01:00
Implement SpectralArrow#getGlowingTicks and SpectralArrow#setGlowingTicks(int)
Dieser Commit ist enthalten in:
Ursprung
f332350969
Commit
f09f7d8754
11
nms-patches/EntitySpectralArrow.patch
Normale Datei
11
nms-patches/EntitySpectralArrow.patch
Normale Datei
@ -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;
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren