public class ActionParameterSignal extends java.lang.Object implements IStatementParameter
IStatementParameter.DrawType| Modifier and Type | Field and Description |
|---|---|
net.minecraft.item.EnumDyeColor |
colour |
static ActionParameterSignal |
EMPTY |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object) |
static ActionParameterSignal |
get(net.minecraft.item.EnumDyeColor colour) |
net.minecraft.item.EnumDyeColor |
getColor() |
java.lang.String |
getDescription()
Return the description in the UI.
|
net.minecraft.item.ItemStack |
getItemStack() |
IStatementParameter[] |
getPossible(IStatementContainer source) |
ISprite |
getSprite() |
java.lang.String |
getUniqueTag()
Every statement needs a unique tag, it should be in the format of "<modid>:<name>".
|
int |
hashCode() |
ActionParameterSignal |
onClick(IStatementContainer source,
IStatement stmt,
net.minecraft.item.ItemStack stack,
StatementMouseClick mouse)
Return a non-null value to be set as the statement parameter if you handled the mouse click and do not want all
possible values to be shown, or null if you did nothing and wish to show all possible values.
|
static ActionParameterSignal |
readFromNbt(net.minecraft.nbt.NBTTagCompound nbt) |
IStatementParameter |
rotateLeft()
This returns the parameter after a left rotation.
|
void |
writeToNbt(net.minecraft.nbt.NBTTagCompound nbt) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetDrawType, isPossibleOrdered, writeToBufgetTooltipconvertTopublic static final ActionParameterSignal EMPTY
@Nullable public final net.minecraft.item.EnumDyeColor colour
public static ActionParameterSignal get(net.minecraft.item.EnumDyeColor colour)
public static ActionParameterSignal readFromNbt(net.minecraft.nbt.NBTTagCompound nbt)
public void writeToNbt(net.minecraft.nbt.NBTTagCompound nbt)
writeToNbt in interface IStatementParameter@Nullable public net.minecraft.item.EnumDyeColor getColor()
public ISprite getSprite()
public ActionParameterSignal onClick(IStatementContainer source, IStatement stmt, net.minecraft.item.ItemStack stack, StatementMouseClick mouse)
IStatementParameteronClick in interface IStatementParameterIStatementParameter.getPossible(IStatementContainer)public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getDescription()
IGuiSlotIGuiSlot.getTooltip(). (As such this might return null or throw an exception)getDescription in interface IGuiSlotpublic java.lang.String getUniqueTag()
IGuiSlotgetUniqueTag in interface IGuiSlotpublic IStatementParameter rotateLeft()
IStatementParameterrotateLeft in interface IStatementParameter@Nonnull public net.minecraft.item.ItemStack getItemStack()
getItemStack in interface IStatementParameterItemStack to render for this parameter, or ItemStack.EMPTY if this should not render
an ItemStack.public IStatementParameter[] getPossible(IStatementContainer source)
getPossible in interface IStatementParameter