Class ProgWidgetEntityCondition

All Implemented Interfaces:
IProgWidgetBase, IAreaProvider, ICondition, ICountWidget, IEntityProvider, IItemFiltering, IJump, IProgWidget, ISidedWidget, IVariableSetWidget, IVariableWidget

public class ProgWidgetEntityCondition extends ProgWidgetCondition
  • Constructor Details

    • ProgWidgetEntityCondition

      public ProgWidgetEntityCondition()
  • 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
      Overrides:
      getParameters in class ProgWidgetAreaItemBase
      Returns:
      a list of widget types, or an empty list if no widgets can be added to the side of this widget
    • getEvaluator

      protected DroneAIBlockCondition getEvaluator(IDroneBase drone, IProgWidget widget)
      Specified by:
      getEvaluator in class ProgWidgetCondition
    • getOutputWidget

      public IProgWidget getOutputWidget(IDroneBase drone, List<IProgWidget> allWidgets)
      Description copied from interface: IProgWidget
      Get the next widget in the program, which may or may not be the widget attached to the bottom of this one. This method variant is called when running in a live program, and has access to the drone context and a view of the full program so it can deal with special conditions like jumps etc.
      Specified by:
      getOutputWidget in interface IProgWidget
      Overrides:
      getOutputWidget in class ProgWidgetCondition
      Parameters:
      drone - the drone
      allWidgets - a list of widgets
      Returns:
      the next widget to run
    • getTexture

      public net.minecraft.resources.ResourceLocation getTexture()