Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.gunn.modtest.states;
- import net.minecraft.block.properties.PropertyBool;
- import net.minecraft.block.properties.PropertyEnum;
- import net.minecraft.util.IStringSerializable;
- public class ModStates {
- public static final PropertyBool POWERED = PropertyBool.create("powered");
- public static final PropertyEnum<MachineTypes> MACTYPE = PropertyEnum.create("mactype", MachineTypes.class);
- public static enum MachineTypes implements IStringSerializable {
- DEFAULT("default", 0),
- ARROW("arrow", 1),
- BOX("box", 2),
- CROSS("cross", 3);
- private int ID;
- private String name;
- private MachineTypes(String name, int ID){
- this.ID=ID;
- this.name=name;
- }
- @Override
- public String getName(){
- return this.name();
- }
- public int getID(){
- return ID;
- }
- @Override
- public String toString(){
- return getName();
- }
- }
- }
Add Comment
Please, Sign In to add comment