Class ProgWidgetBlockCondition
java.lang.Object
me.desht.pneumaticcraft.common.progwidgets.ProgWidget
me.desht.pneumaticcraft.common.progwidgets.ProgWidgetAreaItemBase
me.desht.pneumaticcraft.common.progwidgets.ProgWidgetInventoryBase
me.desht.pneumaticcraft.common.progwidgets.ProgWidgetCondition
me.desht.pneumaticcraft.common.progwidgets.ProgWidgetBlockCondition
- 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.progwidgets.ICondition
ICondition.OperatorNested classes/interfaces inherited from interface me.desht.pneumaticcraft.common.progwidgets.IProgWidget
IProgWidget.WidgetDifficulty -
Field Summary
FieldsFields inherited from class me.desht.pneumaticcraft.common.progwidgets.ProgWidgetAreaItemBase
aiManagerFields inherited from interface me.desht.pneumaticcraft.common.progwidgets.ISidedWidget
ALL_SIDES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DroneAIBlockConditiongetEvaluator(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.ResourceLocationvoidreadFromNBT(net.minecraft.nbt.CompoundTag tag) voidreadFromPacket(net.minecraft.network.FriendlyByteBuf buf) voidwriteToNBT(net.minecraft.nbt.CompoundTag tag) At least dotag.putString("name", getTypeID().toString());voidwriteToPacket(net.minecraft.network.FriendlyByteBuf buf) Methods inherited from class me.desht.pneumaticcraft.common.progwidgets.ProgWidgetCondition
addErrors, addVariables, evaluate, getColor, getDifficulty, getExtraStringInfo, getMeasureVar, getOperator, getOutputWidget, getPossibleJumpLocations, getRequiredCount, getTooltip, getVariable, getWidgetAI, isAndFunction, isUsingSides, setAndFunction, setMeasureVar, setOperator, setRequiredCount, setVariableMethods inherited from class me.desht.pneumaticcraft.common.progwidgets.ProgWidgetInventoryBase
getCount, getSides, setCount, setSides, setUseCount, useCountMethods inherited from class me.desht.pneumaticcraft.common.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.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.progwidgets.ICondition
maybeRecordMeasuredValMethods inherited from interface me.desht.pneumaticcraft.common.progwidgets.IEntityProvider
getEntityFilterPositionMethods inherited from interface me.desht.pneumaticcraft.common.progwidgets.IProgWidget
freeToUse, getTranslationKey, isDifficultyOKMethods inherited from interface me.desht.pneumaticcraft.common.progwidgets.ISidedWidget
isSideSelectedMethods inherited from interface me.desht.pneumaticcraft.common.progwidgets.IVariableWidget
setAIManager
-
Field Details
-
checkingForAir
public boolean checkingForAir -
checkingForLiquids
public boolean checkingForLiquids
-
-
Constructor Details
-
ProgWidgetBlockCondition
public ProgWidgetBlockCondition()
-
-
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
-
getTexture
public net.minecraft.resources.ResourceLocation getTexture() -
writeToNBT
public void writeToNBT(net.minecraft.nbt.CompoundTag tag) Description copied from interface:IProgWidgetAt least dotag.putString("name", getTypeID().toString());Note that the base implementation
ProgWidgetdoes this.- Specified by:
writeToNBTin interfaceIProgWidget- Overrides:
writeToNBTin classProgWidgetCondition- Parameters:
tag- NBT tag to write to
-
readFromNBT
public void readFromNBT(net.minecraft.nbt.CompoundTag tag) - Specified by:
readFromNBTin interfaceIProgWidget- Overrides:
readFromNBTin classProgWidgetCondition
-
writeToPacket
public void writeToPacket(net.minecraft.network.FriendlyByteBuf buf) - Specified by:
writeToPacketin interfaceIProgWidget- Overrides:
writeToPacketin classProgWidgetCondition
-
readFromPacket
public void readFromPacket(net.minecraft.network.FriendlyByteBuf buf) - Specified by:
readFromPacketin interfaceIProgWidget- Overrides:
readFromPacketin classProgWidgetCondition
-