// Path: src/main/java/com/corwinjv/mobtotems/blocks/TotemType.java
// public enum TotemType implements IStringSerializable {
//     NONE(0, "none"),
//     CREEPER(1, "creeper"),
//     ENDER(2, "ender"),
//     BLAZE(3, "blaze"),
//     SPIDER(4, "spider"),
//     COW(5, "cow"),
//     WOLF(6, "wolf"),
//     OCELOT(7, "ocelot"),
//     WITHER(8, "wither"),
//     LLAMA(9, "llama"),
//     RABBIT(10, "rabbit");
// 
//     private final int meta;
//     private final String name;
// 
//     private TotemType(int meta, String name) {
//         this.meta = meta;
//         this.name = name;
//     }
// 
//     public int getMeta() {
//         return this.meta;
//     }
// 
//     @Override
//     public String getName() {
//         return this.name;
//     }
// 
//     public static TotemType fromMeta(int meta) {
//         TotemType retType = TotemType.NONE;
//         for (TotemType type : values()) {
//             if (type.getMeta() == meta) {
//                 retType = type;
//                 break;
//             }
//         }
//         return retType;
//     }
// }


import com.corwinjv.mobtotems.blocks.TotemType;
import net.minecraft.block.Block;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
package com.corwinjv.mobtotems.blocks.items;


/**
 * Created by CorwinJV on 1/18/2017.
 */
public class TotemWoodItemBlock extends ItemBlock {
    public TotemWoodItemBlock(Block block) {
        super(block);
        this.setMaxDamage(0);
        this.setHasSubtypes(true);
    }

    @Override
    public int getMetadata(int metadata) {
        return metadata;
    }

    // create a unique unlocalised name for each colour, so that we can give each one a unique name
    @Override
    public String getUnlocalizedName(ItemStack stack) {
// Path: src/main/java/com/corwinjv/mobtotems/blocks/TotemType.java
// public enum TotemType implements IStringSerializable {
//     NONE(0, "none"),
//     CREEPER(1, "creeper"),
//     ENDER(2, "ender"),
//     BLAZE(3, "blaze"),
//     SPIDER(4, "spider"),
//     COW(5, "cow"),
//     WOLF(6, "wolf"),
//     OCELOT(7, "ocelot"),
//     WITHER(8, "wither"),
//     LLAMA(9, "llama"),
//     RABBIT(10, "rabbit");
// 
//     private final int meta;
//     private final String name;
// 
//     private TotemType(int meta, String name) {
//         this.meta = meta;
//         this.name = name;
//     }
// 
//     public int getMeta() {
//         return this.meta;
//     }
// 
//     @Override
//     public String getName() {
//         return this.name;
//     }
// 
//     public static TotemType fromMeta(int meta) {
//         TotemType retType = TotemType.NONE;
//         for (TotemType type : values()) {
//             if (type.getMeta() == meta) {
//                 retType = type;
//                 break;
//             }
//         }
//         return retType;
//     }
// }


// Path: src/main/java/com/corwinjv/mobtotems/blocks/items/TotemWoodItemBlock.java
import com.corwinjv.mobtotems.blocks.TotemType;
import net.minecraft.block.Block;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;

package com.corwinjv.mobtotems.blocks.items;


/**
 * Created by CorwinJV on 1/18/2017.
 */
public class TotemWoodItemBlock extends ItemBlock {
    public TotemWoodItemBlock(Block block) {
        super(block);
        this.setMaxDamage(0);
        this.setHasSubtypes(true);
    }

    @Override
    public int getMetadata(int metadata) {
        return metadata;
    }

    // create a unique unlocalised name for each colour, so that we can give each one a unique name
    @Override
    public String getUnlocalizedName(ItemStack stack) {
        TotemType totemType = TotemType.fromMeta(stack.getMetadata());