public class ProgWidgetCC extends ProgWidgetInventoryBase implements IBlockOrdered, IGotoWidget, IItemPickupWidget, IEntityProvider, ITextWidget, ICondition, IItemDropper, ILiquidFiltered, IRedstoneEmissionWidget, IRenamingWidget, ICraftingWidget, IMaxActions, IBlockRightClicker, ILiquidExport, ISignEditWidget, IToolUser
IBlockOrdered.OrderingICondition.OperatorIBlockRightClicker.RightClickTypeIProgWidget.WidgetDifficultyaiManagerALL_SIDES| Constructor and Description |
|---|
ProgWidgetCC() |
| Modifier and Type | Method and Description |
|---|---|
void |
addArea(int x,
int y,
int z) |
void |
addArea(int x1,
int y1,
int z1,
int x2,
int y2,
int z2,
java.lang.String areaType) |
boolean |
canSteal()
Should this widget ignore PreventRemoteMovement tags on item entities?
|
boolean |
doneWhenDeparting() |
boolean |
dropStraight() |
boolean |
evaluate(IDroneBase drone,
IProgWidget widget)
Used in the CC compatibility.
|
void |
getArea(java.util.Set<net.minecraft.util.math.BlockPos> area) |
IBlockRightClicker.RightClickType |
getClickType() |
net.minecraft.item.DyeColor |
getColor() |
int |
getCount() |
net.minecraft.inventory.CraftingInventory |
getCraftingGrid() |
int |
getEmittingRedstone() |
java.util.List<net.minecraft.entity.Entity> |
getEntitiesInArea(net.minecraft.world.World world,
java.util.function.Predicate<? super net.minecraft.entity.Entity> filter) |
java.lang.String[] |
getLines() |
int |
getMaxActions() |
java.lang.String |
getMeasureVar() |
java.lang.String |
getNewName() |
ICondition.Operator |
getOperator() |
IBlockOrdered.Ordering |
getOrder() |
java.util.List<ProgWidgetType<?>> |
getParameters()
Get the types of the widgets which connect to this widget on the right, in order (top to bottom).
|
java.util.Optional<net.minecraft.item.crafting.ICraftingRecipe> |
getRecipe(net.minecraft.world.World world,
net.minecraft.inventory.CraftingInventory grid) |
int |
getRequiredCount() |
boolean[] |
getSides() |
net.minecraft.util.ResourceLocation |
getTexture() |
java.util.List<net.minecraft.entity.Entity> |
getValidEntities(net.minecraft.world.World world) |
net.minecraft.entity.ai.goal.Goal |
getWidgetAI(IDroneBase drone,
IProgWidget widget)
Get the AI for this progwidget
|
net.minecraft.entity.ai.goal.Goal |
getWidgetTargetAI(IDroneBase drone,
IProgWidget widget)
Get the targeting AI for this progwidget
|
boolean |
hasPickupDelay() |
boolean |
isAndFunction() |
boolean |
isAvailable()
Is this widget currently available in this world? i.e.
|
boolean |
isEntityValid(net.minecraft.entity.Entity entity) |
boolean |
isFluidValid(net.minecraft.fluid.Fluid fluid) |
boolean |
isItemFilterEmpty() |
boolean |
isItemValidForFilters(net.minecraft.item.ItemStack item,
net.minecraft.block.BlockState blockMetadata) |
boolean |
isPlacingFluidBlocks() |
boolean |
isSneaking() |
boolean |
requiresTool() |
void |
setAndFunction(boolean isAndFunction) |
void |
setCanSteal(boolean canSteal) |
void |
setClickType(IBlockRightClicker.RightClickType clickType) |
void |
setCount(int count) |
void |
setDoneWhenDeparting(boolean bool) |
void |
setDropStraight(boolean dropStraight) |
void |
setMaxActions(int maxActions) |
void |
setMeasureVar(java.lang.String var) |
void |
setOperator(ICondition.Operator operator) |
void |
setOperator(java.lang.String operator) |
void |
setOrder(IBlockOrdered.Ordering order) |
void |
setPickupDelay(boolean pickupDelay) |
void |
setPlaceFluidBlocks(boolean placeFluidBlocks) |
void |
setRequiredCount(int count) |
void |
setRequiresTool(boolean requiresTool) |
void |
setSides(boolean[] sides) |
void |
setSneaking(boolean sneaking) |
void |
setUseCount(boolean useCount) |
void |
setUseMaxActions(boolean useMaxActions) |
boolean |
useCount() |
boolean |
useMaxActions() |
addErrors, getExtraStringInfo, getTooltip, isUsingSides, readFromNBT, readFromPacket, writeToNBT, writeToPacketaddVariables, getArea, getAreaExtents, getCachedAreaList, getCachedAreaSet, getChunkCache, getDifficulty, getEntitiesInArea, hasStepInput, invalidateAreaCache, isItemValidForFilters, returnType, setAIManageraddWarnings, canBeRunByComputers, canSetParameter, copy, fromNBT, fromPacket, getConnectedParameters, getHeight, getMaxUV, getOutputWidget, getOutputWidget, getParent, getTextureSize, getType, getTypeID, getWidth, getX, getY, hasBlacklist, hasStepOutput, setOutputWidget, setParameter, setParent, setX, setYclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisItemValidForFiltersgetEntityFilterPositionmaybeRecordMeasuredValsupportsMaxActionsgetDirForSides, getSidesFromDir, isSideSelectedcreate, freeToUse, getTranslationKey, isDifficultyOKpublic java.util.List<ProgWidgetType<?>> getParameters()
IProgWidgetIProgWidget.getConnectedParameters() will be double the length of this list,
since these widgets can be added on both the right (whitelist) and left (blacklist) sides.getParameters in interface IProgWidgetgetParameters in class ProgWidgetAreaItemBasepublic net.minecraft.item.DyeColor getColor()
getColor in interface IProgWidgetpublic boolean isAvailable()
IProgWidgetisAvailable in interface IProgWidgetisAvailable in class ProgWidgetpublic net.minecraft.util.ResourceLocation getTexture()
getTexture in interface IProgWidgetpublic net.minecraft.entity.ai.goal.Goal getWidgetAI(IDroneBase drone, IProgWidget widget)
IProgWidgetgetWidgetAI in interface IProgWidgetgetWidgetAI in class ProgWidgetdrone - the dronewidget - will be 'this' most of the time, but not when controlled externally (e.g. ComputerCraft)public net.minecraft.entity.ai.goal.Goal getWidgetTargetAI(IDroneBase drone, IProgWidget widget)
IProgWidgetgetWidgetTargetAI in interface IProgWidgetgetWidgetTargetAI in class ProgWidgetdrone - the dronewidget - Will be 'this' most of the time, but not when controlled externally (e.g. ComputerCraft)public void setOrder(IBlockOrdered.Ordering order)
setOrder in interface IBlockOrderedpublic IBlockOrdered.Ordering getOrder()
getOrder in interface IBlockOrderedpublic void addArea(int x,
int y,
int z)
public void addArea(int x1,
int y1,
int z1,
int x2,
int y2,
int z2,
java.lang.String areaType)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic void getArea(java.util.Set<net.minecraft.util.math.BlockPos> area)
getArea in interface IAreaProvidergetArea in class ProgWidgetAreaItemBasepublic boolean isItemValidForFilters(net.minecraft.item.ItemStack item,
net.minecraft.block.BlockState blockMetadata)
isItemValidForFilters in class ProgWidgetAreaItemBasepublic boolean isItemFilterEmpty()
isItemFilterEmpty in class ProgWidgetAreaItemBasepublic java.util.List<net.minecraft.entity.Entity> getValidEntities(net.minecraft.world.World world)
getValidEntities in interface IEntityProvidergetValidEntities in class ProgWidgetAreaItemBasepublic java.util.List<net.minecraft.entity.Entity> getEntitiesInArea(net.minecraft.world.World world,
java.util.function.Predicate<? super net.minecraft.entity.Entity> filter)
getEntitiesInArea in class ProgWidgetAreaItemBasepublic boolean isEntityValid(net.minecraft.entity.Entity entity)
isEntityValid in interface IEntityProviderisEntityValid in class ProgWidgetAreaItemBasepublic boolean doneWhenDeparting()
doneWhenDeparting in interface IGotoWidgetpublic void setDoneWhenDeparting(boolean bool)
setDoneWhenDeparting in interface IGotoWidgetpublic void setSides(boolean[] sides)
setSides in interface ISidedWidgetsetSides in class ProgWidgetInventoryBasepublic boolean[] getSides()
getSides in interface ISidedWidgetgetSides in class ProgWidgetInventoryBasepublic int getEmittingRedstone()
getEmittingRedstone in interface IRedstoneEmissionWidgetpublic boolean isFluidValid(net.minecraft.fluid.Fluid fluid)
isFluidValid in interface ILiquidFilteredpublic boolean dropStraight()
dropStraight in interface IItemDropperpublic void setDropStraight(boolean dropStraight)
setDropStraight in interface IItemDropperpublic boolean hasPickupDelay()
hasPickupDelay in interface IItemDropperpublic void setPickupDelay(boolean pickupDelay)
setPickupDelay in interface IItemDropperpublic boolean useCount()
useCount in interface ICountWidgetuseCount in class ProgWidgetInventoryBasepublic void setUseCount(boolean useCount)
setUseCount in interface ICountWidgetsetUseCount in class ProgWidgetInventoryBasepublic int getCount()
getCount in interface ICountWidgetgetCount in class ProgWidgetInventoryBasepublic void setCount(int count)
setCount in interface ICountWidgetsetCount in class ProgWidgetInventoryBasepublic boolean isAndFunction()
isAndFunction in interface IConditionpublic void setAndFunction(boolean isAndFunction)
setAndFunction in interface IConditionpublic int getRequiredCount()
getRequiredCount in interface IConditionpublic void setRequiredCount(int count)
setRequiredCount in interface IConditionpublic ICondition.Operator getOperator()
getOperator in interface IConditionpublic void setOperator(ICondition.Operator operator)
setOperator in interface IConditionpublic java.lang.String getMeasureVar()
getMeasureVar in interface IConditionpublic void setMeasureVar(java.lang.String var)
setMeasureVar in interface IConditionpublic void setOperator(java.lang.String operator)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic boolean evaluate(IDroneBase drone, IProgWidget widget)
IConditionevaluate in interface IConditiondrone - the dronepublic java.lang.String getNewName()
getNewName in interface IRenamingWidgetpublic net.minecraft.inventory.CraftingInventory getCraftingGrid()
getCraftingGrid in interface ICraftingWidgetpublic java.util.Optional<net.minecraft.item.crafting.ICraftingRecipe> getRecipe(net.minecraft.world.World world,
net.minecraft.inventory.CraftingInventory grid)
getRecipe in interface ICraftingWidgetpublic void setMaxActions(int maxActions)
setMaxActions in interface IMaxActionspublic int getMaxActions()
getMaxActions in interface IMaxActionspublic void setUseMaxActions(boolean useMaxActions)
setUseMaxActions in interface IMaxActionspublic boolean useMaxActions()
useMaxActions in interface IMaxActionspublic void setSneaking(boolean sneaking)
public boolean isSneaking()
isSneaking in interface IBlockRightClickerpublic IBlockRightClicker.RightClickType getClickType()
getClickType in interface IBlockRightClickerpublic void setClickType(IBlockRightClicker.RightClickType clickType)
public void setPlaceFluidBlocks(boolean placeFluidBlocks)
setPlaceFluidBlocks in interface ILiquidExportpublic boolean isPlacingFluidBlocks()
isPlacingFluidBlocks in interface ILiquidExportpublic java.lang.String[] getLines()
getLines in interface ISignEditWidgetpublic boolean requiresTool()
requiresTool in interface IToolUserpublic void setRequiresTool(boolean requiresTool)
setRequiresTool in interface IToolUserpublic boolean canSteal()
IItemPickupWidgetcanSteal in interface IItemPickupWidgetpublic void setCanSteal(boolean canSteal)
setCanSteal in interface IItemPickupWidget