mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-03 14:01:58 +01:00
Removed TestArrow from the demo scene
This commit is contained in:
parent
8a57918fe9
commit
9e6aaa1088
@ -1,25 +0,0 @@
|
|||||||
package demo.entity;
|
|
||||||
|
|
||||||
import net.minestom.server.entity.EntityType;
|
|
||||||
import net.minestom.server.entity.LivingEntity;
|
|
||||||
import net.minestom.server.entity.ObjectEntity;
|
|
||||||
import net.minestom.server.utils.Position;
|
|
||||||
|
|
||||||
public class TestArrow extends ObjectEntity {
|
|
||||||
|
|
||||||
private LivingEntity shooter;
|
|
||||||
|
|
||||||
public TestArrow(LivingEntity shooter, Position spawnPosition) {
|
|
||||||
super(EntityType.ARROW, spawnPosition);
|
|
||||||
this.shooter = shooter;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getObjectData() {
|
|
||||||
return shooter.getEntityId() + 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public LivingEntity getShooter() {
|
|
||||||
return shooter;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user