diff options
author | MiniDigger | Martin <[email protected]> | 2024-01-14 11:04:49 +0100 |
---|---|---|
committer | MiniDigger | Martin <[email protected]> | 2024-01-14 11:04:49 +0100 |
commit | bee74680e607c2e29b038329f62181238911cd83 (patch) | |
tree | 708fd1a4a0227d9071243adf2a42d5e9e96cde4a /patch-remap/mache-vineflower/net/minecraft/world/entity/projectile/SpectralArrow.java.patch | |
parent | 0a44692ef6ff6e255d48eb3ba1bb114166eafda9 (diff) | |
download | Paper-softspoon.tar.gz Paper-softspoon.zip |
add remapped patches as a testsoftspoon
Diffstat (limited to 'patch-remap/mache-vineflower/net/minecraft/world/entity/projectile/SpectralArrow.java.patch')
-rw-r--r-- | patch-remap/mache-vineflower/net/minecraft/world/entity/projectile/SpectralArrow.java.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/patch-remap/mache-vineflower/net/minecraft/world/entity/projectile/SpectralArrow.java.patch b/patch-remap/mache-vineflower/net/minecraft/world/entity/projectile/SpectralArrow.java.patch new file mode 100644 index 0000000000..3de2d9a67c --- /dev/null +++ b/patch-remap/mache-vineflower/net/minecraft/world/entity/projectile/SpectralArrow.java.patch @@ -0,0 +1,57 @@ +--- a/net/minecraft/world/entity/projectile/SpectralArrow.java ++++ b/net/minecraft/world/entity/projectile/SpectralArrow.java +@@ -11,34 +11,37 @@ + import net.minecraft.world.level.Level; + + public class SpectralArrow extends AbstractArrow { ++ + private static final ItemStack DEFAULT_ARROW_STACK = new ItemStack(Items.SPECTRAL_ARROW); +- private int duration = 200; ++ public int duration = 200; + + public SpectralArrow(EntityType<? extends SpectralArrow> entityType, Level level) { +- super(entityType, level, DEFAULT_ARROW_STACK); ++ super(entityType, level, SpectralArrow.DEFAULT_ARROW_STACK); + } + +- public SpectralArrow(Level level, LivingEntity livingEntity, ItemStack itemStack) { +- super(EntityType.SPECTRAL_ARROW, livingEntity, level, itemStack); ++ public SpectralArrow(Level world, LivingEntity entityliving, ItemStack itemstack) { ++ super(EntityType.SPECTRAL_ARROW, entityliving, world, itemstack); + } + +- public SpectralArrow(Level level, double d, double d1, double d2, ItemStack itemStack) { +- super(EntityType.SPECTRAL_ARROW, d, d1, d2, level, itemStack); ++ public SpectralArrow(Level world, double d0, double d1, double d2, ItemStack itemstack) { ++ super(EntityType.SPECTRAL_ARROW, d0, d1, d2, world, itemstack); + } + + @Override + public void tick() { + super.tick(); + if (this.level().isClientSide && !this.inGround) { +- this.level().addParticle(ParticleTypes.INSTANT_EFFECT, this.getX(), this.getY(), this.getZ(), 0.0, 0.0, 0.0); ++ this.level().addParticle(ParticleTypes.INSTANT_EFFECT, this.getX(), this.getY(), this.getZ(), 0.0D, 0.0D, 0.0D); + } ++ + } + + @Override + protected void doPostHurtEffects(LivingEntity living) { + super.doPostHurtEffects(living); +- MobEffectInstance mobEffectInstance = new MobEffectInstance(MobEffects.GLOWING, this.duration, 0); +- living.addEffect(mobEffectInstance, this.getEffectSource()); ++ MobEffectInstance mobeffect = new MobEffectInstance(MobEffects.GLOWING, this.duration, 0); ++ ++ living.addEffect(mobeffect, this.getEffectSource(), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ARROW); // CraftBukkit + } + + @Override +@@ -47,6 +50,7 @@ + if (compound.contains("Duration")) { + this.duration = compound.getInt("Duration"); + } ++ + } + + @Override |