mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-15 10:21:45 -04:00
okthen
This commit is contained in:
parent
4c37d53405
commit
5d3879d0a4
@ -11,7 +11,7 @@ import li.cil.oc.api.detail.*;
|
||||
*/
|
||||
public class API {
|
||||
public static final String ID_OWNER = "OpenComputers|Core";
|
||||
public static final String VERSION = "4.1.2";
|
||||
public static final String VERSION = "4.1.3";
|
||||
|
||||
public static DriverAPI driver = null;
|
||||
public static FileSystemAPI fileSystem = null;
|
||||
|
@ -2,7 +2,6 @@ package li.cil.oc.api.internal;
|
||||
|
||||
import li.cil.oc.api.driver.EnvironmentHost;
|
||||
import li.cil.oc.api.machine.Machine;
|
||||
import li.cil.oc.api.network.Environment;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.util.Vec3;
|
||||
|
||||
@ -43,4 +42,13 @@ public interface Drone extends EnvironmentHost, Rotatable {
|
||||
* accumulate.
|
||||
*/
|
||||
void setTarget(Vec3 value);
|
||||
|
||||
/**
|
||||
* Get the drones velocity vector.
|
||||
* <p/>
|
||||
* Note that this is really just the underlying entity's <tt>motionX/Y/Z</tt>,
|
||||
* so you can cast this to {@link net.minecraft.entity.Entity} and use that
|
||||
* instead, if you'd like.
|
||||
*/
|
||||
Vec3 getVelocity();
|
||||
}
|
||||
|
@ -123,6 +123,8 @@ class Drone(val world: World) extends Entity(world) with MachineHost with intern
|
||||
targetZ = value.zCoord.toFloat
|
||||
}
|
||||
|
||||
override def getVelocity = Vec3.createVectorHelper(motionX, motionY, motionZ)
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
override def canBeCollidedWith = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user