public class ProgWidgetCoordinateOperator extends ProgWidget implements IVariableSetWidget
| Modifier and Type | Class and Description |
|---|---|
static class |
ProgWidgetCoordinateOperator.EnumOperator |
IProgWidget.WidgetDifficulty| Constructor and Description |
|---|
ProgWidgetCoordinateOperator() |
| 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) |
static net.minecraft.util.math.BlockPos |
calculateCoordinate(IProgWidget widget,
int argIndex,
ProgWidgetCoordinateOperator.EnumOperator operator) |
static net.minecraft.util.math.BlockPos |
calculateCoordinate(IProgWidget widget,
int argIndex,
ProgWidgetCoordinateOperator.EnumOperator operator,
AxisOptions axisOptions) |
AxisOptions |
getAxisOptions() |
net.minecraft.item.DyeColor |
getColor() |
IProgWidget.WidgetDifficulty |
getDifficulty() |
java.util.List<net.minecraft.util.text.ITextComponent> |
getExtraStringInfo() |
ProgWidgetCoordinateOperator.EnumOperator |
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<ProgWidgetType<?>> |
getParameters()
Get the types of the widgets which connect to this widget on the right, in order (top to bottom).
|
net.minecraft.util.ResourceLocation |
getTexture() |
void |
getTooltip(java.util.List<net.minecraft.util.text.ITextComponent> curTooltip) |
java.lang.String |
getVariable() |
boolean |
hasStepInput()
Can this widget connect to a widget above?
|
void |
readFromNBT(net.minecraft.nbt.CompoundNBT tag) |
void |
readFromPacket(net.minecraft.network.PacketBuffer buf) |
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) |
void |
setOperator(ProgWidgetCoordinateOperator.EnumOperator operator) |
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) |
addWarnings, canBeRunByComputers, canSetParameter, copy, fromNBT, fromPacket, getConnectedParameters, getHeight, getMaxUV, getOutputWidget, getParent, getTextureSize, getType, getTypeID, getWidgetAI, getWidgetTargetAI, getWidth, getX, getY, hasBlacklist, hasStepOutput, isAvailable, setOutputWidget, setParameter, setParent, setX, setYclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, freeToUse, getTranslationKey, isDifficultyOKpublic 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 net.minecraft.item.DyeColor getColor()
getColor in interface IProgWidgetpublic IProgWidget.WidgetDifficulty getDifficulty()
getDifficulty 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 IProgWidget getOutputWidget(IDroneBase drone, java.util.List<IProgWidget> allWidgets)
IProgWidgetgetOutputWidget in interface IProgWidgetgetOutputWidget in class ProgWidgetdrone - the droneallWidgets - a list of widgetspublic static net.minecraft.util.math.BlockPos calculateCoordinate(IProgWidget widget, int argIndex, ProgWidgetCoordinateOperator.EnumOperator operator, AxisOptions axisOptions)
public static net.minecraft.util.math.BlockPos calculateCoordinate(IProgWidget widget, int argIndex, ProgWidgetCoordinateOperator.EnumOperator operator)
public net.minecraft.util.ResourceLocation getTexture()
getTexture in interface IProgWidgetpublic 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 ProgWidgettag - NBT tag to write topublic void readFromNBT(net.minecraft.nbt.CompoundNBT tag)
readFromNBT in interface IProgWidgetreadFromNBT in class ProgWidgetpublic void writeToPacket(net.minecraft.network.PacketBuffer buf)
writeToPacket in interface IProgWidgetwriteToPacket in class ProgWidgetpublic void readFromPacket(net.minecraft.network.PacketBuffer buf)
readFromPacket in interface IProgWidgetreadFromPacket in class ProgWidgetpublic ProgWidgetCoordinateOperator.EnumOperator getOperator()
public void setOperator(ProgWidgetCoordinateOperator.EnumOperator operator)
public java.lang.String getVariable()
getVariable in interface IVariableSetWidgetpublic void setVariable(java.lang.String variable)
setVariable in interface IVariableSetWidgetpublic void setAIManager(DroneAIManager aiManager)
setAIManager in interface IVariableWidgetpublic AxisOptions getAxisOptions()
public void getTooltip(java.util.List<net.minecraft.util.text.ITextComponent> curTooltip)
getTooltip in interface IProgWidgetgetTooltip in class ProgWidgetpublic java.util.List<net.minecraft.util.text.ITextComponent> getExtraStringInfo()
getExtraStringInfo in interface IProgWidgetgetExtraStringInfo in class ProgWidgetpublic void addVariables(java.util.Set<java.lang.String> variables)
addVariables in interface IVariableWidget