Class ProgWidgetEntityCondition
java.lang.Object
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidget
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetAreaItemBase
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetInventoryBase
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetCondition
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetEntityCondition
- All Implemented Interfaces:
IProgWidgetBase,IAreaProvider,ICondition,ICountWidget,IEntityProvider,IItemFiltering,IJump,IProgWidget,ISidedWidget,IVariableSetWidget,IVariableWidget
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.desht.pneumaticcraft.common.drone.progwidgets.ICondition
ICondition.OperatorNested 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.ProgWidgetAreaItemBase
aiManagerFields inherited from interface me.desht.pneumaticcraft.common.drone.progwidgets.ISidedWidget
ALL_SIDES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DroneAIBlockConditiongetEvaluator(IDroneBase drone, IProgWidget widget) getOutputWidget(IDroneBase drone, List<IProgWidget> allWidgets) Get the next widget in the program, which may or may not be the widget attached to the bottom of this one.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.drone.progwidgets.ProgWidgetCondition
addErrors, addVariables, evaluate, getColor, getDifficulty, getExtraStringInfo, getMeasureVar, getOperator, getPossibleJumpLocations, getRequiredCount, getTooltip, getVariable, getWidgetAI, isAndFunction, isUsingSides, readFromNBT, readFromPacket, setAndFunction, setMeasureVar, setOperator, setRequiredCount, setVariable, writeToNBT, writeToPacketMethods inherited from class me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetInventoryBase
getCount, getSides, setCount, setSides, setUseCount, useCountMethods inherited from class me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetAreaItemBase
getArea, getArea, getAreaExtents, getCachedAreaList, getCachedAreaSet, getChunkCache, getEntitiesInArea, getEntitiesInArea, getValidEntities, hasStepInput, invalidateAreaCache, isEntityValid, isItemFilterEmpty, isItemValidForFilters, isItemValidForFilters, returnType, setAIManagerMethods inherited from class me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidget
addWarnings, canBeRunByComputers, canSetParameter, copy, fromNBT, fromPacket, getConnectedParameters, getHeight, getMaxUV, getOutputWidget, getParent, getType, getTypeID, getWidgetTargetAI, getWidth, 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.ICondition
maybeRecordMeasuredValMethods inherited from interface me.desht.pneumaticcraft.common.drone.progwidgets.IEntityProvider
getEntityFilterPositionMethods inherited from interface me.desht.pneumaticcraft.common.drone.progwidgets.IProgWidget
freeToUse, getTranslationKey, isDifficultyOKMethods inherited from interface me.desht.pneumaticcraft.common.drone.progwidgets.ISidedWidget
isSideSelectedMethods inherited from interface me.desht.pneumaticcraft.common.drone.progwidgets.IVariableWidget
setAIManager
-
Constructor Details
-
ProgWidgetEntityCondition
public ProgWidgetEntityCondition()
-
-
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.- Specified by:
getParametersin interfaceIProgWidget- Overrides:
getParametersin classProgWidgetAreaItemBase- Returns:
- a list of widget types, or an empty list if no widgets can be added to the side of this widget
-
getEvaluator
- Specified by:
getEvaluatorin classProgWidgetCondition
-
getOutputWidget
Description copied from interface:IProgWidgetGet 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:
getOutputWidgetin interfaceIProgWidget- Overrides:
getOutputWidgetin classProgWidgetCondition- Parameters:
drone- the droneallWidgets- a list of widgets- Returns:
- the next widget to run
-
getTexture
public net.minecraft.resources.ResourceLocation getTexture()
-