Crafting Cache Registered and added events.
This commit is contained in:
@@ -121,6 +121,7 @@ import appeng.items.tools.quartz.ToolQuartzPickaxe;
|
|||||||
import appeng.items.tools.quartz.ToolQuartzSpade;
|
import appeng.items.tools.quartz.ToolQuartzSpade;
|
||||||
import appeng.items.tools.quartz.ToolQuartzSword;
|
import appeng.items.tools.quartz.ToolQuartzSword;
|
||||||
import appeng.items.tools.quartz.ToolQuartzWrench;
|
import appeng.items.tools.quartz.ToolQuartzWrench;
|
||||||
|
import appeng.me.cache.CraftingCache;
|
||||||
import appeng.me.cache.EnergyGridCache;
|
import appeng.me.cache.EnergyGridCache;
|
||||||
import appeng.me.cache.GridStorageCache;
|
import appeng.me.cache.GridStorageCache;
|
||||||
import appeng.me.cache.P2PCache;
|
import appeng.me.cache.P2PCache;
|
||||||
@@ -509,6 +510,7 @@ public class Registration
|
|||||||
gcr.registerGridCache( P2PCache.class, P2PCache.class );
|
gcr.registerGridCache( P2PCache.class, P2PCache.class );
|
||||||
gcr.registerGridCache( ISpatialCache.class, SpatialPylonCache.class );
|
gcr.registerGridCache( ISpatialCache.class, SpatialPylonCache.class );
|
||||||
gcr.registerGridCache( ISecurityGrid.class, SecurityCache.class );
|
gcr.registerGridCache( ISecurityGrid.class, SecurityCache.class );
|
||||||
|
gcr.registerGridCache( CraftingCache.class, CraftingCache.class );
|
||||||
|
|
||||||
AEApi.instance().registries().externalStorage().addExternalStorageInterface( new AEExternalHandler() );
|
AEApi.instance().registries().externalStorage().addExternalStorageInterface( new AEExternalHandler() );
|
||||||
|
|
||||||
|
|||||||
Vendored
+3
@@ -18,6 +18,7 @@ import appeng.api.networking.crafting.ICraftingProvider;
|
|||||||
import appeng.api.networking.crafting.ICraftingProviderHelper;
|
import appeng.api.networking.crafting.ICraftingProviderHelper;
|
||||||
import appeng.api.networking.events.MENetworkCraftingCpuChange;
|
import appeng.api.networking.events.MENetworkCraftingCpuChange;
|
||||||
import appeng.api.networking.events.MENetworkCraftingPatternChange;
|
import appeng.api.networking.events.MENetworkCraftingPatternChange;
|
||||||
|
import appeng.api.networking.events.MENetworkEventSubscribe;
|
||||||
import appeng.api.networking.events.MENetworkPostCacheConstruction;
|
import appeng.api.networking.events.MENetworkPostCacheConstruction;
|
||||||
import appeng.api.networking.security.BaseActionSource;
|
import appeng.api.networking.security.BaseActionSource;
|
||||||
import appeng.api.networking.storage.IStorageGrid;
|
import appeng.api.networking.storage.IStorageGrid;
|
||||||
@@ -62,11 +63,13 @@ public class CraftingCache implements IGridCache, ICraftingProviderHelper, ICell
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@MENetworkEventSubscribe
|
||||||
public void updateCPUClusters(MENetworkCraftingCpuChange c)
|
public void updateCPUClusters(MENetworkCraftingCpuChange c)
|
||||||
{
|
{
|
||||||
updateList = true;
|
updateList = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@MENetworkEventSubscribe
|
||||||
public void updateCPUClusters(MENetworkCraftingPatternChange c)
|
public void updateCPUClusters(MENetworkCraftingPatternChange c)
|
||||||
{
|
{
|
||||||
updatePatterns();
|
updatePatterns();
|
||||||
|
|||||||
Reference in New Issue
Block a user