public static enum ModHarvestHandlers.TreePart extends java.lang.Enum<ModHarvestHandlers.TreePart>
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.block.Block |
convert(net.minecraft.block.Block in,
ModHarvestHandlers.TreePart to)
Given a block which is part of tree (log, leaves, or sapling), try to get a different part of the same tree.
|
static ModHarvestHandlers.TreePart |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModHarvestHandlers.TreePart[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModHarvestHandlers.TreePart LOG
public static final ModHarvestHandlers.TreePart LEAVES
public static final ModHarvestHandlers.TreePart SAPLING
public static ModHarvestHandlers.TreePart[] values()
for (ModHarvestHandlers.TreePart c : ModHarvestHandlers.TreePart.values()) System.out.println(c);
public static ModHarvestHandlers.TreePart 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 net.minecraft.block.Block convert(net.minecraft.block.Block in,
ModHarvestHandlers.TreePart to)
in - the block to convertto - the new part to convert to