Skip to content

Instantly share code, notes, and snippets.

@ElvishJerricco
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ElvishJerricco/37d069885594f7cff6e7 to your computer and use it in GitHub Desktop.
Save ElvishJerricco/37d069885594f7cff6e7 to your computer and use it in GitHub Desktop.
Enum Factory Interface
public interface IEnumPartFactory {
/**
* @return The string type that FMP correlates with this type of part.
*/
String getPartType();
/**
* @see {@link codechicken.multipart.MultiPartRegistry.IPartFactory2#createPart(String, NBTTagCompound)}
*/
TMultiPart createPart(NBTTagCompound nbt);
/**
* @see {@link codechicken.multipart.MultiPartRegistry.IPartFactory2#createPart(String, MCDataInput)}
*/
TMultiPart createPart(MCDataInput packet);
/**
* Get the most vanilla ItemStack for this part type
* For use with things like {@link TMultiPart#getDrops()}
* @return An ItemStack representing this part type
*/
ItemStack getItem();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment