Class ProgWidgetVoidLiquid
java.lang.Object
me.desht.pneumaticcraft.common.progwidgets.ProgWidget
me.desht.pneumaticcraft.common.progwidgets.ProgWidgetVoidLiquid
- All Implemented Interfaces:
IProgWidgetBase,ILiquidFiltered,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 TypeMethodDescriptionnet.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.ResourceLocationnet.minecraft.world.entity.ai.goal.GoalgetWidgetAI(IDroneBase drone, IProgWidget widget) Get the AI for this progwidgetbooleanCan this widget connect to a widget above?booleanisFluidValid(net.minecraft.world.level.material.Fluid fluid) 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.progwidgets.ProgWidget
addErrors, addWarnings, canBeRunByComputers, canSetParameter, copy, fromNBT, fromPacket, getConnectedParameters, getExtraStringInfo, getHeight, getMaxUV, getOutputWidget, getOutputWidget, getParent, getTooltip, getType, getTypeID, 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
-
ProgWidgetVoidLiquid
public ProgWidgetVoidLiquid()
-
-
Method Details
-
getWidgetAI
Description copied from interface:IProgWidgetGet the AI for this progwidget- Specified by:
getWidgetAIin interfaceIProgWidget- Overrides:
getWidgetAIin classProgWidget- Parameters:
drone- the dronewidget- will be 'this' most of the time, but not when controlled externally (e.g. ComputerCraft)- Returns:
- widget AI
-
getTexture
public net.minecraft.resources.ResourceLocation getTexture()- Specified by:
getTexturein interfaceIProgWidget
-
hasStepInput
public boolean hasStepInput()Description copied from interface:IProgWidgetCan this widget connect to a widget above?- Specified by:
hasStepInputin interfaceIProgWidget- 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.- Specified by:
returnTypein interfaceIProgWidget- 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- Returns:
- a list of widget types, or an empty list if no widgets can be added to the side of this widget
-
getColor
public net.minecraft.world.item.DyeColor getColor()- Specified by:
getColorin interfaceIProgWidget
-
getDifficulty
- Specified by:
getDifficultyin interfaceIProgWidget
-
isFluidValid
public boolean isFluidValid(net.minecraft.world.level.material.Fluid fluid) - Specified by:
isFluidValidin interfaceILiquidFiltered
-