Skip to content

Instantly share code, notes, and snippets.

@ElvishJerricco
Created July 6, 2015 23:35
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/6c68c5a67723c1739dcf to your computer and use it in GitHub Desktop.
Save ElvishJerricco/6c68c5a67723c1739dcf to your computer and use it in GitHub Desktop.
IPartFactory2
trait IPartFactory2
{
/**
* Create a new server instance of the part with the specified type name identifier
* @param nbt The tag compound that will be passed to part.load, can be used to change the class of part returned
*/
def createPart(name: String, nbt: NBTTagCompound): TMultiPart
/**
* Create a new client instance of the part with the specified type name identifier
* @param packet The packet that will be passed to part.readDesc, can be used to change the class of part returned
*/
def createPart(name: String, packet: MCDataInput): TMultiPart
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment