mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 15:23:06 +00:00
Added a crafting cooldown on IAltar, so that outside blocks may request the altar to not perform work while it is not active.
This commit is contained in:
1 parent
8fbb19acc0
commit
39e3d6eb34
14 files changed
+57
-26
No files matched your search
+27
@@ -0,0 +1,27 @@
|
||||
package WayofTime.alchemicalWizardry.common.routing;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import WayofTime.alchemicalWizardry.api.ILimitingLogic;
|
||||
import WayofTime.alchemicalWizardry.common.items.routing.ILimitedRoutingFocus;
|
||||
|
||||
public class RoutingFocusLogicLimitModItems extends RoutingFocusLogicModItems implements ILimitingLogic
|
||||
{
|
||||
public int limit = 0;
|
||||
|
||||
public RoutingFocusLogicLimitModItems(ItemStack stack)
|
||||
{
|
||||
if(stack != null && stack.getItem() instanceof ILimitedRoutingFocus)
|
||||
{
|
||||
limit = ((ILimitedRoutingFocus)stack.getItem()).getRoutingFocusLimit(stack);
|
||||
}else
|
||||
{
|
||||
limit = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRoutingLimit()
|
||||
{
|
||||
return limit;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user