Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package de.paleocrafter.pmfw.item;
- import net.minecraft.client.renderer.texture.IconRegister;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.item.ItemStack;
- import net.minecraft.util.Icon;
- import net.minecraft.world.World;
- /**
- *
- * PaleoMachineFramework
- *
- * SubItem
- *
- * @author PaleoCrafter
- * @license Lesser GNU Public License v3 (http://www.gnu.org/licenses/lgpl.html)
- *
- */
- public class SubItem {
- private String name;
- private String unlocalizedName;
- private Icon itemIcon;
- public SubItem(String name) {
- this.name = name;
- this.unlocalizedName = name;
- }
- public String getName() {
- return name;
- }
- public String getUnlocalizedName() {
- return unlocalizedName;
- }
- public void setUnlocalizedName(String unlocalizedName) {
- this.unlocalizedName = unlocalizedName;
- }
- public Icon getIcon(int damage) {
- return itemIcon;
- }
- public void registerIcons(IconRegister iconRegister) {
- itemIcon = iconRegister.registerIcon("");
- }
- public void registerRecipe(ItemStack output) {
- }
- public void onCreated(ItemStack stack, World world, EntityPlayer player) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement