Finishing the darn Phantom Hands ritual
This commit is contained in:
parent
f87da36775
commit
dc7d9ebc06
45 changed files with 662 additions and 270 deletions
|
@ -0,0 +1,26 @@
|
|||
package WayofTime.alchemicalWizardry.api;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import WayofTime.alchemicalWizardry.common.items.routing.ILimitedRoutingFocus;
|
||||
|
||||
public class RoutingFocusLogicLimitMatchNBT extends RoutingFocusLogicMatchNBT implements ILimitingLogic
|
||||
{
|
||||
public int limit = 0;
|
||||
|
||||
public RoutingFocusLogicLimitMatchNBT(ItemStack stack)
|
||||
{
|
||||
if(stack != null && stack.getItem() instanceof ILimitedRoutingFocus)
|
||||
{
|
||||
limit = ((ILimitedRoutingFocus)stack.getItem()).getRoutingFocusLimit(stack);
|
||||
}else
|
||||
{
|
||||
limit = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRoutingLimit()
|
||||
{
|
||||
return limit;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue