public abstract class ProgWidgetAreaItemBase extends ProgWidget implements IAreaProvider, IEntityProvider, IItemFiltering, IVariableWidget
IProgWidget.WidgetDifficulty| Modifier and Type | Field and Description |
|---|---|
protected DroneAIManager |
aiManager |
| Constructor and Description |
|---|
ProgWidgetAreaItemBase(ProgWidgetType<?> type) |
| Modifier and Type | Method and Description |
|---|---|
void |
addErrors(java.util.List<net.minecraft.util.text.ITextComponent> curInfo,
java.util.List<IProgWidget> widgets) |
void |
addVariables(java.util.Set<java.lang.String> variables) |
void |
getArea(java.util.Set<net.minecraft.util.math.BlockPos> area) |
static void |
getArea(java.util.Set<net.minecraft.util.math.BlockPos> area,
ProgWidgetArea whitelistWidget,
ProgWidgetArea blacklistWidget) |
net.minecraft.util.math.AxisAlignedBB |
getAreaExtents() |
java.util.List<net.minecraft.util.math.BlockPos> |
getCachedAreaList() |
java.util.Set<net.minecraft.util.math.BlockPos> |
getCachedAreaSet() |
net.minecraft.world.ICollisionReader |
getChunkCache(net.minecraft.world.World world) |
IProgWidget.WidgetDifficulty |
getDifficulty() |
static java.util.List<net.minecraft.entity.Entity> |
getEntitiesInArea(ProgWidgetArea whitelistWidget,
ProgWidgetArea blacklistWidget,
net.minecraft.world.World world,
java.util.function.Predicate<? super net.minecraft.entity.Entity> whitelistPredicate,
java.util.function.Predicate<? super net.minecraft.entity.Entity> blacklistPredicate) |
java.util.List<net.minecraft.entity.Entity> |
getEntitiesInArea(net.minecraft.world.World world,
java.util.function.Predicate<? super net.minecraft.entity.Entity> filter) |
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.List<net.minecraft.entity.Entity> |
getValidEntities(net.minecraft.world.World world) |
boolean |
hasStepInput()
Can this widget connect to a widget above?
|
protected void |
invalidateAreaCache() |
boolean |
isEntityValid(net.minecraft.entity.Entity entity) |
boolean |
isItemFilterEmpty() |
boolean |
isItemValidForFilters(net.minecraft.item.ItemStack item) |
boolean |
isItemValidForFilters(net.minecraft.item.ItemStack item,
net.minecraft.block.BlockState blockState) |
ProgWidgetType<?> |
returnType()
For "auxiliary" widgets that are added onto the left or right of another widget, get the type of the widget
being connected to.
|
void |
setAIManager(DroneAIManager aiManager) |
addWarnings, canBeRunByComputers, canSetParameter, copy, fromNBT, fromPacket, getConnectedParameters, getExtraStringInfo, getHeight, getMaxUV, getOutputWidget, getOutputWidget, getParent, getTextureSize, getTooltip, getType, getTypeID, getWidgetAI, getWidgetTargetAI, getWidth, getX, getY, hasBlacklist, hasStepOutput, isAvailable, readFromNBT, readFromPacket, setOutputWidget, setParameter, setParent, setX, setY, writeToNBT, writeToPacketclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEntityFilterPositioncreate, freeToUse, getColor, getTexture, getTranslationKey, isDifficultyOKprotected DroneAIManager aiManager
public ProgWidgetAreaItemBase(ProgWidgetType<?> type)
public boolean hasStepInput()
IProgWidgethasStepInput in interface IProgWidgetpublic ProgWidgetType<?> returnType()
IProgWidgetreturnType in interface IProgWidgetpublic 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 IProgWidgetpublic void addErrors(java.util.List<net.minecraft.util.text.ITextComponent> curInfo,
java.util.List<IProgWidget> widgets)
addErrors in interface IProgWidgetaddErrors in class ProgWidgetpublic net.minecraft.world.ICollisionReader getChunkCache(net.minecraft.world.World world)
public net.minecraft.util.math.AxisAlignedBB getAreaExtents()
public java.util.List<net.minecraft.util.math.BlockPos> getCachedAreaList()
public java.util.Set<net.minecraft.util.math.BlockPos> getCachedAreaSet()
protected void invalidateAreaCache()
public void getArea(java.util.Set<net.minecraft.util.math.BlockPos> area)
getArea in interface IAreaProviderpublic static void getArea(java.util.Set<net.minecraft.util.math.BlockPos> area,
ProgWidgetArea whitelistWidget,
ProgWidgetArea blacklistWidget)
public boolean isItemValidForFilters(net.minecraft.item.ItemStack item)
isItemValidForFilters in interface IItemFilteringpublic boolean isItemValidForFilters(net.minecraft.item.ItemStack item,
net.minecraft.block.BlockState blockState)
public boolean isItemFilterEmpty()
public java.util.List<net.minecraft.entity.Entity> getEntitiesInArea(net.minecraft.world.World world,
java.util.function.Predicate<? super net.minecraft.entity.Entity> filter)
public java.util.List<net.minecraft.entity.Entity> getValidEntities(net.minecraft.world.World world)
getValidEntities in interface IEntityProviderpublic boolean isEntityValid(net.minecraft.entity.Entity entity)
isEntityValid in interface IEntityProviderpublic static java.util.List<net.minecraft.entity.Entity> getEntitiesInArea(ProgWidgetArea whitelistWidget, ProgWidgetArea blacklistWidget, net.minecraft.world.World world, java.util.function.Predicate<? super net.minecraft.entity.Entity> whitelistPredicate, java.util.function.Predicate<? super net.minecraft.entity.Entity> blacklistPredicate)
public IProgWidget.WidgetDifficulty getDifficulty()
getDifficulty in interface IProgWidgetpublic void setAIManager(DroneAIManager aiManager)
setAIManager in interface IVariableWidgetpublic void addVariables(java.util.Set<java.lang.String> variables)
addVariables in interface IVariableWidget