Class ProgWidgetStart
java.lang.Object
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidget
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetStart
- All Implemented Interfaces:
IProgWidgetBase,IProgWidget
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.desht.pneumaticcraft.common.drone.progwidgets.IProgWidget
IProgWidget.WidgetDifficulty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddErrors(List<net.minecraft.network.chat.Component> curInfo, List<IProgWidget> widgets) net.minecraft.world.item.DyeColorgetColor()List<ProgWidgetType<?>>Get the types of the widgets which connect to this widget on the right, in order (top to bottom).net.minecraft.resources.ResourceLocationbooleanCan this widget connect to a widget above?booleanCan another widget be connected below this widget?For parameter widgets that are added onto the left or right of another widget, get the type of the widget being connected to.Methods inherited from class me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidget
addWarnings, canBeRunByComputers, canSetParameter, copy, fromNBT, fromPacket, getConnectedParameters, getExtraStringInfo, getHeight, getMaxUV, getOutputWidget, getOutputWidget, getParent, getTooltip, getType, getTypeID, getWidgetAI, getWidgetTargetAI, getWidth, getX, getY, hasBlacklist, isAvailable, readFromNBT, readFromPacket, setOutputWidget, setParameter, setParent, setX, setY, writeToNBT, writeToPacketMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.desht.pneumaticcraft.common.drone.progwidgets.IProgWidget
freeToUse, getTranslationKey, isDifficultyOK
-
Constructor Details
-
ProgWidgetStart
public ProgWidgetStart()
-
-
Method Details
-
hasStepInput
public boolean hasStepInput()Description copied from interface:IProgWidgetCan this widget connect to a widget above?- Returns:
- true if it can, false otherwise
-
hasStepOutput
public boolean hasStepOutput()Description copied from interface:IProgWidgetCan another widget be connected below this widget?- Specified by:
hasStepOutputin interfaceIProgWidget- Overrides:
hasStepOutputin classProgWidget- Returns:
- true if it can, false otherwise
-
returnType
Description copied from interface:IProgWidgetFor parameter widgets that are added onto the left or right of another widget, get the type of the widget being connected to.- Returns:
- the widget being connected to, or null if this widget isn't a parameter widget.
-
getParameters
Description copied from interface:IProgWidgetGet 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 byIProgWidget.getConnectedParameters()will be double the length of this list, since these widgets can be added on both the right (whitelist) and left (blacklist) sides.- Returns:
- a list of widget types, or an empty list if no widgets can be added to the side of this widget
-
getTexture
public net.minecraft.resources.ResourceLocation getTexture() -
getDifficulty
-
getColor
public net.minecraft.world.item.DyeColor getColor() -
addErrors
public void addErrors(List<net.minecraft.network.chat.Component> curInfo, List<IProgWidget> widgets) - Specified by:
addErrorsin interfaceIProgWidget- Overrides:
addErrorsin classProgWidget
-