public class ProgWidgetForEachCoordinate extends ProgWidgetAreaItemBase implements IJumpBackWidget, IJump, IVariableSetWidget
IProgWidget.WidgetDifficultyaiManager| Constructor and Description |
|---|
ProgWidgetForEachCoordinate() |
| Modifier and Type | Method and Description |
|---|---|
void |
addVariables(java.util.Set<java.lang.String> variables) |
boolean |
canBeRunByComputers(IDroneBase drone,
IProgWidget widget) |
boolean |
canSetParameter(int index) |
net.minecraft.item.DyeColor |
getColor() |
IProgWidget.WidgetDifficulty |
getDifficulty() |
java.util.List<net.minecraft.util.text.ITextComponent> |
getExtraStringInfo() |
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).
|
java.util.List<java.lang.String> |
getPossibleJumpLocations() |
net.minecraft.util.ResourceLocation |
getTexture() |
java.lang.String |
getVariable() |
net.minecraft.entity.ai.goal.Goal |
getWidgetAI(IDroneBase drone,
IProgWidget widget)
Get the AI for this progwidget
|
boolean |
isValidPosition(net.minecraft.util.math.BlockPos pos) |
void |
readFromNBT(net.minecraft.nbt.CompoundNBT tag) |
void |
readFromPacket(net.minecraft.network.PacketBuffer buf) |
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) |
addErrors, getArea, getArea, getAreaExtents, getCachedAreaList, getCachedAreaSet, getChunkCache, getEntitiesInArea, getEntitiesInArea, getValidEntities, hasStepInput, invalidateAreaCache, isEntityValid, isItemFilterEmpty, isItemValidForFilters, isItemValidForFilters, returnType, setAIManageraddWarnings, copy, fromNBT, fromPacket, getConnectedParameters, getHeight, getMaxUV, getOutputWidget, getParent, getTextureSize, getTooltip, getType, getTypeID, getWidgetTargetAI, getWidth, getX, getY, hasBlacklist, hasStepOutput, isAvailable, setOutputWidget, setParameter, setParent, setX, setYclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetAIManagergetEntityFilterPositioncreate, freeToUse, getTranslationKey, isDifficultyOKpublic net.minecraft.item.DyeColor getColor()
getColor in interface IProgWidgetpublic net.minecraft.util.ResourceLocation getTexture()
getTexture 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 IProgWidgetgetParameters in class ProgWidgetAreaItemBasepublic 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 IVariableSetWidgetpublic 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 IProgWidget.WidgetDifficulty getDifficulty()
getDifficulty in interface IProgWidgetgetDifficulty in class ProgWidgetAreaItemBasepublic IProgWidget getOutputWidget(IDroneBase drone, java.util.List<IProgWidget> allWidgets)
IProgWidgetgetOutputWidget in interface IProgWidgetgetOutputWidget in class ProgWidgetdrone - the droneallWidgets - a list of widgetspublic java.util.List<java.lang.String> getPossibleJumpLocations()
getPossibleJumpLocations in interface IJumppublic 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 boolean isValidPosition(net.minecraft.util.math.BlockPos pos)
public boolean canBeRunByComputers(IDroneBase drone, IProgWidget widget)
canBeRunByComputers in interface IProgWidgetcanBeRunByComputers in class ProgWidgetpublic java.util.List<net.minecraft.util.text.ITextComponent> getExtraStringInfo()
getExtraStringInfo in interface IProgWidgetgetExtraStringInfo in class ProgWidgetpublic boolean canSetParameter(int index)
canSetParameter in interface IProgWidgetcanSetParameter in class ProgWidget