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:
Ursprung
31c5894743
Commit
ca47ccf674
15
src/main/java/org/bukkit/craftbukkit/CraftArrow.java
Normale Datei
15
src/main/java/org/bukkit/craftbukkit/CraftArrow.java
Normale Datei
@ -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) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren