Class ProgWidgetCustomBlockInteract
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.ProgWidgetCustomBlockInteract
- All Implemented Interfaces:
IProgWidgetBase,IAreaProvider,ICountWidget,IEntityProvider,IItemFiltering,IProgWidget,ISidedWidget,IVariableWidget
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.desht.pneumaticcraft.common.progwidgets.IProgWidget
IProgWidget.WidgetDifficulty -
Field Summary
Fields 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 TypeMethodDescriptioncopy()net.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.ResourceLocationgetType()net.minecraft.world.entity.ai.goal.GoalgetWidgetAI(IDroneBase drone, IProgWidget widget) Get the AI for this progwidgetsetInteractor(ICustomBlockInteract interactor) Methods inherited from class me.desht.pneumaticcraft.common.progwidgets.ProgWidgetInventoryBase
addErrors, getCount, getExtraStringInfo, getSides, getTooltip, isUsingSides, readFromNBT, readFromPacket, setCount, setSides, setUseCount, useCount, writeToNBT, writeToPacketMethods inherited from class me.desht.pneumaticcraft.common.progwidgets.ProgWidgetAreaItemBase
addVariables, getArea, getArea, getAreaExtents, getCachedAreaList, getCachedAreaSet, getChunkCache, getDifficulty, getEntitiesInArea, getEntitiesInArea, getValidEntities, hasStepInput, invalidateAreaCache, isEntityValid, isItemFilterEmpty, isItemValidForFilters, isItemValidForFilters, returnType, setAIManagerMethods inherited from class me.desht.pneumaticcraft.common.progwidgets.ProgWidget
addWarnings, canBeRunByComputers, canSetParameter, fromNBT, fromPacket, getConnectedParameters, getHeight, getMaxUV, getOutputWidget, getOutputWidget, getParent, 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.IEntityProvider
getEntityFilterPositionMethods inherited from interface me.desht.pneumaticcraft.common.progwidgets.IProgWidget
freeToUse, getTranslationKey, isDifficultyOKMethods inherited from interface me.desht.pneumaticcraft.common.progwidgets.ISidedWidget
isSideSelected
-
Constructor Details
-
ProgWidgetCustomBlockInteract
public ProgWidgetCustomBlockInteract()
-
-
Method Details
-
setInteractor
-
getType
- Specified by:
getTypein interfaceIProgWidget- Overrides:
getTypein classProgWidget
-
copy
- Specified by:
copyin interfaceIProgWidget- Overrides:
copyin classProgWidget
-
getTexture
public net.minecraft.resources.ResourceLocation getTexture() -
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
-
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
-
getColor
public net.minecraft.world.item.DyeColor getColor()
-