API Synced or Spatial, also one last change with grinder.

This commit is contained in:
AlgorithmX2
2014-07-20 01:51:51 -05:00
parent fdc263702e
commit 1a1025b8c9
6 changed files with 64 additions and 1 deletions
+32
View File
@@ -0,0 +1,32 @@
package appeng.core.api.imc;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import appeng.api.AEApi;
import appeng.core.AELog;
import appeng.core.api.IIMCHandler;
import cpw.mods.fml.common.event.FMLInterModComms.IMCMessage;
public class IMCBlackListSpatial implements IIMCHandler
{
@Override
public void post(IMCMessage m)
{
ItemStack is = m.getItemStackValue();
if ( is != null )
{
Block blk = Block.getBlockFromItem( is.getItem() );
if ( blk != null )
{
AEApi.instance().registries().moveable().blacklistBlock( blk );
return;
}
}
AELog.info( "Bad Block blacklisted by " + m.getSender() );
}
}