3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-15 12:30:06 +01:00
Paper/nms-patches/EntityShulkerBullet.patch
2016-05-10 21:47:39 +10:00

33 Zeilen
917 B
Diff

--- a/net/minecraft/server/EntityShulkerBullet.java
+++ b/net/minecraft/server/EntityShulkerBullet.java
@@ -46,8 +46,29 @@
this.target = entity;
this.c = EnumDirection.UP;
this.a(enumdirection_enumaxis);
+ projectileSource = (org.bukkit.entity.LivingEntity) entityliving.getBukkitEntity(); // CraftBukkit
}
+ // CraftBukkit start
+ public EntityLiving getShooter() {
+ return this.shooter;
+ }
+
+ public void setShooter(EntityLiving e) {
+ this.shooter = e;
+ }
+
+ public Entity getTarget() {
+ return this.target;
+ }
+
+ public void setTarget(Entity e) {
+ this.target = e;
+ this.c = EnumDirection.UP;
+ this.a(EnumDirection.EnumAxis.X);
+ }
+ // CraftBukkit end
+
protected void b(NBTTagCompound nbttagcompound) {
BlockPosition blockposition;
NBTTagCompound nbttagcompound1;