Class ProgWidgetDroneConditionEntity
java.lang.Object
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidget
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetConditionBase
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetDroneCondition
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetDroneConditionEntity
- All Implemented Interfaces:
IProgWidgetBase,ICondition,IEntityProvider,IJump,IProgWidget,IVariableSetWidget,IVariableWidget
public class ProgWidgetDroneConditionEntity
extends ProgWidgetDroneCondition
implements IEntityProvider
-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddErrors(List<net.minecraft.network.chat.Component> curInfo, List<IProgWidget> widgets) protected intgetCount(IDroneBase d, IProgWidget widget) intMost, but not all, widgets have the entity filter attached as the second piece (area as the first)List<ProgWidgetType<?>>Get the types of the widgets which connect to this widget on the right, in order (top to bottom).net.minecraft.resources.ResourceLocationList<net.minecraft.world.entity.Entity>getValidEntities(net.minecraft.world.level.Level world) booleanisEntityValid(net.minecraft.world.entity.Entity entity) Methods inherited from class me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetDroneCondition
addVariables, evaluate, getExtraStringInfo, getMeasureVar, getOperator, getRequiredCount, getTooltip, getVariable, getWidgetAI, isAndFunction, readFromNBT, readFromPacket, setAIManager, setAndFunction, setMeasureVar, setOperator, setRequiredCount, setVariable, writeToNBT, writeToPacketMethods inherited from class me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetConditionBase
getColor, getDifficulty, getOutputWidget, getPossibleJumpLocations, hasStepInput, returnTypeMethods 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.IProgWidget
freeToUse, getTranslationKey, isDifficultyOK
-
Constructor Details
-
ProgWidgetDroneConditionEntity
public ProgWidgetDroneConditionEntity()
-
-
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- 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
-
getEntityFilterPosition
public int getEntityFilterPosition()Description copied from interface:IEntityProviderMost, but not all, widgets have the entity filter attached as the second piece (area as the first)- Specified by:
getEntityFilterPositionin interfaceIEntityProvider- Returns:
- the 0-based position of the entity filter Text widget
-
getCount
- Specified by:
getCountin classProgWidgetDroneCondition
-
getTexture
public net.minecraft.resources.ResourceLocation getTexture()- Specified by:
getTexturein interfaceIProgWidget
-
getValidEntities
public List<net.minecraft.world.entity.Entity> getValidEntities(net.minecraft.world.level.Level world) - Specified by:
getValidEntitiesin interfaceIEntityProvider
-
isEntityValid
public boolean isEntityValid(net.minecraft.world.entity.Entity entity) - Specified by:
isEntityValidin interfaceIEntityProvider
-