Class ProgWidgetDroneConditionUpgrades

All Implemented Interfaces:
IProgWidgetBase, ICondition, IItemFiltering, IJump, IProgWidget, IVariableSetWidget, IVariableWidget

public class ProgWidgetDroneConditionUpgrades extends ProgWidgetDroneCondition implements IItemFiltering
  • Constructor Details

    • ProgWidgetDroneConditionUpgrades

      public ProgWidgetDroneConditionUpgrades()
  • Method Details

    • getParameters

      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
    • getCount

      protected int getCount(IDroneBase drone, IProgWidget widget)
      Specified by:
      getCount in class ProgWidgetDroneCondition
    • getTexture

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

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