Class ProgWidgetItemCondition
java.lang.Object
me.desht.pneumaticcraft.common.progwidgets.ProgWidget
me.desht.pneumaticcraft.common.progwidgets.ProgWidgetConditionBase
me.desht.pneumaticcraft.common.progwidgets.ProgWidgetItemCondition
- All Implemented Interfaces:
IProgWidgetBase,IJump,IProgWidget
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.desht.pneumaticcraft.common.progwidgets.IProgWidget
IProgWidget.WidgetDifficulty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddErrors(List<net.minecraft.network.chat.Component> curInfo, List<IProgWidget> widgets) booleanevaluate(IDroneBase drone, IProgWidget widget) List<ProgWidgetType<?>>Get the types of the widgets which connect to this widget on the right, in order (top to bottom).net.minecraft.resources.ResourceLocationMethods inherited from class me.desht.pneumaticcraft.common.progwidgets.ProgWidgetConditionBase
getColor, getOutputWidget, getPossibleJumpLocations, hasStepInput, returnTypeMethods inherited from class me.desht.pneumaticcraft.common.progwidgets.ProgWidget
addWarnings, canBeRunByComputers, canSetParameter, copy, fromNBT, fromPacket, getConnectedParameters, getExtraStringInfo, getHeight, getMaxUV, getOutputWidget, getParent, getTooltip, getType, getTypeID, getWidgetAI, getWidgetTargetAI, getWidth, getX, getY, hasBlacklist, hasStepOutput, 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.progwidgets.IProgWidget
freeToUse, getTranslationKey, isDifficultyOK
-
Constructor Details
-
ProgWidgetItemCondition
public ProgWidgetItemCondition()
-
-
Method Details
-
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
-
addErrors
public void addErrors(List<net.minecraft.network.chat.Component> curInfo, List<IProgWidget> widgets) - Specified by:
addErrorsin interfaceIProgWidget- Overrides:
addErrorsin classProgWidgetConditionBase
-
evaluate
- Specified by:
evaluatein classProgWidgetConditionBase
-
getDifficulty
- Specified by:
getDifficultyin interfaceIProgWidget- Overrides:
getDifficultyin classProgWidgetConditionBase
-
getTexture
public net.minecraft.resources.ResourceLocation getTexture()
-