use of ladysnake.gaspunk.compat.BaublesCompatHandler in project Gaspunk by Ladysnake.
the class CommonProxy method init.
public void init() {
PacketHandler.initPackets();
if (GasPunkConfig.alternativeAshRecipe)
GameRegistry.addSmelting(Items.NETHER_WART, new ItemStack(ModItems.ASH), 0.8f);
else
GameRegistry.addSmelting(Items.ROTTEN_FLESH, new ItemStack(ModItems.ASH), 0.35f);
if (Loader.isModLoaded("baubles"))
MinecraftForge.EVENT_BUS.register(new BaublesCompatHandler());
new Thread(SpecialRewardChecker::retrieveSpecialRewards).start();
BlockDispenser.DISPENSE_BEHAVIOR_REGISTRY.putObject(ModItems.GRENADE, new BehaviorProjectileDispense() {
@Nonnull
@Override
protected IProjectile getProjectileEntity(@Nonnull World worldIn, @Nonnull IPosition position, @Nonnull ItemStack stackIn) {
EntityGrenade grenade = new EntityGrenade(worldIn);
grenade.setItem(stackIn);
return grenade;
}
});
}
Aggregations