2015-03-07 12:51:28 +01:00
|
|
|
package ellpeck.actuallyadditions.util;
|
2014-11-10 16:47:04 +01:00
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
import cpw.mods.fml.common.FMLCommonHandler;
|
2015-07-01 21:32:48 +02:00
|
|
|
import net.minecraft.block.BlockDispenser;
|
|
|
|
import net.minecraft.dispenser.BehaviorDefaultDispenseItem;
|
|
|
|
import net.minecraft.item.Item;
|
2015-03-07 02:23:31 +01:00
|
|
|
import net.minecraftforge.common.MinecraftForge;
|
2015-02-09 17:25:05 +01:00
|
|
|
import net.minecraftforge.oredict.OreDictionary;
|
2014-11-10 16:47:04 +01:00
|
|
|
|
2015-02-17 16:15:16 +01:00
|
|
|
@SuppressWarnings("unused")
|
2014-12-20 21:34:07 +01:00
|
|
|
public class Util{
|
2014-11-10 16:47:04 +01:00
|
|
|
|
2015-02-09 17:25:05 +01:00
|
|
|
public static final int WILDCARD = OreDictionary.WILDCARD_VALUE;
|
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
public static void registerEvent(Object o){
|
|
|
|
MinecraftForge.EVENT_BUS.register(o);
|
2015-03-31 20:37:55 +02:00
|
|
|
FMLCommonHandler.instance().bus().register(o);
|
2015-02-20 22:45:33 +01:00
|
|
|
}
|
2015-07-01 21:32:48 +02:00
|
|
|
|
|
|
|
public static void registerDispenserHandler(Item item, BehaviorDefaultDispenseItem handler){
|
|
|
|
if(BlockDispenser.dispenseBehaviorRegistry.getObject(item) == null){
|
|
|
|
BlockDispenser.dispenseBehaviorRegistry.putObject(item, handler);
|
|
|
|
}
|
|
|
|
}
|
2015-02-17 16:15:16 +01:00
|
|
|
}
|