public interface IDroneRegistry
PneumaticRegistry.IPneumaticCraftInterface#getDroneRegistry().| Modifier and Type | Method and Description |
|---|---|
void |
addPathfindableBlock(net.minecraft.block.Block block,
IPathfindHandler handler)
Normally drones will pathfind through any block that doesn't have any collisions.
|
net.minecraft.entity.CreatureEntity |
deliverFluidAmazonStyle(net.minecraft.util.math.GlobalPos globalPos,
net.minecraftforge.fluids.FluidStack deliveredFluid)
Similar to deliverItemsAmazonStyle, but with Fluids.
|
net.minecraft.entity.CreatureEntity |
deliverItemsAmazonStyle(net.minecraft.util.math.GlobalPos globalPos,
net.minecraft.item.ItemStack... deliveredStacks)
Will spawn in a Drone a distance away from the given coordinate.
|
void |
registerCustomBlockInteractor(net.minecraftforge.event.RegistryEvent.Register<ProgWidgetType<?>> event,
ICustomBlockInteract interactor)
This will add a custom puzzle piece that has only an Area whitelist/blacklist parameter (similar to a GoTo piece).
|
net.minecraft.entity.CreatureEntity |
retrieveFluidAmazonStyle(net.minecraft.util.math.GlobalPos globalPos,
net.minecraftforge.fluids.FluidStack queriedFluid)
The opposite of deliverFluidAmazonStyle.
|
net.minecraft.entity.CreatureEntity |
retrieveItemsAmazonStyle(net.minecraft.util.math.GlobalPos globalPos,
net.minecraft.item.ItemStack... queriedStacks)
The opposite of deliverItemsAmazonStyle.
|
void addPathfindableBlock(net.minecraft.block.Block block,
IPathfindHandler handler)
block - the block to allow pathfinding throughhandler - can be null, to always allow pathfinding through this block.void registerCustomBlockInteractor(net.minecraftforge.event.RegistryEvent.Register<ProgWidgetType<?>> event, ICustomBlockInteract interactor)
This must be called
from a registry event handler for RegistryEvent.Register to ensure registration
is done at the right time - do not call it directly from elsewhere.
event - the Forge registry eventinteractor - the custom interactor objectnet.minecraft.entity.CreatureEntity deliverItemsAmazonStyle(net.minecraft.util.math.GlobalPos globalPos,
net.minecraft.item.ItemStack... deliveredStacks)
When a player attempts to catch the drone (by wrenching it), the drone will only the drop the items that it was delivering (or none if it dropped those items already). The Drone itself never will be dropped.
globalPos - global position to deliver items todeliveredStacks - stacks to be delivered by the dronejava.lang.IllegalArgumentException - if the array of ItemStacks is empty or contains more than 36 separate stacksnet.minecraft.entity.CreatureEntity retrieveItemsAmazonStyle(net.minecraft.util.math.GlobalPos globalPos,
net.minecraft.item.ItemStack... queriedStacks)
globalPos - the global position to retrieve items fromqueriedStacks - the stacks to retrievenet.minecraft.entity.CreatureEntity deliverFluidAmazonStyle(net.minecraft.util.math.GlobalPos globalPos,
net.minecraftforge.fluids.FluidStack deliveredFluid)
globalPos - global position to deliver the fluid todeliveredFluid - the fluid to deliverjava.lang.IllegalArgumentException - if the FluidStack contains more than 576,000 mB of fluid (the maximum a fully
upgraded drone can carry)net.minecraft.entity.CreatureEntity retrieveFluidAmazonStyle(net.minecraft.util.math.GlobalPos globalPos,
net.minecraftforge.fluids.FluidStack queriedFluid)
globalPos - global block position to retrieve fluid fromqueriedFluid - the fluid to retrieve