public interface IDrone
extends net.minecraftforge.common.capabilities.ICapabilityProvider
Do not implement this class yourself!
| Modifier and Type | Method and Description |
|---|---|
void |
dropItem(net.minecraft.item.ItemStack stack)
Cause the drone to drop the given item at its position.
|
java.util.List<net.minecraft.entity.Entity> |
getCarryingEntities()
Get the list of entities currently carried by this drone.
|
net.minecraft.util.math.BlockPos |
getControllerPos()
Get the position of the drone's controller.
|
net.minecraft.util.math.BlockPos |
getDeployPos()
Get the blockpos at which this drone was deployed (by player or dispenser).
|
net.minecraft.util.math.vector.Vector3d |
getDronePos()
Get the drone's exact position.
|
net.minecraftforge.common.util.FakePlayer |
getFakePlayer()
Get the fake player object for the drone.
|
net.minecraftforge.fluids.IFluidTank |
getFluidTank()
Get the drone's fluid tank.
|
net.minecraftforge.items.IItemHandlerModifiable |
getInv()
Get the drone's inventory.
|
net.minecraft.entity.player.PlayerEntity |
getOwner()
Retrieve the owning player of this drone; i.e.
|
java.util.UUID |
getOwnerUUID()
Get the UUID of the drone's owner.
|
IPathNavigator |
getPathNavigator()
Get the drone's path navigator object.
|
net.minecraft.entity.ai.goal.GoalSelector |
getTargetAI()
Get the drone's current collection of tasks.
|
int |
getUpgrades(EnumUpgrade upgrade)
Get the number of installed upgrades of the given item type.
|
boolean |
isAIOverridden()
Has the drone's normal tasks been overridden by special circumstances? E.g.
|
boolean |
isBlockValidPathfindBlock(net.minecraft.util.math.BlockPos pos)
Is the given position valid for pathfinding purposes? i.e.
|
void |
onItemPickupEvent(net.minecraft.entity.item.ItemEntity curPickingUpEntity,
int stackSize)
Called when a drone is picking up an item.
|
void |
sendWireframeToClient(net.minecraft.util.math.BlockPos pos)
Send a position to the client to be rendered by the Pneumatic Helmet with Entity Tracker.
|
void |
setCarryingEntity(net.minecraft.entity.Entity entity)
Make the drone pick up the given entity.
|
void |
setDugBlock(net.minecraft.util.math.BlockPos pos)
Mark the given block as being dug.
|
void |
setEmittingRedstone(net.minecraft.util.Direction orientation,
int emittingRedstone)
Make the drone emit redstone in the given direction from its current position.
|
void |
setName(net.minecraft.util.text.ITextComponent string)
Set the drone's custom name.
|
net.minecraft.world.World |
world()
Get the drone's world.
|
int getUpgrades(EnumUpgrade upgrade)
net.minecraft.world.World world()
net.minecraftforge.fluids.IFluidTank getFluidTank()
CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY
capability.net.minecraftforge.items.IItemHandlerModifiable getInv()
CapabilityItemHandler.ITEM_HANDLER_CAPABILITY capability.net.minecraft.util.math.vector.Vector3d getDronePos()
net.minecraft.util.math.BlockPos getControllerPos()
IPathNavigator getPathNavigator()
void sendWireframeToClient(net.minecraft.util.math.BlockPos pos)
pos - a block positionnet.minecraftforge.common.util.FakePlayer getFakePlayer()
boolean isBlockValidPathfindBlock(net.minecraft.util.math.BlockPos pos)
Custom pathfinding functionality may be added via IDroneRegistry.addPathfindableBlock(Block, IPathfindHandler).
pos - a block positionvoid dropItem(net.minecraft.item.ItemStack stack)
stack - the item stack to dropvoid setDugBlock(net.minecraft.util.math.BlockPos pos)
pos - a block positionnet.minecraft.entity.ai.goal.GoalSelector getTargetAI()
void setEmittingRedstone(net.minecraft.util.Direction orientation,
int emittingRedstone)
orientation - the direction to emitemittingRedstone - the redstone levelvoid setName(net.minecraft.util.text.ITextComponent string)
string - a custom namevoid setCarryingEntity(net.minecraft.entity.Entity entity)
entity - an entity to pick up, or null to drop any currently-held entityjava.util.List<net.minecraft.entity.Entity> getCarryingEntities()
boolean isAIOverridden()
void onItemPickupEvent(net.minecraft.entity.item.ItemEntity curPickingUpEntity,
int stackSize)
curPickingUpEntity - the item entitystackSize - the size of the itemstack in the item entitynet.minecraft.entity.player.PlayerEntity getOwner()
@Nonnull java.util.UUID getOwnerUUID()
net.minecraft.util.math.BlockPos getDeployPos()