mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 15:00:13 +01:00
Renamed ArrowEntity->Arrow to be consistent.
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
734b691ee8
commit
b3568f83e7
3 changed files with 18 additions and 18 deletions
|
@ -0,0 +1,15 @@
|
|||
package org.bukkit.craftbukkit;
|
||||
|
||||
import org.bukkit.Arrow;
|
||||
import net.minecraft.server.EntityArrow;
|
||||
|
||||
/**
|
||||
* Represents an arrow.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public class CraftArrow extends CraftEntity implements Arrow {
|
||||
CraftArrow(CraftServer server, EntityArrow entity) {
|
||||
super(server, entity);
|
||||
}
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
package org.bukkit.craftbukkit;
|
||||
|
||||
import org.bukkit.ArrowEntity;
|
||||
import net.minecraft.server.EntityArrow;
|
||||
|
||||
/**
|
||||
* Represents an arrow.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public class CraftArrowEntity extends CraftEntity implements ArrowEntity {
|
||||
CraftArrowEntity(CraftServer server, EntityArrow entity) {
|
||||
super(server, entity);
|
||||
}
|
||||
}
|
|
@ -8,7 +8,7 @@ import net.minecraft.server.WorldGenBigTree;
|
|||
import net.minecraft.server.WorldGenTrees;
|
||||
import net.minecraft.server.WorldServer;
|
||||
import net.minecraft.server.EntityArrow;
|
||||
import org.bukkit.ArrowEntity;
|
||||
import org.bukkit.Arrow;
|
||||
import org.bukkit.Block;
|
||||
import org.bukkit.Chunk;
|
||||
import org.bukkit.Location;
|
||||
|
@ -79,13 +79,13 @@ public class CraftWorld implements World {
|
|||
return world;
|
||||
}
|
||||
|
||||
public ArrowEntity spawnArrow(Location loc, Vector velocity, float speed,
|
||||
public Arrow spawnArrow(Location loc, Vector velocity, float speed,
|
||||
float spread) {
|
||||
EntityArrow arrow = new EntityArrow(world);
|
||||
arrow.c(loc.getX(), loc.getY(), loc.getZ());
|
||||
world.a(arrow);
|
||||
arrow.a(velocity.getX(), velocity.getY(), velocity.getZ(), speed, spread);
|
||||
return new CraftArrowEntity(world.getServer(), arrow);
|
||||
return new CraftArrow(world.getServer(), arrow);
|
||||
}
|
||||
|
||||
public boolean generateTree(Location loc) {
|
||||
|
|
Loading…
Reference in a new issue