public static enum IStatementParameter.DrawType extends java.lang.Enum<IStatementParameter.DrawType>
Enum Constant and Description |
---|
SPRITE_ONLY
Draws the sprite, as returned by
IGuiSlot.getSprite() . |
SPRITE_STACK
Draws
SPRITE_ONLY , but then also draws STACK_ONLY |
SPRITE_STACK_OR_QUESTION_MARK
Draws
SPRITE_ONLY , but then also draws STACK_ONLY_OR_QUESTION_MARK |
STACK_ONLY
Draws the
ItemStack , as returned by IStatementParameter.getItemStack() . |
STACK_ONLY_OR_QUESTION_MARK
Only draws the
ItemStack , as returned by IStatementParameter.getItemStack() , except if
ItemStack.isEmpty() returns true, in which case this a question mark will be drawn. |
STACK_OR_QUESTION_MARK_THEN_SPRITE
Draws
STACK_ONLY_OR_QUESTION_MARK , but then also draws SPRITE_ONLY |
STACK_SPRITE
Draws
STACK_ONLY , but then also draws SPRITE_ONLY |
Modifier and Type | Method and Description |
---|---|
static IStatementParameter.DrawType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IStatementParameter.DrawType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IStatementParameter.DrawType SPRITE_ONLY
IGuiSlot.getSprite()
.public static final IStatementParameter.DrawType STACK_ONLY
ItemStack
, as returned by IStatementParameter.getItemStack()
.public static final IStatementParameter.DrawType STACK_ONLY_OR_QUESTION_MARK
ItemStack
, as returned by IStatementParameter.getItemStack()
, except if
ItemStack.isEmpty()
returns true, in which case this a question mark will be drawn.public static final IStatementParameter.DrawType SPRITE_STACK
SPRITE_ONLY
, but then also draws STACK_ONLY
public static final IStatementParameter.DrawType SPRITE_STACK_OR_QUESTION_MARK
SPRITE_ONLY
, but then also draws STACK_ONLY_OR_QUESTION_MARK
public static final IStatementParameter.DrawType STACK_SPRITE
STACK_ONLY
, but then also draws SPRITE_ONLY
public static final IStatementParameter.DrawType STACK_OR_QUESTION_MARK_THEN_SPRITE
STACK_ONLY_OR_QUESTION_MARK
, but then also draws SPRITE_ONLY
public static IStatementParameter.DrawType[] values()
for (IStatementParameter.DrawType c : IStatementParameter.DrawType.values()) System.out.println(c);
public static IStatementParameter.DrawType 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 null