public class ProgWidgetArea extends ProgWidget implements IAreaProvider, IVariableWidget
IProgWidget.WidgetDifficulty| Modifier and Type | Field and Description |
|---|---|
AreaType |
type |
int |
x1 |
int |
x2 |
int |
y1 |
int |
y2 |
int |
z1 |
int |
z2 |
| Constructor and Description |
|---|
ProgWidgetArea() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAreaTypeTooltip(java.util.List<net.minecraft.util.text.ITextComponent> curTooltip) |
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 AreaType |
createType(int id) |
static AreaType |
createType(java.lang.String id) |
static ProgWidgetArea |
fromPosition(net.minecraft.util.math.BlockPos p1) |
static ProgWidgetArea |
fromPosition(net.minecraft.util.math.BlockPos p1,
int expand) |
static ProgWidgetArea |
fromPosition(net.minecraft.util.math.BlockPos p1,
int expandX,
int expandY,
int expandZ) |
static ProgWidgetArea |
fromPositions(net.minecraft.util.math.BlockPos p1,
net.minecraft.util.math.BlockPos p2) |
static java.util.List<AreaType> |
getAllAreaTypes() |
void |
getArea(java.util.Set<net.minecraft.util.math.BlockPos> area) |
void |
getArea(java.util.Set<net.minecraft.util.math.BlockPos> area,
AreaType areaType) |
net.minecraft.item.DyeColor |
getColor() |
java.lang.String |
getCoord1Variable() |
java.lang.String |
getCoord2Variable() |
IProgWidget.WidgetDifficulty |
getDifficulty() |
java.util.List<net.minecraft.util.text.ITextComponent> |
getExtraStringInfo() |
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) |
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 |
setCoord1Variable(java.lang.String coord1Variable) |
void |
setCoord2Variable(java.lang.String coord2Variable) |
void |
setP1(net.minecraft.util.math.BlockPos p) |
void |
setP2(net.minecraft.util.math.BlockPos p) |
void |
setVariableProvider(IVariableProvider provider) |
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, 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 int x1
public int y1
public int z1
public int x2
public int y2
public int z2
public AreaType type
public static java.util.List<AreaType> getAllAreaTypes()
public static ProgWidgetArea fromPosition(net.minecraft.util.math.BlockPos p1)
public static ProgWidgetArea fromPosition(net.minecraft.util.math.BlockPos p1, int expand)
public static ProgWidgetArea fromPosition(net.minecraft.util.math.BlockPos p1, int expandX, int expandY, int expandZ)
public static ProgWidgetArea fromPositions(net.minecraft.util.math.BlockPos p1, net.minecraft.util.math.BlockPos p2)
public java.util.List<net.minecraft.util.text.ITextComponent> getExtraStringInfo()
getExtraStringInfo in interface IProgWidgetgetExtraStringInfo in class ProgWidgetpublic void getTooltip(java.util.List<net.minecraft.util.text.ITextComponent> curTooltip)
getTooltip in interface IProgWidgetgetTooltip in class ProgWidgetpublic void addAreaTypeTooltip(java.util.List<net.minecraft.util.text.ITextComponent> curTooltip)
public void addErrors(java.util.List<net.minecraft.util.text.ITextComponent> curInfo,
java.util.List<IProgWidget> widgets)
addErrors in interface IProgWidgetaddErrors in class ProgWidgetpublic void setP1(net.minecraft.util.math.BlockPos p)
public void setP2(net.minecraft.util.math.BlockPos p)
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 net.minecraft.util.ResourceLocation getTexture()
getTexture in interface IProgWidgetpublic void getArea(java.util.Set<net.minecraft.util.math.BlockPos> area)
getArea in interface IAreaProviderpublic void getArea(java.util.Set<net.minecraft.util.math.BlockPos> area,
AreaType areaType)
public 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 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 static AreaType createType(java.lang.String id)
public static AreaType createType(int id)
public IProgWidget.WidgetDifficulty getDifficulty()
getDifficulty in interface IProgWidgetpublic net.minecraft.item.DyeColor getColor()
getColor in interface IProgWidgetpublic java.lang.String getCoord1Variable()
public void setCoord1Variable(java.lang.String coord1Variable)
public java.lang.String getCoord2Variable()
public void setCoord2Variable(java.lang.String coord2Variable)
public void setAIManager(DroneAIManager aiManager)
setAIManager in interface IVariableWidgetpublic void addVariables(java.util.Set<java.lang.String> variables)
addVariables in interface IVariableWidgetpublic void setVariableProvider(IVariableProvider provider)