Class ProgWidgetComment
java.lang.Object
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidget
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetText
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetComment
- All Implemented Interfaces:
IProgWidgetBase,IProgWidget
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.desht.pneumaticcraft.common.drone.progwidgets.IProgWidget
IProgWidget.WidgetDifficulty -
Field Summary
Fields inherited from class me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetText
string -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleannet.minecraft.world.item.DyeColorgetColor()List<net.minecraft.network.chat.Component>intList<ProgWidgetType<?>>Get the types of the widgets which connect to this widget on the right, in order (top to bottom).net.minecraft.resources.ResourceLocationvoidgetTooltip(List<net.minecraft.network.chat.Component> curTooltip) intgetWidth()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.ProgWidgetText
getDifficulty, hasStepInput, readFromNBT, readFromPacket, withText, writeToNBT, writeToPacketMethods inherited from class me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidget
addErrors, addWarnings, canBeRunByComputers, canSetParameter, copy, fromNBT, fromPacket, getConnectedParameters, getMaxUV, getOutputWidget, getOutputWidget, getParent, getType, getTypeID, getWidgetAI, getWidgetTargetAI, getX, getY, hasBlacklist, hasStepOutput, isAvailable, setOutputWidget, setParameter, setParent, setX, setYMethods 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
getTranslationKey, isDifficultyOK
-
Constructor Details
-
ProgWidgetComment
public ProgWidgetComment()
-
-
Method Details
-
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.- Specified by:
returnTypein interfaceIProgWidget- Overrides:
returnTypein classProgWidgetText- 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.- Specified by:
getParametersin interfaceIProgWidget- Overrides:
getParametersin classProgWidgetText- Returns:
- a list of widget types, or an empty list if no widgets can be added to the side of this widget
-
getTooltip
- Specified by:
getTooltipin interfaceIProgWidget- Overrides:
getTooltipin classProgWidgetText
-
addToTooltip
protected boolean addToTooltip()- Overrides:
addToTooltipin classProgWidgetText
-
getHeight
public int getHeight()- Specified by:
getHeightin interfaceIProgWidget- Overrides:
getHeightin classProgWidget
-
getWidth
public int getWidth()- Specified by:
getWidthin interfaceIProgWidget- Overrides:
getWidthin classProgWidget
-
getColor
public net.minecraft.world.item.DyeColor getColor()- Specified by:
getColorin interfaceIProgWidget- Overrides:
getColorin classProgWidgetText
-
getTexture
public net.minecraft.resources.ResourceLocation getTexture()- Specified by:
getTexturein interfaceIProgWidget- Overrides:
getTexturein classProgWidgetText
-
getExtraStringInfo
- Specified by:
getExtraStringInfoin interfaceIProgWidget- Overrides:
getExtraStringInfoin classProgWidgetText
-
freeToUse
public boolean freeToUse()
-