Class ProgWidgetDigAndPlace
java.lang.Object
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidget
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetAreaItemBase
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetDigAndPlace
- All Implemented Interfaces:
IProgWidgetBase,IAreaProvider,IBlockOrdered,IEntityProvider,IItemFiltering,IMaxActions,IProgWidget,IVariableWidget
- Direct Known Subclasses:
ProgWidgetDig,ProgWidgetHarvest,ProgWidgetPlace
public abstract class ProgWidgetDigAndPlace
extends ProgWidgetAreaItemBase
implements IBlockOrdered, IMaxActions
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.desht.pneumaticcraft.common.drone.progwidgets.IBlockOrdered
IBlockOrdered.OrderingNested 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
aiManager -
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.network.chat.Component>intgetOrder()voidgetTooltip(List<net.minecraft.network.chat.Component> curTooltip) voidreadFromNBT(net.minecraft.nbt.CompoundTag tag) voidreadFromPacket(net.minecraft.network.FriendlyByteBuf buf) voidsetMaxActions(int maxActions) voidsetOrder(IBlockOrdered.Ordering order) voidsetUseMaxActions(boolean useMaxActions) booleanvoidwriteToNBT(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.drone.progwidgets.ProgWidgetAreaItemBase
addErrors, addVariables, getArea, getArea, getAreaExtents, getCachedAreaList, getCachedAreaSet, getChunkCache, getDifficulty, getEntitiesInArea, getEntitiesInArea, getParameters, 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, getOutputWidget, getParent, getType, getTypeID, getWidgetAI, 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.IEntityProvider
getEntityFilterPositionMethods inherited from interface me.desht.pneumaticcraft.common.drone.progwidgets.IMaxActions
supportsMaxActionsMethods inherited from interface me.desht.pneumaticcraft.common.drone.progwidgets.IProgWidget
freeToUse, getColor, getTexture, getTranslationKey, isDifficultyOK
-
Method Details
-
getOrder
- Specified by:
getOrderin interfaceIBlockOrdered
-
setOrder
- Specified by:
setOrderin interfaceIBlockOrdered
-
getTooltip
- Specified by:
getTooltipin interfaceIProgWidget- Overrides:
getTooltipin classProgWidget
-
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 classProgWidget- Parameters:
tag- NBT tag to write to
-
readFromNBT
public void readFromNBT(net.minecraft.nbt.CompoundTag tag) - Specified by:
readFromNBTin interfaceIProgWidget- Overrides:
readFromNBTin classProgWidget
-
writeToPacket
public void writeToPacket(net.minecraft.network.FriendlyByteBuf buf) - Specified by:
writeToPacketin interfaceIProgWidget- Overrides:
writeToPacketin classProgWidget
-
readFromPacket
public void readFromPacket(net.minecraft.network.FriendlyByteBuf buf) - Specified by:
readFromPacketin interfaceIProgWidget- Overrides:
readFromPacketin classProgWidget
-
getExtraStringInfo
- Specified by:
getExtraStringInfoin interfaceIProgWidget- Overrides:
getExtraStringInfoin classProgWidget
-
setMaxActions
public void setMaxActions(int maxActions) - Specified by:
setMaxActionsin interfaceIMaxActions
-
getMaxActions
public int getMaxActions()- Specified by:
getMaxActionsin interfaceIMaxActions
-
setUseMaxActions
public void setUseMaxActions(boolean useMaxActions) - Specified by:
setUseMaxActionsin interfaceIMaxActions
-
useMaxActions
public boolean useMaxActions()- Specified by:
useMaxActionsin interfaceIMaxActions
-