public enum StatementParamGateSideOnly extends java.lang.Enum<StatementParamGateSideOnly> implements IStatementParameter
IStatementParameter.DrawType
Modifier and Type | Field and Description |
---|---|
boolean |
isSpecific |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Return the description in the UI.
|
IStatementParameter.DrawType |
getDrawType() |
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>".
|
StatementParamGateSideOnly |
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 StatementParamGateSideOnly |
readFromNbt(net.minecraft.nbt.NBTTagCompound nbt) |
IStatementParameter |
rotateLeft()
This returns the parameter after a left rotation.
|
static StatementParamGateSideOnly |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StatementParamGateSideOnly[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeToNbt(net.minecraft.nbt.NBTTagCompound compound) |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
isPossibleOrdered, writeToBuf
getTooltip
public static final StatementParamGateSideOnly ANY
public static final StatementParamGateSideOnly SPECIFIC
public static StatementParamGateSideOnly[] values()
for (StatementParamGateSideOnly c : StatementParamGateSideOnly.values()) System.out.println(c);
public static StatementParamGateSideOnly valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static StatementParamGateSideOnly readFromNbt(net.minecraft.nbt.NBTTagCompound nbt)
public void writeToNbt(net.minecraft.nbt.NBTTagCompound compound)
writeToNbt
in interface IStatementParameter
@Nonnull public net.minecraft.item.ItemStack getItemStack()
getItemStack
in interface IStatementParameter
ItemStack
to render for this parameter, or ItemStack.EMPTY
if this should not render
an ItemStack
.public ISprite getSprite()
public IStatementParameter.DrawType getDrawType()
getDrawType
in interface IStatementParameter
public StatementParamGateSideOnly onClick(IStatementContainer source, IStatement stmt, net.minecraft.item.ItemStack stack, StatementMouseClick mouse)
IStatementParameter
onClick
in interface IStatementParameter
IStatementParameter.getPossible(IStatementContainer)
public java.lang.String getDescription()
IGuiSlot
IGuiSlot.getTooltip()
. (As such this might return null or throw an exception)getDescription
in interface IGuiSlot
public java.lang.String getUniqueTag()
IGuiSlot
getUniqueTag
in interface IGuiSlot
public IStatementParameter rotateLeft()
IStatementParameter
rotateLeft
in interface IStatementParameter
public IStatementParameter[] getPossible(IStatementContainer source)
getPossible
in interface IStatementParameter