Class ProgWidgetVoidItem

java.lang.Object
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidget
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetVoidItem
All Implemented Interfaces:
IProgWidgetBase, IItemFiltering, IProgWidget

public class ProgWidgetVoidItem extends ProgWidget implements IItemFiltering
  • Constructor Details

    • ProgWidgetVoidItem

      public ProgWidgetVoidItem()
  • Method Details

    • getWidgetAI

      public net.minecraft.world.entity.ai.goal.Goal getWidgetAI(IDroneBase drone, IProgWidget widget)
      Description copied from interface: IProgWidget
      Get the AI for this progwidget
      Specified by:
      getWidgetAI in interface IProgWidget
      Overrides:
      getWidgetAI in class ProgWidget
      Parameters:
      drone - the drone
      widget - will be 'this' most of the time, but not when controlled externally (e.g. ComputerCraft)
      Returns:
      widget AI
    • getTexture

      public net.minecraft.resources.ResourceLocation getTexture()
      Specified by:
      getTexture in interface IProgWidget
    • hasStepInput

      public boolean hasStepInput()
      Description copied from interface: IProgWidget
      Can this widget connect to a widget above?
      Specified by:
      hasStepInput in interface IProgWidget
      Returns:
      true if it can, false otherwise
    • returnType

      public ProgWidgetType<?> returnType()
      Description copied from interface: IProgWidget
      For parameter widgets that are added onto the left or right of another widget, get the type of the widget being connected to.
      Specified by:
      returnType in interface IProgWidget
      Returns:
      the widget being connected to, or null if this widget isn't a parameter widget.
    • getParameters

      @Nonnull public List<ProgWidgetType<?>> getParameters()
      Description copied from interface: IProgWidget
      Get the types of the widgets which connect to this widget on the right, in order (top to bottom). Note that the length of the widget array returned by IProgWidget.getConnectedParameters() will be double the length of this list, since these widgets can be added on both the right (whitelist) and left (blacklist) sides.
      Specified by:
      getParameters in interface IProgWidget
      Returns:
      a list of widget types, or an empty list if no widgets can be added to the side of this widget
    • getColor

      public net.minecraft.world.item.DyeColor getColor()
      Specified by:
      getColor in interface IProgWidget
    • getDifficulty

      public IProgWidget.WidgetDifficulty getDifficulty()
      Specified by:
      getDifficulty in interface IProgWidget
    • isItemValidForFilters

      public boolean isItemValidForFilters(net.minecraft.world.item.ItemStack item)
      Specified by:
      isItemValidForFilters in interface IItemFiltering