public enum ChiselMode extends java.lang.Enum<ChiselMode> implements IToolMode
Enum Constant and Description |
---|
CONNECTED_MATERIAL |
CONNECTED_PLANE |
CUBE_LARGE |
CUBE_MEDIUM |
CUBE_SMALL |
DRAWN_REGION |
LINE |
PLANE |
SAME_MATERIAL |
SINGLE |
SNAP2 |
SNAP4 |
SNAP8 |
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
binding |
boolean |
isDisabled |
LocalStrings |
string |
Modifier and Type | Method and Description |
---|---|
static ChiselMode |
castMode(IToolMode chiselMode) |
static ChiselMode |
getMode(net.minecraft.item.ItemStack stack) |
LocalStrings |
getName() |
boolean |
isDisabled() |
void |
setMode(net.minecraft.item.ItemStack stack) |
static ChiselMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChiselMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChiselMode SINGLE
public static final ChiselMode SNAP2
public static final ChiselMode SNAP4
public static final ChiselMode SNAP8
public static final ChiselMode LINE
public static final ChiselMode PLANE
public static final ChiselMode CONNECTED_PLANE
public static final ChiselMode CUBE_SMALL
public static final ChiselMode CUBE_MEDIUM
public static final ChiselMode CUBE_LARGE
public static final ChiselMode SAME_MATERIAL
public static final ChiselMode DRAWN_REGION
public static final ChiselMode CONNECTED_MATERIAL
public final LocalStrings string
public boolean isDisabled
public java.lang.Object binding
public static ChiselMode[] values()
for (ChiselMode c : ChiselMode.values()) System.out.println(c);
public static ChiselMode 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 ChiselMode getMode(net.minecraft.item.ItemStack stack)
public void setMode(net.minecraft.item.ItemStack stack)
public LocalStrings getName()
public boolean isDisabled()
isDisabled
in interface IToolMode
public static ChiselMode castMode(IToolMode chiselMode)