geforkt von Mirrors/Paper
Implement SpectralArrow entity
Dieser Commit ist enthalten in:
Ursprung
e80114dff4
Commit
f332350969
@ -142,6 +142,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||||||
if (((EntityTippedArrow) entity).isTipped()) { return new CraftTippedArrow(server, (EntityTippedArrow) entity); }
|
if (((EntityTippedArrow) entity).isTipped()) { return new CraftTippedArrow(server, (EntityTippedArrow) entity); }
|
||||||
else { return new CraftArrow(server, (EntityArrow) entity); }
|
else { return new CraftArrow(server, (EntityArrow) entity); }
|
||||||
}
|
}
|
||||||
|
else if (entity instanceof EntitySpectralArrow) { return new CraftSpectralArrow(server, (EntitySpectralArrow) entity); }
|
||||||
else if (entity instanceof EntityArrow) { return new CraftArrow(server, (EntityArrow) entity); }
|
else if (entity instanceof EntityArrow) { return new CraftArrow(server, (EntityArrow) entity); }
|
||||||
else if (entity instanceof EntityBoat) { return new CraftBoat(server, (EntityBoat) entity); }
|
else if (entity instanceof EntityBoat) { return new CraftBoat(server, (EntityBoat) entity); }
|
||||||
else if (entity instanceof EntityProjectile) {
|
else if (entity instanceof EntityProjectile) {
|
||||||
|
28
src/main/java/org/bukkit/craftbukkit/entity/CraftSpectralArrow.java
Normale Datei
28
src/main/java/org/bukkit/craftbukkit/entity/CraftSpectralArrow.java
Normale Datei
@ -0,0 +1,28 @@
|
|||||||
|
package org.bukkit.craftbukkit.entity;
|
||||||
|
|
||||||
|
import net.minecraft.server.EntitySpectralArrow;
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.entity.EntityType;
|
||||||
|
import org.bukkit.entity.SpectralArrow;
|
||||||
|
|
||||||
|
public class CraftSpectralArrow extends CraftArrow implements SpectralArrow {
|
||||||
|
|
||||||
|
public CraftSpectralArrow(CraftServer server, EntitySpectralArrow entity) {
|
||||||
|
super(server, entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public EntitySpectralArrow getHandle() {
|
||||||
|
return (EntitySpectralArrow) entity;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "CraftSpectralArrow";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public EntityType getType() {
|
||||||
|
return EntityType.SPECTRAL_ARROW;
|
||||||
|
}
|
||||||
|
}
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren