Skip to content

Instantly share code, notes, and snippets.

@dmillerw
Last active August 29, 2015 14:07
Show Gist options
  • Save dmillerw/9ff66b230f1d05fea328 to your computer and use it in GitHub Desktop.
Save dmillerw/9ff66b230f1d05fea328 to your computer and use it in GitHub Desktop.
public class ClientRegistry {
/* Other methods excluded */
public static enum ModelTemplate {
BLOCK_BASIC,
BLOCK_BASIC_FACING_2D,
BLOCK_BASIC_FACING_3D,
BLOCK_STAIR,
BLOCK_SLAB,
BLOCK_PLANT,
BLOCK_CROP,
ITEM_BASIC
/* Some methods for inserting custom data will be here */
/* Maybe a full class instead of an Enum? For custom templates? */
}
// It's assumed that if you never call this method, you have a proper model file
public static void registerTemplate(Item item, int meta, ModelTemplate template) {
/* Implementation */
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment