Class ProgWidgetDig
java.lang.Object
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidget
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetAreaItemBase
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetDigAndPlace
me.desht.pneumaticcraft.common.drone.progwidgets.ProgWidgetDig
- All Implemented Interfaces:
IProgWidgetBase,IAreaProvider,IBlockOrdered,IEntityProvider,IItemFiltering,IMaxActions,IProgWidget,IToolUser,IVariableWidget
-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.DyeColorgetColor()net.minecraft.resources.ResourceLocationvoidgetTooltip(List<net.minecraft.network.chat.Component> curTooltip) net.minecraft.world.entity.ai.goal.GoalgetWidgetAI(IDroneBase drone, IProgWidget widget) Get the AI for this progwidgetvoidreadFromNBT(net.minecraft.nbt.CompoundTag tag) voidreadFromPacket(net.minecraft.network.FriendlyByteBuf buf) booleanvoidsetRequiresTool(boolean requireDiggingTool) 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.drone.progwidgets.ProgWidgetDigAndPlace
getExtraStringInfo, getMaxActions, getOrder, setMaxActions, setOrder, setUseMaxActions, useMaxActionsMethods 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, 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, getTranslationKey, isDifficultyOK
-
Constructor Details
-
ProgWidgetDig
public ProgWidgetDig()
-
-
Method Details
-
getTexture
public net.minecraft.resources.ResourceLocation getTexture()- Specified by:
getTexturein interfaceIProgWidget
-
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
-
getColor
public net.minecraft.world.item.DyeColor getColor()- Specified by:
getColorin interfaceIProgWidget
-
requiresTool
public boolean requiresTool()- Specified by:
requiresToolin interfaceIToolUser
-
setRequiresTool
public void setRequiresTool(boolean requireDiggingTool) - Specified by:
setRequiresToolin interfaceIToolUser
-
getTooltip
- Specified by:
getTooltipin interfaceIProgWidget- Overrides:
getTooltipin classProgWidgetDigAndPlace
-
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 classProgWidgetDigAndPlace- Parameters:
tag- NBT tag to write to
-
readFromNBT
public void readFromNBT(net.minecraft.nbt.CompoundTag tag) - Specified by:
readFromNBTin interfaceIProgWidget- Overrides:
readFromNBTin classProgWidgetDigAndPlace
-
writeToPacket
public void writeToPacket(net.minecraft.network.FriendlyByteBuf buf) - Specified by:
writeToPacketin interfaceIProgWidget- Overrides:
writeToPacketin classProgWidgetDigAndPlace
-
readFromPacket
public void readFromPacket(net.minecraft.network.FriendlyByteBuf buf) - Specified by:
readFromPacketin interfaceIProgWidget- Overrides:
readFromPacketin classProgWidgetDigAndPlace
-