public enum PatternParameterFacing extends java.lang.Enum<PatternParameterFacing> implements IStatementParameter
IStatementParameter.DrawType| Modifier and Type | Field and Description |
|---|---|
net.minecraft.util.EnumFacing |
face |
| Modifier and Type | Method and Description |
|---|---|
static PatternParameterFacing |
get(net.minecraft.util.EnumFacing face) |
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>".
|
boolean |
isPossibleOrdered() |
PatternParameterFacing |
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 PatternParameterFacing |
readFromNbt(net.minecraft.nbt.NBTTagCompound nbt) |
IStatementParameter |
rotateLeft()
This returns the parameter after a left rotation.
|
static PatternParameterFacing |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PatternParameterFacing[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeToNbt(net.minecraft.nbt.NBTTagCompound nbt) |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetDrawType, writeToBufgetTooltipconvertTopublic static final PatternParameterFacing DOWN
public static final PatternParameterFacing UP
public static final PatternParameterFacing NORTH
public static final PatternParameterFacing SOUTH
public static final PatternParameterFacing WEST
public static final PatternParameterFacing EAST
public static PatternParameterFacing[] values()
for (PatternParameterFacing c : PatternParameterFacing.values()) System.out.println(c);
public static PatternParameterFacing 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 PatternParameterFacing readFromNbt(net.minecraft.nbt.NBTTagCompound nbt)
public static PatternParameterFacing get(net.minecraft.util.EnumFacing face)
public void writeToNbt(net.minecraft.nbt.NBTTagCompound nbt)
writeToNbt in interface IStatementParameterpublic java.lang.String getUniqueTag()
IGuiSlotgetUniqueTag in interface IGuiSlotpublic ISprite getSprite()
@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 java.lang.String getDescription()
IGuiSlotIGuiSlot.getTooltip(). (As such this might return null or throw an exception)getDescription in interface IGuiSlotpublic PatternParameterFacing onClick(IStatementContainer source, IStatement stmt, net.minecraft.item.ItemStack stack, StatementMouseClick mouse)
IStatementParameteronClick in interface IStatementParameterIStatementParameter.getPossible(IStatementContainer)public IStatementParameter rotateLeft()
IStatementParameterrotateLeft in interface IStatementParameterpublic IStatementParameter[] getPossible(IStatementContainer source)
getPossible in interface IStatementParameterpublic boolean isPossibleOrdered()
isPossibleOrdered in interface IStatementParameterIStatementParameter.getPossible(IStatementContainer) will be
offset up by one, null added to 0, and all other nulls removed.