public interface Drone extends EnvironmentHost, Rotatable, Tiered
if (entity instanceof Drone) {
The only purpose is to allow identifying entities as drones via the API,
i.e. without having to link against internal classes. This also means
that you should not implement this.| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.Vec3 |
getTarget()
Get the current target coordinates of the drone.
|
net.minecraft.util.Vec3 |
getVelocity()
Get the drones velocity vector.
|
net.minecraft.inventory.IInventory |
inventory()
Provides access to the inventory of the drone.
|
Machine |
machine()
The machine currently hosted by this drone.
|
void |
setTarget(net.minecraft.util.Vec3 value)
Set the new target coordinates of the drone.
|
markChanged, world, xPosition, yPosition, zPositionMachine machine()
net.minecraft.inventory.IInventory inventory()
net.minecraft.util.Vec3 getTarget()
void setTarget(net.minecraft.util.Vec3 value)
net.minecraft.util.Vec3 getVelocity()
Entity and use that
instead, if you'd like.