public abstract class ProgWidgetCondition extends ProgWidgetInventoryBase implements ICondition, IJump, IVariableSetWidget
ICondition.OperatorIProgWidget.WidgetDifficultyaiManagerALL_SIDES| Constructor and Description |
|---|
ProgWidgetCondition(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) |
boolean |
evaluate(IDroneBase drone,
IProgWidget widget)
Used in the CC compatibility.
|
net.minecraft.item.DyeColor |
getColor() |
IProgWidget.WidgetDifficulty |
getDifficulty() |
protected abstract DroneAIBlockCondition |
getEvaluator(IDroneBase drone,
IProgWidget widget) |
java.util.List<net.minecraft.util.text.ITextComponent> |
getExtraStringInfo() |
java.lang.String |
getMeasureVar() |
ICondition.Operator |
getOperator() |
IProgWidget |
getOutputWidget(IDroneBase drone,
java.util.List<IProgWidget> allWidgets)
Get the next widget in the program, which may or may not be the widget attached to the bottom of this one.
|
java.util.List<java.lang.String> |
getPossibleJumpLocations() |
int |
getRequiredCount() |
void |
getTooltip(java.util.List<net.minecraft.util.text.ITextComponent> curTooltip) |
java.lang.String |
getVariable() |
net.minecraft.entity.ai.goal.Goal |
getWidgetAI(IDroneBase drone,
IProgWidget widget)
Get the AI for this progwidget
|
boolean |
isAndFunction() |
protected boolean |
isUsingSides() |
void |
readFromNBT(net.minecraft.nbt.CompoundNBT tag) |
void |
readFromPacket(net.minecraft.network.PacketBuffer buf) |
void |
setAndFunction(boolean isAndFunction) |
void |
setMeasureVar(java.lang.String measureVar) |
void |
setOperator(ICondition.Operator operator) |
void |
setRequiredCount(int count) |
void |
setVariable(java.lang.String variable) |
void |
writeToNBT(net.minecraft.nbt.CompoundNBT tag)
At least do
tag.putString("name", getTypeID().toString()); |
void |
writeToPacket(net.minecraft.network.PacketBuffer buf) |
getCount, getSides, setCount, setSides, setUseCount, useCountgetArea, getArea, getAreaExtents, getCachedAreaList, getCachedAreaSet, getChunkCache, getEntitiesInArea, getEntitiesInArea, getParameters, getValidEntities, hasStepInput, invalidateAreaCache, isEntityValid, isItemFilterEmpty, isItemValidForFilters, isItemValidForFilters, returnType, setAIManageraddWarnings, canBeRunByComputers, canSetParameter, copy, fromNBT, fromPacket, getConnectedParameters, getHeight, getMaxUV, getOutputWidget, getParent, getTextureSize, getType, getTypeID, getWidgetTargetAI, getWidth, getX, getY, hasBlacklist, hasStepOutput, isAvailable, setOutputWidget, setParameter, setParent, setX, setYclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmaybeRecordMeasuredValsetAIManagergetDirForSides, getSidesFromDir, isSideSelectedgetEntityFilterPositioncreate, freeToUse, getTexture, getTranslationKey, isDifficultyOKpublic ProgWidgetCondition(ProgWidgetType<?> type)
public 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)protected abstract DroneAIBlockCondition getEvaluator(IDroneBase drone, IProgWidget widget)
public java.lang.String getMeasureVar()
getMeasureVar in interface IConditionpublic void setMeasureVar(java.lang.String measureVar)
setMeasureVar in interface IConditionpublic void getTooltip(java.util.List<net.minecraft.util.text.ITextComponent> curTooltip)
getTooltip in interface IProgWidgetgetTooltip in class ProgWidgetInventoryBasepublic void addErrors(java.util.List<net.minecraft.util.text.ITextComponent> curInfo,
java.util.List<IProgWidget> widgets)
addErrors in interface IProgWidgetaddErrors in class ProgWidgetInventoryBasepublic IProgWidget getOutputWidget(IDroneBase drone, java.util.List<IProgWidget> allWidgets)
IProgWidgetgetOutputWidget in interface IProgWidgetgetOutputWidget in class ProgWidgetdrone - the droneallWidgets - a list of widgetspublic boolean evaluate(IDroneBase drone, IProgWidget widget)
IConditionevaluate in interface IConditiondrone - the dronepublic boolean isAndFunction()
isAndFunction in interface IConditionpublic void setAndFunction(boolean isAndFunction)
setAndFunction in interface IConditionpublic IProgWidget.WidgetDifficulty getDifficulty()
getDifficulty in interface IProgWidgetgetDifficulty in class ProgWidgetAreaItemBasepublic java.util.List<java.lang.String> getPossibleJumpLocations()
getPossibleJumpLocations in interface IJumppublic 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 void writeToNBT(net.minecraft.nbt.CompoundNBT tag)
IProgWidgettag.putString("name", getTypeID().toString());
Note that the base implementation ProgWidget does this.
writeToNBT in interface IProgWidgetwriteToNBT in class ProgWidgetInventoryBasetag - NBT tag to write topublic void readFromNBT(net.minecraft.nbt.CompoundNBT tag)
readFromNBT in interface IProgWidgetreadFromNBT in class ProgWidgetInventoryBasepublic void writeToPacket(net.minecraft.network.PacketBuffer buf)
writeToPacket in interface IProgWidgetwriteToPacket in class ProgWidgetInventoryBasepublic void readFromPacket(net.minecraft.network.PacketBuffer buf)
readFromPacket in interface IProgWidgetreadFromPacket in class ProgWidgetInventoryBaseprotected boolean isUsingSides()
isUsingSides in class ProgWidgetInventoryBasepublic java.util.List<net.minecraft.util.text.ITextComponent> getExtraStringInfo()
getExtraStringInfo in interface IProgWidgetgetExtraStringInfo in class ProgWidgetInventoryBasepublic net.minecraft.item.DyeColor getColor()
getColor in interface IProgWidgetpublic void addVariables(java.util.Set<java.lang.String> variables)
addVariables in interface IVariableWidgetaddVariables in class ProgWidgetAreaItemBasepublic java.lang.String getVariable()
getVariable in interface IVariableSetWidgetpublic void setVariable(java.lang.String variable)
setVariable in interface IVariableSetWidget