Skip to content

Commit

Permalink
Added Name function
Browse files Browse the repository at this point in the history
  • Loading branch information
Speiger committed Sep 29, 2016
1 parent d89699c commit 11ffcbc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/main/java/ic2/api/item/IItemReactorPlanStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,30 @@

public interface IItemReactorPlanStorage
{
/**
* Meta Compatible function to allow meta items to be plans
* @param stack yourMetaItem
* @return true if it is a PlanStorage
*/
public boolean isPlanStorage(ItemStack stack);

/**
* Function to set a ReactorSetup to the item
* Also when this function is called and it would override/set the setup
* delete the plan name
* @param stack YourStack
* @param setup the SetupData
* @return true if it was added. False if it failed
*/
public boolean setSetup(ItemStack stack, String setup);

/**
* function to add a ToolTipName for the setup if you want to support this
* this function will be only called after setSetup & if there is a custom Name
* @param stack YourStack
* @param setup the CustomName of the setup
*/
public void setPlanName(ItemStack stack, String setup);

/**
* Helper function return true if you have a setup.
Expand All @@ -25,4 +42,5 @@ public interface IItemReactorPlanStorage
* @return the Reactor-setup. (Not null!)
*/
public String getSetup(ItemStack stack);

}

0 comments on commit 11ffcbc

Please sign in to comment.