3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 04:50:05 +01:00

Renamed ArrowEntity->Arrow to be consistent.

Dieser Commit ist enthalten in:
sk89q 2011-01-03 14:11:04 +08:00 committet von Dinner Bone
Ursprung 31c5894743
Commit ca47ccf674
3 geänderte Dateien mit 18 neuen und 18 gelöschten Zeilen

Datei anzeigen

@ -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);
}
}

Datei anzeigen

@ -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);
}
}

Datei anzeigen

@ -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) {