public enum DroneRegistry extends java.lang.Enum<DroneRegistry> implements IDroneRegistry
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Field and Description |
|---|---|
java.util.Map<net.minecraft.block.Block,IPathfindHandler> |
pathfindableBlocks |
| 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.
|
static DroneRegistry |
getInstance() |
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.
|
static DroneRegistry |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DroneRegistry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DroneRegistry INSTANCE
public final java.util.Map<net.minecraft.block.Block,IPathfindHandler> pathfindableBlocks
public static DroneRegistry[] values()
for (DroneRegistry c : DroneRegistry.values()) System.out.println(c);
public static DroneRegistry valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static DroneRegistry getInstance()
public void addPathfindableBlock(net.minecraft.block.Block block,
IPathfindHandler handler)
IDroneRegistryaddPathfindableBlock in interface IDroneRegistryblock - the block to allow pathfinding throughhandler - can be null, to always allow pathfinding through this block.public void registerCustomBlockInteractor(net.minecraftforge.event.RegistryEvent.Register<ProgWidgetType<?>> event, ICustomBlockInteract interactor)
IDroneRegistryThis 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.
registerCustomBlockInteractor in interface IDroneRegistryevent - the Forge registry eventinteractor - the custom interactor objectpublic net.minecraft.entity.CreatureEntity deliverItemsAmazonStyle(net.minecraft.util.math.GlobalPos globalPos,
net.minecraft.item.ItemStack... deliveredStacks)
IDroneRegistryWhen 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.
deliverItemsAmazonStyle in interface IDroneRegistryglobalPos - global position to deliver items todeliveredStacks - stacks to be delivered by the dronepublic net.minecraft.entity.CreatureEntity retrieveItemsAmazonStyle(net.minecraft.util.math.GlobalPos globalPos,
net.minecraft.item.ItemStack... queriedStacks)
IDroneRegistryretrieveItemsAmazonStyle in interface IDroneRegistryglobalPos - the global position to retrieve items fromqueriedStacks - the stacks to retrievepublic net.minecraft.entity.CreatureEntity deliverFluidAmazonStyle(net.minecraft.util.math.GlobalPos globalPos,
net.minecraftforge.fluids.FluidStack deliveredFluid)
IDroneRegistrydeliverFluidAmazonStyle in interface IDroneRegistryglobalPos - global position to deliver the fluid todeliveredFluid - the fluid to deliverpublic net.minecraft.entity.CreatureEntity retrieveFluidAmazonStyle(net.minecraft.util.math.GlobalPos globalPos,
net.minecraftforge.fluids.FluidStack queriedFluid)
IDroneRegistryretrieveFluidAmazonStyle in interface IDroneRegistryglobalPos - global block position to retrieve fluid fromqueriedFluid - the fluid to retrieve