Last active
August 29, 2015 14:24
-
-
Save ElvishJerricco/37d069885594f7cff6e7 to your computer and use it in GitHub Desktop.
Enum Factory Interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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